Solved

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

Posted on 2003-12-01
4
193 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 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
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…

746 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

12 Experts available now in Live!

Get 1:1 Help Now