Help - Search - Members - Calendar
Full Version: Putting Div Layout in the center.
Forums > Resource Center > Support Center > Xanga Support > Xanga Resolved Topics
angel-roh
I'm using firefox 3 and my desktop size is 1280x1024, but I have a problem like when I view my layout, it's like in the centered top, is there a way where I can just make it centered, not like top or bottom, but in the center of the screen. Because how my layout view is top centered, there's this huge gap down there and it looks ugly that way :( here's the code,

CODE

<img name="illuminatedsky" src="http://img171.imageshack.us/img171/1927/listentofreedomwp0.jpg" width="900" height="650" border="0" usemap="#m_illuminatedsky" alt=""><map name="m_illuminatedsky">

</map>

<div align=left style="position:static; margin-left:400px;
margin-top:-590px; width: 430px; height: 550px; overflow: auto;">



and screenshot of how it looks like >__<;; (i removed the link to my xanga site cause i didnt want people to know my site url >__<;;
MidnightxAurora
I know this doesn't works in Firefox, but this works in IE. I know this is useless, but I'm still finding the way too. If you don't want your image to be at the top, I only know one way --

CODE
<body leftmargin="0" topmargin="50" marginwidth="0" marginheight="0">
Your content here.
</body>


emberfly
I can't view your screenshot.
IVIike
Just position the whole div down like 150px or so and then adjust your coding and it should work just fine thumbsup.gif
emberfly
^Then it wouldn't be browser-friendly.


ALSOOOOOOOO... I figured out how to basically put layouts anywhere on a page. It's quite simple and ideal for DIVs.




It's pretty time-consuming to explain (even though it is simple), though.. I'd much rather discuss it over AIM or something simple.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.