Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is Coldfusion affecting my layout????

Status
Not open for further replies.

jimmyshoes

Programmer
Jun 1, 2008
132
GB
using Firefox I have found the following.
1. Save the following code in 2 files and name 1 box.htm and the other box.cfm
2. double click box.htm in explorer (opens with firefox)
3. run localhost/box.cfm in firefox
4. Compare the layouts, they are different!

If you compare the 2 layouts, the viewport is a different size. In 1024 res, the .cfm version needs a horizontal scrollbar whereas the htm version does not

Can anyone explain this?

Code:
<html>
<body>
<div style="margin-left:auto;margin-right:auto;width:960px;border: 1px solid #666;">1234</div>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
</body>
</html>
 
Could you have an application.cfm changing your output when opening box.cfm?

Lyndon

---People Remember about 10% of what you say ---They never forget how you made them feel. Covey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top