Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with Tables & CCS Margins

Status
Not open for further replies.

johntabita

Programmer
Feb 23, 2001
26
US
Hello, all. I'd really appreciate any help from those of you who may have experienced this problem.

The trouble I am having is when using CSS margins with tables set at 100%. If I define the blockquote tag like so:


Code:
/* margins for content */

blockquote { 
margin: 4em 10% 5em 10%;
}

Then place a table inside the blockquote tag like so:

Code:
<blockquote>

<table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr>
<td>Main Content Stuff goes here</td>
</tr>
</table>

<blockquote>


I would expect the table to horizontally fill the cell, less the margin specified in the style. However, what I end up with is content being cut off like so:


The only browser this happens in is IE5-6/PC. Netscape/PC and all Mac browsers render it as I expected. Is there a solution that will allow it to display consistently? Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top