|
|
![]() |
| Thread Tools | Search this Thread |
#1
| |||
| |||
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
| |||
| |||
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
| |||
| |||
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
| |||
| |||
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
| |||
| |||
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> |
![]() |
|
Tags: browser format, css, firefox, table width |
Thread Tools | Search this Thread |
|
![]() | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HTML Forms not working in my Firefox 6. | Rust-18 | Technology & Internet | 2 | 20-08-2011 07:47 PM |
span width in HTML Css | Ash maker | Software Development | 5 | 03-03-2010 10:17 PM |
CSS width not working in Firefox | Transporter | Software Development | 5 | 29-12-2009 06:06 PM |
Percentage problem on width of table columns | Zeverto | Software Development | 3 | 12-08-2009 11:42 AM |
Page break between table rows in html | Zool | Software Development | 2 | 11-08-2009 02:38 PM |