Re: CSS: how to draw an inner border?



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.
.



Relevant Pages

  • Re: Erleben wir gerade den Niedergang der Bahn?
    ... elektrischen Rollstuhl denn einem Auto vergleichbar. ... Wenn sie schon der Nächste hat, dann ist das eben so, und wenn sie "zu weit" ... Dann doch lieber als Container ohne eigenes Fahrwerk und ohne eigenen ...
    (de.soc.verkehr)
  • Re: How to center nested divs
    ... instead of float: left and then put text-align: center on the container. ... But you can get away without centred shrink-to-fit here since you are ... auto and that should work. ... Make sure you also set padding and margin to 0 on the ul-- one or other ...
    (comp.infosystems.www.authoring.stylesheets)
  • 960 grid and padding?
    ... I would prefer to add the padding style to the container def but this ... margin-left: auto; ... margin-right: auto; ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: Teure Corvette ...
    ... Rüberfliegen, Auto in USA kaufen, zum Hafen fahren - unter 1000 EUR plus ... im Container rund 1000 EUR für die Transatlantikpassage, ... und man muss ja auch zum Hafen kommen. ... Die Teile könnte man zurück nach USA verkaufen, gerade z.B. Scheinwerfer ...
    (de.etc.fahrzeug.auto)
  • Re: Radiator stop leak
    ... open up the container and see how much sawdust is in there. ... | While in an auto parts store yesterday I noticed a tube of radiator stop ...
    (rec.pyrotechnics)