Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

<table width=200%> = legit HTML ?

Thread Tools
 
Search this Thread
 
Old Sep 19, 2004 | 01:34 PM
  #1  
DazV's Avatar
DazV
Thread Starter
Scooby Regular
 
Joined: Jun 2000
Posts: 3,783
Likes: 0
Default <table width=200%> = legit HTML ?

Trying to render a table in Mozilla, which works ok in Internet Explorer.

I'm writing a database app, that needs to extend horizontally across the screen, rather than down the screen. It has 4 cells, each 25% of the table width.

Mozilla doesn't seem to like table widths beyond 100% - is this because its not strictly correct HTML ?

NB: I'm very mindful to write HTML that is compatible across all browsers. I don't want to go down the avenue of writing only something that will work in IE.

EDITED TO ADD:
Setting a table width in pixels does SEEM to be acceptable to Mozilla, but I don't like doing this as I like my users to be able to increase font size themselves to aid readability and restricting a table width to X pixels wide doesn't help this.
Reply
Old Sep 19, 2004 | 01:49 PM
  #2  
Iain Young's Avatar
Iain Young
Scooby Regular
 
Joined: Sep 1999
Posts: 6,956
Likes: 0
From: Swindon, Wiltshire Xbox Gamertag: Gutgouger
Default

Mozilla / firefox etc both accept width=-"100%" and format it correctly. Why would you want to create anything with larger values?

I've created loads of tables using 100% width, and the render just fine in both ie and mozilla (filling the page horizontally), so I suspect you've got something wrong elsewhere in your html if it's not working for you...
Reply
Old Sep 19, 2004 | 03:06 PM
  #3  
DazV's Avatar
DazV
Thread Starter
Scooby Regular
 
Joined: Jun 2000
Posts: 3,783
Likes: 0
Default

Iain, I know width=100% renders fine - perhaps I didn't explain properly.

In this instance I have so much information to display that it won't all fit on one screen. I'd want to fit the extra information on the screen sideways (not downwards) eg. the user would scroll HORIZONTALLY to see all the information.
Reply
Old Sep 19, 2004 | 04:54 PM
  #4  
DazV's Avatar
DazV
Thread Starter
Scooby Regular
 
Joined: Jun 2000
Posts: 3,783
Likes: 0
Default

Problem solved
Reply
Old Sep 19, 2004 | 04:56 PM
  #5  
stevencotton's Avatar
stevencotton
Scooby Regular
 
Joined: Jan 2001
Posts: 2,710
Likes: 1
From: behind twin turbos
Default

The '100%' refers to the width of the browser window not the width of the screen, so 200% of 10 pixels is still only 20 pixels if one's browser is set that wide. Use something else.
Reply
Old Sep 20, 2004 | 06:49 PM
  #6  
pmacFTO's Avatar
pmacFTO
Scooby Regular
 
Joined: Mar 2003
Posts: 438
Likes: 0
From: West Lothian, Scotland
Default

<table width=*>
That means it will size it to whatever content is in it...so it WILL scroll horizontally...not sure if thats what u did tho!
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
shorty87
Full Cars Breaking For Spares
19
Dec 22, 2015 11:59 AM
Brumguy34
Subaru Parts
8
Oct 4, 2015 07:51 PM
Mad Hammer
Subaru Parts
2
Sep 29, 2015 08:15 PM
madmover
Member's Gallery
4
Sep 28, 2015 10:46 AM
shorty87
Other Marques
0
Sep 25, 2015 08:52 PM




All times are GMT +1. The time now is 08:48 AM.