You're getting a scrollbar because the border is making the table wider than 
the available area. The 100% refers to the width of the CONTENT, not the width 
of the table itself. The combination of content+padding+borders must add up to 
100%, which is rather difficult when dealing with border widths in pixels.

Please see this article on the CSS Box model to see what I mean: 
http://jessey.net/simon/articles/003.html

Simon Jessey
------------

Business Email: [EMAIL PROTECTED]
Personal Email: [EMAIL PROTECTED]
Business Site:  http://keystonewebsites.com/
Personal Site:  http://jessey.net/


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