DIV & CSS Tutorials

Permabanned
Joined
19 Apr 2006
Posts
2,333
Location
West Yorkshire
Can anyone point me towarda good css & divs tutorial, something with examples in it please?

Am searching google, but not getting what I am looking for.
 
Quick Question.

I know this is very simple, I've done it before but can't seem to get it working this time and I tried various ways for the last 2 hours :(

Basically I want to position the container without any gap at the top but somehow on Mozilla Firefox it leaves around 10px gap. It doesnt happen in Internet Explorer.
body {
margin: 0 auto;
}
#container {
margin: 0 auto;
padding: 0;
width: 750px;
}

everything is inside the container e.g header / content / sidebar / footer.

Not very important thought but I just want to know what I'm doing wrong for future reference.

Thanks.
 
Last edited:
Code:
html, body {
margin: 0 auto;
}
#container {
margin: 0 auto;
padding: 0;
width: 750px;
}

maybe
 
Still doesn't work :(. I know this is down to me :(.


To answer the original OP question. you should have a look at the sticky there are plenty of good CSS websites but to really understand more about CSS and divs get yourself a good book. I recommend Dan Cederholm's Web Standards Solutions and Bullet Proof Webdesign.
Both very easy to understand for beginners and more advanced users. Other good books include User Centered Web Design by John Cato and Managing Multimedia for more theory such as accessibility, legal issues, contract etc.

These books will be good reference in the future and when you don't have access to internet or cba searching.
 
Back
Top Bottom