OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
Why are a lot of sites jusitified left?
This page's ID:
24630
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
unfortunately this code does not center in IE < 5.5 (I think...) but it does work in the newer versions of IE and I know it works best in FF b/c that's what I test in. This is coming pretty much straight from my stylesheet, so you will need to fix the div IDs and widths. [code] //this is where you will put the whole page width (700px in your case) //the margin: auto; is what centers the page #frame { width: 640px; margin: auto; text-align: left; background-color: #000000; border: 2px solid; } #banner { width: 640px; margin: auto; padding-top: 5px; text-align: center; background-color: #000000; } #navigation { width: 125px; font-weight: bold; float: left; text-align: left; background-color: #000000; } #content { width: 410px; float: left; background-color: #000000; padding: 5px; } #links { width: 95px; float: right; text-align: center; padding-top: 10px; background-color: #000000; } #clear { height: 30px; width: 640px; padding-top: 10px; clear: both; text-align: center; background-color: #000000; border-top: 3px solid; } [/code] there is more discussion of the clear div [24120] the HTML would look something like this [code] <body> <div id="frame"> <div id="banner"> ...the rest of your divs, floated or positioned as you'd like </div> </div> </body> [/code] if you need some 1-on-1 I can be contacted via the AIM SN: IXIfx I might not be the best, but I'm really working on it and I can try to explain it to you as best I can. hope this helps, [url=www.IXIfx.net][img]http://www.IXIfx.net/asylum/sigs/Guitar.gif[/img][/url] [sigrotate] Of all the things I've lost, I miss my mind the most (Ozzy Osbourne)| Some people say I'm a dreamer, but I'm not the only one (John Lennon)| Life is too short, so love the one you got (Bradley Nowell)| I focus on the pain; The only thing that's real (Trent Reznor)| I know the pieces fit, 'cause I watched them fall away (Maynard J. Keenan)| Take your time, hurry up; the choice is yours just don't be late (Kurt Cobain)| You could stand me up at the gates of hell, but I won't back down (Tom Petty)| Do you serve a purpose or purposely serve (Corey Taylor)| You know I'd like to keep my cheeks dry today, so stay with me and I'll have it made (Shannon Hoon) [/sigrotate] [edit]fixing ubb[/edit] [small](Edited by [internallink=21491]I X I[/internallink] on 01-12-2005 13:19)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »