Jasper, I believe you can find the formula for a block expanding horizontally to fill its container on this page:
http://www.w3.org/TR/CSS21/visudet.html

Regards,
Paul


At 02:14 PM 6/8/2005, Jasper Kuperus wrote:
Hmm I get your point. So when I just don't specify any width. It works out exactly the same. So I believe this isn't a hack after all.

But my next question now is, will it always be parsed like this? If you don't insert a width rule at all, will it always stretch the whole width?

- Jasper

Paul Novitski wrote:

At 01:20 PM 6/8/2005, Jasper Kuperus wrote:

When I was redesigning my homepage I found a CSS hack. Because I couldn't find anything about this hack, it seemed to me that this hack isn't known yet. So I named it after my homepage: The Curunir Hack.

http://shirmanos.student.utwente.nl/~jasper/index.php?id=5



Jasper, at first glance I thought this was very clever, but then I realized that it only works when you're specifying {width: 100%;}. Your hack {width: 100% -;} makes the width rule unparseable, so the browser renders the div as though no width had been declared -- i.e., as wide as it can make it, filling its container, automatically subtracting the margin, padding, border width, etc.

Rather than insert a hyphen to break the width rule, why not simply eliminate the width rule entirely, and enclose your div in a container of the desired width?

Regards,
Paul



______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to