You are here: Re: css- 2 boxes, one=200px, second=(100%-200px)- how? « HTML « IT news, forums, messages
Re: css- 2 boxes, one=200px, second=(100%-200px)- how?

Posted by Neredbojias on 01/11/11 11:28

With neither quill nor qualm, talthen.z-serwera.o2@nospam.pl quothed:

> I dit smth with margin: Xpx Ypx Zpx Vpx; width: auto and now it works.
> Thanks to google.
> The problem with the previous soslution was, that (margins and paddings and
> borders)'s width is added to the width of the element. So, when I do:
> width: 100%; margin-left: 100px; then I have 100%+100pixels of total width.

That is correct according to the standard. I generally don't set
percentage widths when using padding or margins in such a fashion unless
the latter are on an inner div.

>
> Regards,
> Talthen
>
>
>

--
Neredbojias
Contrary to popular belief, it is believable.

 

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

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