Results 1 to 5 of 5

Thread: HTML page table width not working in Firefox

  1. #1
    Join Date
    Dec 2008
    Posts
    51

    HTML page table width not working in Firefox

    I have an HTML page which has a fairly wide table on it. I am trying to use CSS to set a fixed width for the table columns. The table width is set to 800px. If opened in IE, it works fine but if opened in Firefox, it stretches to infinity. I have searched the net trying to find ways of fixing this to no avail. Any help would be greatly appreciated!

  2. #2
    Join Date
    Jan 2009
    Posts
    140

    Re: HTML page table width not working in Firefox

    Probably depends on the content in the table, so it might be handy if you would post a link or at least some source code, If you are hard-coding the width of the columns, then there is no reason for them to change based on the size of the window - unless you are setting a relative width for the entire table.

  3. #3
    Join Date
    Mar 2008
    Posts
    258

    Re: HTML page table width not working in Firefox

    Firefox makes the table wide enough to hold the content if it can't wrap the cell contents. My advice is to ditch tables and start using CSS divisions. It's a difficult transition at first, but once you get the hang of CSS, you'll never go back to tables.This will even make the page wider if necessary, adding horizontal scrollbars if it is wider than the browser windows.

  4. #4
    Join Date
    Mar 2008
    Posts
    227

    Re: HTML page table width not working in Firefox

    Have you tried the HTML wrapper modules? That might help constrain your tables..One way you can force the columns not to shrink would be to create a spacer row. First create a 1 pixel transparent gif. Then create a row at the beginning or end of the table and put this image in each cell and give it the width of the row. The only way it lets you customize the output is by changing what is between the <style></style> tags.

  5. #5
    Join Date
    Aug 2010
    Posts
    1

    Re: HTML page table width not working in Firefox

    you could place your table in a div like this:

    HTML Code:
    <div style="width:800px">
         <table>
         </table>
    </div>
    hope this helps...

Similar Threads

  1. HTML Forms not working in my Firefox 6.
    By Rust-18 in forum Technology & Internet
    Replies: 2
    Last Post: 20-08-2011, 07:47 PM
  2. span width in HTML Css
    By Ash maker in forum Software Development
    Replies: 5
    Last Post: 03-03-2010, 10:17 PM
  3. CSS width not working in Firefox
    By Transporter in forum Software Development
    Replies: 5
    Last Post: 29-12-2009, 06:06 PM
  4. Percentage problem on width of table columns
    By Zeverto in forum Software Development
    Replies: 3
    Last Post: 12-08-2009, 11:42 AM
  5. Page break between table rows in html
    By Zool in forum Software Development
    Replies: 2
    Last Post: 11-08-2009, 02:38 PM

Tags for this Thread

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
  •  
Page generated in 1,713,988,926.71998 seconds with 17 queries