SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard gate2vn's Avatar
    Join Date
    Jan 2004
    Location
    Oslo, Norway
    Posts
    1,053
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    div and table size

    I have this code
    Code:
    <div id="div_id_1">
    <p>
    <table width="xxx">
    ....
    </table>
    </p>
    </div>
    If the table width (xxx pixels) is set larger than div width (set in div_id_1 settings), the table will be shown outside of the div.

    Is there any way to fix the table, with whatever size, shown within the div?
    Clustered CloudLinux Hosting | WordPress Hosting |
    Advanced Antispam | Managed Xen VPS
    in US West coast and Asia-Pacific datacenters
    Contact us now on Twitter @vietnap

  2. #2
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,495
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    First off, tables are not paragraph content, so get the table out of the paragraph. Second, I'd have to see the rest of your HTML and CSS code to be able to help you further.


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
  •