...

View Full Version : margin: 0px; not working in Safari?



Blatch
03-05-2009, 07:49 AM
http://www.darkgamer.com/

Can someone tell me why it works fine in FireFox but not in Safari or IE?

I'm trying to get the "shaded" bg image to touch the top. It works in FireFox.. just not Safari or IE.

coothead
03-05-2009, 08:33 AM
Hi there Blatch,

in your style sheet change this...


.body {
background-image: url('images/background_top.gif');
background-repeat: repeat-x;
background-position: top left;
}

...to this...


.body {
background-image:url(images/background_top.gif);
background-repeat:repeat-x;
padding-top:30px;
}

...and this...


table.main {
background-color: #101010;
width: 960px;
border: 1px #000000 solid;
align: center;
margin-top: 30px;
}

...to this...


table.main {
background-color:#101010;
width:960px;
border:1px solid #000;
}

Also I suggest that you, at least, check out some of these links...



A better way to build your website (http://www.boagworld.com/archives/2004/06/a_better_way_to_build_your_website.html)
Why tables for layout is stupid: problems defined, solutions offered (http://www.hotdesign.com/seybold/index.html)
Ten ways to speed up the download time of your web pages (http://www.webcredible.co.uk/user-friendly-resources/web-usability/speed-up-download-time.shtml)
Nested Tables: About the (ab)use of tables as layout tools in webpages. (http://www.dorward.me.uk/www/nested/)
Why Tables Are Bad (For Layout) Compared to Semantic HTML + CSS (http://www.phrogz.net/CSS/WhyTablesAreBadForLayout.html)
Why go table free? (http://www.workingwith.me.uk/tablefree/why/)
Why avoiding tables (for layout) is important (http://davespicks.com/essays/notables.html)


coothead

abduraooft
03-05-2009, 08:44 AM
table.main {
background-color: #101010;
width: 960px;
border: 1px #000000 solid;
text-align: center;
/*margin-top: 30px;*/
}
Know why tables for layout is Stupid (http://www.hotdesign.com/seybold/)!
too late :-(

Blatch
03-05-2009, 11:08 PM
Thanks guys!

I usually code in divs, I was just in a rush to get this up lol.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum