HTML Column Width Issue in both Firefox & IE

Posted on 2008-10-20
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">


		<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>		


Open in new window

Question by:hennessym

Expert Comment

ID: 22761524
Is that your complete code?

Accepted Solution

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">


  <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>



Open in new window


Author Comment

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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

705 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now