Actually, this might just be a bug in my code. I found this:
http://www.webmasterworld.com/forum83/4835.htm and my code also does
padding + width=XXX

        At the end of the discussion, they don't give a clear solution
on how to fix the problem. I for one really dislike the CSS box model.
I find it idiotic :) But anyway... what I'm trying to do is set the
width of my <div> to 100% and I expect the padding to be subtracted
from *within* the box, not outside it. How do I get this done? Width is
specified in percentage and padding in pixel units...

Gili

On Wed, 09 Mar 2005 12:45:38 -0500, Gili wrote:

>On Wed, 9 Mar 2005 17:39:22 +0100, Juergen Donnerstag wrote:
>
>>Let me ask one questions:
>>why is it neccessary to remove the <table> and related tags if table
>>width="100%". Why does it work for 50% and 99.99% but not for 100%.
>>And what about 120% (in case if makes sense at all). May be you
>>component should just make sure that width is never exactly 100% but
>>99.99% or 100.01%.
>
>       The problem is that <table> takes up horizontal space even if
>you specify width=100% which implies that you will end up with visible
>alignment issues when comparing the position of text within and outside
>the table.
>
>       I am only inserting a <table> in the first place because
>Mozilla has a bug whereby the border (created using <div>s) doesn't
>grow to accomodate the text. If you surround the text with a <table>,
>it will grow and cause the surrounding <div>s to grow as well. I wish
>Mozilla would just work properly :)
>
>Gili
>




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to