Re: CSS: how to draw an inner border?
- From: Ben C <spamspam@xxxxxxxxx>
- Date: Sat, 14 Feb 2009 09:55:31 -0600
On 2009-02-13, Jonathan N. Little <lws4art@xxxxxxxxxxx> wrote:
[...]
[2] Don't quote numeric length values or keywords and 100% means 100% of
the container and only really works when you set a discrete value on the
container, did you? We don't know because you only posted a snippet and
not a URL
Width: 100% will work when the container is width: auto. It's only
percentage heights that in most cases need a definite height on the
container.
This is because in normal flow the width of a box doesn't depend on the
contents, but the height does. Widths are calculated early and greedily,
heights late and conservatively.
But you hardly ever want width: 100% because it sets the content box
width to 100%. You usually want the margin box width to fill the
container, which it does just nicely on a block if you leave it as
width: auto.
.
- References:
- CSS: how to draw an inner border?
- From: Nicole
- Re: CSS: how to draw an inner border?
- From: Jonathan N. Little
- Re: CSS: how to draw an inner border?
- From: Nicole
- Re: CSS: how to draw an inner border?
- From: Jukka K. Korpela
- Re: CSS: how to draw an inner border?
- From: Nicole
- Re: CSS: how to draw an inner border?
- From: Jonathan N. Little
- CSS: how to draw an inner border?
- Prev by Date: Re: Help to REPEAT (not stretch!) AN IMAGE <--HORIZONTALLY--> WITHIN A CELL w/EXAMPLE
- Next by Date: Apache Proxy Default Fail Page
- Previous by thread: Re: CSS: how to draw an inner border?
- Next by thread: Web page in a web page ?continue...
- Index(es):
Relevant Pages
|