|
Posted by David Graham on 12/19/05 20:16
"David Dorward" <dorward@yahoo.com> wrote in message
news:do6elj$cdd$1$8300dec7@news.demon.co.uk...
> David Graham wrote:
>
> > http://www.w3.org/TR/CSS2/box.html#margin-properties
> >
> The core of it is...
>
> If the width is specified, then it is that.
> Otherwise, it is whatever is left over after margins, borders, and
paddings
> have been accounted for.
Perhaps you thought I meant BOX width, the box width includes the margins,
borders and padding but from what i have read the content width excludes all
of these. I think the confusion arises because I don't understand what you
mean by 'left over after....'
I agree that if the content width is explicitly specified then it will
definitly be that width but in the example at
http://www.w3.org/TR/CSS2/box.html#margin-properties it is not stated and
yet when you look at the diagram you can see the content of each Li outlined
by a thin line (which can't be a border because that lies around the outside
perimeter of each Li's padding - so not sure what the line is!) and there is
some space left at the right of each Li's text - making me think something
is dictating that the Li's width should be a bit wider than it's text. Boy
am I confused and I guess I am not interpreting your answer properly but if
you can be so good could you follow up and put me out of my misery with this
box model stuff.
[Back to original message]
|