You are here: Re: Borders « HTML « IT news, forums, messages
Re: Borders

Posted by Ed Seedhouse on 12/03/06 04:35

On Sat, 2 Dec 2006 20:35:01 -0600, "Nicholas" <no-reply@email.com>
wrote:

>When adding a border to a div with CSS, where does it's pixels exist in
>relation to the div's width and height? For instance, if I create a 300px by
>300px div and add a 1px border to it, have I now created a 302px by 302px
>div, or have I reduced my usable space within the div to 298px by 298px?

The former, except that Internet Explorer does it the wrong way in
versions less than 6.0 and will do it wrong with 6.0 unless given a
doctype that will put it in "standards" mode.

But the CSS standard calls for both borders and padding to increase the
width or height (or both) of an element.

 

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

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