You have an HTML comment surrounding your CSS. I would suggest removing that first as that could cause numerous display variances.
It also may be that your web host has whitespace suppression enabled in the CFAdmin. Based on the amount of whitespace in your example source, I'm assuming that's not the case on the demo machine. You might try turning that on if the problem persists and seeing if the removed whitespace is causing the problem in any way. HTH, Jon On Apr 23, 2007, at 11:44 AM, [EMAIL PROTECTED] wrote: > All, > > I have a stripped down Coldfusion page using css for a centered > wrapper that > works for me at Web hosting company A and it works as a *.cfm or > *.htm file. > > However when I place the *.htm and *.cfm files on Web hosting > company B, it only > works as an *.htm file doesn't when I rename it to a *.cfm file. > The the centered look > falls to the left. > > http://www.microfuelcell.com/oikos.cfm - working sample on company A. > Notice how the div is centered in the page regardless of widht of > the browser. > > Is this a server config issue? Thanks for any help. Code below ... > > D > > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > <meta http-equiv="Content-Type" content="text/html; > charset=iso-8859-1" /> > <title>Untitled Document</title> > <style type="text/css"> > <!-- > ..go { > font-size: 12px; > } > #Layer2 { > position:relative > top:645px; > width:768px; > height:900px; > margin-right: auto; > margin-left: auto; > background-color: #FFFFFF; > border: 2px solid #000000; > } > --> > </style> > </head> > <body> > <div id="Layer2">Content for id "Layer2" Goes Here</div> > </body> > </html> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276064 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

