Help - Search - Members - Calendar
Full Version: HTML Table Question
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
Crazy R
I have just started to actually understand how tables work. I am trying to work with sizing tables. I have created a table inside a table. My problem is, the green table isn't at the top as the red one is. How do I fix this? Please take a look at the script.

<html>
<title>Test Page</title>
<body>
<table cellspacing="0" cellpadding="0">
<tr height="400">
<td bgcolor="red" width="200"></td>
<td>
<table cellspacing="0" cellpadding="0">
<tr height="200">
<td bgcolor="green" width="400">
pandy
Add a visible border to both tables. It makes it easier to see what's going on.

Then read up about the attributes available. You want 'valign'. Its default value is 'middle'. That's why the inner table is where it is. wink.gif
Crazy R
Thank you!
pandy
Come on now, don't belittle yourself. smile.gif

Learn the syntax once and you can apply it always. It's like this.

CODE
<ElementName attribute1="value1" attribute2="value2" attribute3="value3">Content goes here</ElementName>


So if the element is TD, you already have bgcolor="red" and width="200" and want to add the attibute 'valign' with value 'top', then what do you get?
Crazy R
I apologize, but I am not of the html education to understand that. sleep.gif
Darin McGrew
Please see the FAQ entries Where can I learn about HTML? and Where can I learn about CSS?
pandy
QUOTE(Crazy R @ Jun 27 2008, 05:30 PM) *

I apologize, but I am not of the html education to understand that. sleep.gif


So how did you manage to get the sample in the first post together? rolleyes.gif
Crazy R
Well, I knew that, I just don't understand the element name and attribute stuff you posted.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.