|
Posted by Neredbojias on 01/12/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]
|