Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: DIV table width

  1. #1
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    DIV table width

    Hi

    I'm having problems between IE & FF showing a table width at 100%.

    Because my site is now in a tableless format, using a div for header, naviagation & content, where content may have a table in it at 100%, on one browser displays correclty, but another goes beyond page width.

    What is the IE/FF fix for this?

    Cheers

  • #2
    Regular Coder
    Join Date
    Jul 2007
    Posts
    571
    Thanks
    25
    Thanked 28 Times in 28 Posts
    Quote Originally Posted by BTbuses View Post
    Hi

    where content may have a table in it at 100%

    Cheers
    i thought u said it had no tables,
    is this table for data, or is it part of the design?

    post your code, it will make answering your question easier!

  • #3
    New Coder
    Join Date
    Jun 2007
    Location
    Quebec, Canada
    Posts
    64
    Thanks
    4
    Thanked 3 Times in 3 Posts
    hi, try this :

    Code:
    body,html { width: 100% }
    #full { width: auto }
    giving a width of 100% to body and html, the #full div auto's to take all the available space, being 100%,
    where full would be a complete container including the header, content and footer

    i think it could work too with your three divs

    if not, send your code
    Last edited by vexen; 07-08-2007 at 08:03 AM. Reason: oops

  • #4
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Firstly, the tables were within the content from pages, not the actual page design, sorry about that misinterpretation

    Secondly, thankyou, the code appears to have worked! Much appreciated!

  • #5
    New Coder
    Join Date
    Jun 2007
    Location
    Quebec, Canada
    Posts
    64
    Thanks
    4
    Thanked 3 Times in 3 Posts
    Quote Originally Posted by BTbuses View Post
    Firstly, the tables were within the content from pages, not the actual page design, sorry about that misinterpretation

    Secondly, thankyou, the code appears to have worked! Much appreciated!
    no problem. i'm also learning and just helping someone else with something i already know


  •  

    Posting Permissions

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