You are here: Re: paddings or margins « HTML « IT news, forums, messages
Re: paddings or margins

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация