SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard johntabita's Avatar
    Join Date
    Mar 2001
    Location
    In a big, big house, with lotsa lotsa room
    Posts
    1,060
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)

    Problems with Tables & CCS Margins

    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:


    /* margins for content */

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


    Then place a table inside the blockquote tag like so:

    <blockquote>

    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <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:

    www.mmtglobal.com/intranet/sales-marketing/mmt-store/sales-collateral/

    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!

  2. #2
    SitePoint Wizard johntabita's Avatar
    Join Date
    Mar 2001
    Location
    In a big, big house, with lotsa lotsa room
    Posts
    1,060
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Oops! I pressed the back button too many times and posted this twice. Moderator, feel free to delete.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •