Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 25-06-2009
Member
 
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!
Reply With Quote
  #2  
Old 25-06-2009
Member
 
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.
Reply With Quote
  #3  
Old 25-06-2009
Member
 
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.
Reply With Quote
  #4  
Old 25-06-2009
Member
 
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.
Reply With Quote
  #5  
Old 23-08-2010
Member
 
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...
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "HTML page table width not working in Firefox"
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


All times are GMT +5.5. The time now is 01:39 AM.