Solved

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

Posted on 2003-12-01
4
196 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-
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 31

Assisted Solution

by:seanpowell
seanpowell earned 50 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 50 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
need help with share buttons 11 106
Html using "Or" in condition 3 43
How do I Import CSV File In my PHP Application 29 79
Question about Layout 3 3
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

710 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