Solved

HTML Column Width Issue in both Firefox & IE

Posted on 2008-10-20
3
611 Views
Last Modified: 2013-12-08
This should be an easy one. When there's a LOT of text to display, the column widths expand out horizontally and the user must scroll way across the screen.  Any suggestions?
<table border="1" width="100%" cellpadding="3" cellspacing="0">
	<tr>
		<td width = "20%"><b>Field1</b></td>
		<td width = "20%"><b>Field2</b></td>
		<td width = "20%"><b>Field3</b></td>
		<td width = "30%"><b>Field4</b></td>
		<td width = "10%"><b>Field5</b></td>		
	</tr>

Open in new window

0
Comment
Question by:hennessym
3 Comments
 
LVL 4

Expert Comment

by:Jerrod_W
ID: 22761524
Is that your complete code?
0
 
LVL 4

Accepted Solution

by:
tvedtem earned 100 total points
ID: 22761618
It should be OK - unless your problem is that each value is not wrappable (e.g. very long words.. ?)
 e.g. This is a problem because fields 3 and 5 can't be wrapped.  Field 4, though long, wraps OK.
 

<table border="1" width="100%" cellpadding="3" cellspacing="0">
 <tr>
  <td width = "20%"><b>Field1</b></td>
  <td width = "20%"><b>Field2</b></td>
  <td width = "20%"><b>Field3Field3Field3Field3Field3Field3Field3Field3Field3Field3</b></td>
  <td width = "30%"><b>FiField4Field4Field4Field4Fi eld4Field4Field4Fie ld4Field4Field4Field4Field4eld4</b></td>
  <td width = "10%"><b>Field5Field5Field5Field5</b></td>
 </tr>
</table>

Open in new window

0
 
LVL 1

Author Comment

by:hennessym
ID: 22761714
Yep, that's it.  Thanks, tvedtem!
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to use embargo Date/time in php 29 39
Can not open the Access Help ? 3 54
Input box gone wrong 8 24
Call a function within the ASP code 4 12
#Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question