Posted by Andy Dingley on 03/23/07 15:19
On 23 Mar, 12:42, "Jon Slaughter" <Jon_Slaugh...@Hotmail.com> wrote:
> For my page I used padding to position some elements properly
Interesting use of "properly" there.
Stop typing. Read a tutorial. You're not going to get anywhere useful
by just twiddling a property at a time and seeing what happens.
Lie & Bos' book "Cascading Style Sheets" is good, as it O'Reilly's
"Head First HTML with CSS & XHTML". There's also an excellent CSS
positioning tutorial on http://brainjar.com/css/positioning/
In general though, leave padding alone and do most stuff with margins.
Remember that vertical margins collapse, sides don't. Be careful if
you ever change the position property. Float isn't intended for what
you seem to think and using it reliably isn't as simple as you might
expect.
[Back to original message]
|