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/