If you're trying to mimic the look you'd get with the 100% width table/border, 
try varying the margins of the body of the document, then apply the border to 
the containing div like:


<body style="margin: 0 1px 0 1px; padding: 0px;">
<div style="width: 100%; border: 1px solid black; margin: 0; padding: 0;"> ... 
</div>

(I needed to make the right margin 3px to get it to display correctly... I 
don't know why, however.)

HTH,
Janet

________________________________

From: [EMAIL PROTECTED] on behalf of Bob Easton
Sent: Fri 4/29/2005 7:17 PM
Cc: Web Manager; css-discuss
Subject: Re: [css-d] Easy CSS problem



   ----- Original Message -----
>   From: Web Manager
>   To: css-d@lists.css-discuss.org
>   Sent: Friday, April 29, 2005 3:35 PM
>   Subject: [css-d] Easy CSS problem
>
>
>   I'm new to the list and also new to CSS design.  I'm trying to go fully
>   table-less and I'm running into a little problem.  I have to rebuild a
>   table-based site in CSS.  I have a div that I want 100% but with a border
>   around it.  The problem is that when the border is in place it causes the
>   browser to be able scroll ever so slightly to the right.

See also a page in our WIKI:
http://css-discuss.incutio.com/?page=BoxModel 
<http://css-discuss.incutio.com/?page=BoxModel> 

--
Bob Easton
Accessibility Matters: http://access-matters.com <http://access-matters.com> 

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


______________________________________________________________________
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