Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I stop tables from resizing in my browser?

Status
Not open for further replies.

imaginaryfriend3000

Technical User
Apr 27, 2002
4
US
I am a TOTAL novice at Dreamweaver and do not know HTML. I am designing a simple site and want my tables to remain static and not get smaller as I resize my browser window. How do I design it in Dreamweaver 3.0 so they remain static?
 
give them a defined width and height

<table width=&quot;300&quot; height=&quot;300><tr><td></td></tr></table>

as opposed to

<table>><tr><td></td></tr></table>

or

<table width=&quot;100%&quot;>><tr><td></td></tr></table> [Hammer]
Nike Failed Slogans -- &quot;Just Don't Do It!&quot;
 
height=&quot;300

Two comments
1. &quot;300&quot; should be closed if used
2. height is NOT a VALID HTML 4.01 or XHTML attribute for table or cell and should not be used. There is no guarantee that this attribute will control the height of a table or cell in most browsers. The best way to ensure height of a cell or table is to used a spacer image with

 
Use a transparent .gif for the spacer image recommended by mxjunkie, unless there is already an image in use with the correct height.

Fixed tables present their own problems however. Make sure you view your site at various monitor resolutions (800x600 and 1024x768 good enough for most sites) before you publish it. Peace
BT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top