HighDots Forums  

problem with aligning a table cell top

alt.html.tags alt.html.tags


Discuss problem with aligning a table cell top in the alt.html.tags forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Martin Fuchs
 
Posts: n/a

Default problem with aligning a table cell top - 12-29-2003 , 08:47 PM






hi there,

i have a problem with a table cell in my html code. well first my table
looks like the following:

<table width="748" border="1" cellspacing="0" cellpadding="0"
bgcolor="#FFFFFF">
<tr>
<td width="374" height="252" colspan="2" valign="top"> CONTENT 1
</td>
<td width="374" colspan="2" rowspan="2" valign="top"> CONTENT 2
</td>
</tr>
<tr>
<td width="187" colspan="2" valign="top" class="bg_green1"><img
src="images/spacer.gif" width="1" height="1" alt=""></td>
</tr>
</table>

the table cell in the second table row should align top without any space to
the first table cell (containing CONTENT 1, an image).
i can't seem to get this table cell aligned top. tried a lot but could not
find any solution....

the real example can be found at
http://www.graphix.at/update_consult...nt_rechts.html

any help would be appreciated a lot!

thank you very much in advance and best greetings,

martin

(if you would like to e-mail me please remove NOSPA^M from my mail adress -
martin.fuchs (AT) NOSPAMgraphix (DOT) at)



Reply With Quote
  #2  
Old   
David Dorward
 
Posts: n/a

Default Re: problem with aligning a table cell top - 12-30-2003 , 03:16 AM






Martin Fuchs wrote:

Quote:
i have a problem with a table cell in my html code.
<snip>

This looks like a very familier news posting... Please direct your attention
towards: http://www.cs.tut.fi/~jkorpela/usenet/xpost.html

But that isn't tabular data, so you shouldn't be using a table.
http://www.allmyfaqs.com/faq.pl?Tableless_layouts

--
David Dorward <http://dorward.me.uk/>


Reply With Quote
  #3  
Old   
Steve R.
 
Posts: n/a

Default Re: problem with aligning a table cell top - 12-30-2003 , 04:11 AM



David Dorward wrote in message ...
Quote:
But that isn't tabular data, so you shouldn't be using a table.
http://www.allmyfaqs.com/faq.pl?Tableless_layouts
It's all very well directing people to websites containing lots of comples
explanation, but it doesn't *answer* his question, even though you think
you might be doing the right thing.

There's nothing wrong with using tables for what he's doing. It's worked ok
in the past and present, and will presumably work well in the future.

Tables are dead easy to get right. CSS is much more complex, hence all the
frequent queries on the HTML newsgroups "Help - My CSS doen't work in ...."




Reply With Quote
  #4  
Old   
Martin Fuchs
 
Posts: n/a

Default Re: problem with aligning a table cell top - 12-30-2003 , 04:30 AM



"Steve R." wrote in message ...
Quote:
Do you mean like this ...
well thats what i mean if the table cell with the green background valigns
top with the table cell containing the image. that would work but as far as
i know the height attribute in a table tag is not valid html 4.0... do you
know what i mean?

thank you very much for your reply steve!




Reply With Quote
  #5  
Old   
David Dorward
 
Posts: n/a

Default Re: problem with aligning a table cell top - 12-30-2003 , 04:39 AM



Steve R. wrote:
Quote:
It's all very well directing people to websites containing lots of comples
explanation, but it doesn't *answer* his question, even though you think
you might be doing the right thing.
This isn't a helpdesk. I am not paid to answer people's questions here.

Quote:
There's nothing wrong with using tables for what he's doing. It's worked
ok in the past and present, and will presumably work well in the future.
That is a debat I have no intention of getting in to right now.

Quote:
Tables are dead easy to get right. CSS is much more complex, hence all the
frequent queries on the HTML newsgroups "Help - My CSS doen't work in
...."
And I'm not going to get into this argument again either.

--
David Dorward <http://dorward.me.uk/>


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.