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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to stop table from resizing when browser resize

Status
Not open for further replies.

omoo

Programmer
May 30, 2005
87
0
0
US
Hi,

I have a table with values in each cells but I do not want the size of the table to become smaller when I resize the window browser smaller. Especially when I resize the vertical part of the window browser, the table will move in and become thinner too.

How can I do this?
 
Hi, I tried to use "width" but it cannot work. I forgot to say that the 1st column of the table contains words, 2nd column is a textbox and 3rd column is a drop down box. When I resize the windows browser, the 2 boxes did not get resize but the words at the 1st column change from one line to 2 lines.
 
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Table Test</title>
</head>
<body>

<table width = "600"   border = "1">
<tr>
	<td width = "198">dgfhsdf;hsdf;hdsfhdsf</td>
		<td width = "198"><select style="width: 195px" size="5">
    			<option value="a">A</option>
    			<option value="b">BBBBBBBBBB</option>
			 <option value="c">CCCCCCCCCCCCCCCCCCCC</option>
    			<option value="d">D</option>
    			<option value="e">E</option>
    			<option value="f">F</option>
		</select></td>
	<td width = "198"><input type = "text" style="width:195px"></td>
</tr></table>
</body>
</html>
Like This??

Glen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top