Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

problem with <td width="100" > doesnt respect it

Posted on 2003-12-01
4
Medium Priority
?
201 Views
Last Modified: 2010-04-09
well i want my cell to respect some specic size but he doesnt respect it

<td width="100" >
but it  split my cols in 2 with the same exact size

any help would be nice

<html>
<head>
</head>
<body bgcolor="gray">
<table border = "1" WIDTH = 100%>
<tr>
<td ALIGN="center" COLSPAN=2>
<h3>Title</h3>
</td>
</tr>
<tr >
<td  COLSPAN=2 >
Français | English | Login | Sign-up
<td>
</tr>
<tr>
<td width="100" >
<h4>News</h4>

</td>
<td VALIGN="top" >
Bonjour
</td>
</tr>
</table>

</body>

</html>
0
Comment
Question by:-Shadow-
  • 3
4 Comments
 
LVL 31

Assisted Solution

by:seanpowell
seanpowell earned 200 total points
ID: 9854248
You need to close the td cell properly:

<td COLSPAN="2">Français | English | Login | Sign-up</td>
0
 
LVL 31

Accepted Solution

by:
seanpowell earned 200 total points
ID: 9854258
You may also want to add the nowrap attribute to the 100 pixel wide cell:

<html>
<head>
</head>
<body bgcolor="gray">
<table border="1" WIDTH="100%">
  <tr>
    <td ALIGN="center" COLSPAN="2"><h3>Title</h3></td>
  </tr>
  <tr>
    <td COLSPAN="2">Français | English | Login | Sign-up</td>
  </tr>
  <tr>
    <td width="100" nowrap><h4>News</h4></td>
    <td VALIGN="top" width="100%">Bonjour</td>
  </tr>
</table>
</body>
</html>
0
 

Author Comment

by:-Shadow-
ID: 9855027
tnx a lot guys i used your code georgemarian and it worked no idea why it didnt with mine i guess i forgot something else somewhere
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9857274
Thanks -Shadow - Actually I made both comments, since I realized the first may not have been complete :-)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
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…

885 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