SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
Thread: max-width table or div
-
Oct 16, 2003, 08:48 #1
- Join Date
- May 2003
- Location
- Parsippany, NJ
- Posts
- 8
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
max-width table or div
I've been trying all morning to figure out if this is possible.
The content portion of my page is currently a 1 cell table at 90% width. (I know I should do that with css, It's an old design and I haven't had time) Works fine on up to about 800x600, but larger than that the text gets too stretched out. Is there some way to set the maximum width of the table to 750px but have it reamain liquid at narrower resolutions?
Here is an example page from the site:
http://www.bushwackers.org/member/openhouse2004.htmlAlex Nielsen
-
Oct 16, 2003, 09:07 #2
Yes!
Code:table { width: 90%; /*max-width doesn't work in IE/Windows, but will work in all other browsers*/ max-width: 750px; }
-
Oct 16, 2003, 10:02 #3
- Join Date
- May 2003
- Location
- Parsippany, NJ
- Posts
- 8
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by vgarcia
Alex Nielsen
-
Oct 21, 2003, 10:00 #4
- Join Date
- May 2003
- Location
- Parsippany, NJ
- Posts
- 8
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
solution!
Originally Posted by bushbass
Posted: Tue Oct 21, 2003 12:25 pm
Post subject: Done!
--------------------------------------------------------------------------------
Finally got it, works IE 6 anyways but I haven't tested in other versions or other browsers. It does look fairly safe IMO.
Quote:
<body><table cellpadding="1%">
<tr>
<td width="755">text text text text text text
text text text text text text text text text text text text text text text text
text text text text text text text text text text text text text text text text
text text text text text text text text text text text text text text text text
text text text text text text text text text text text text text text text text text text text text
text text text text text text
text text text text text text text text text text text text text text text text
text text text text text text text text text text text text text text text text
text text text text text text text text text text text text text text text text
text text text text text text text text text text text text text text text text text text text text
</td>
<td width="1%"> </td></tr></table>
</body>
Please let me know....
_________________
Always do right - this will gratify some and astonish the rest.
--Mark Twain
http://factor1.net/
My soon to be 'Real' site.(Jan. 1st launch - good stuff up there now to keep amused by)Alex Nielsen
Bookmarks