Click here to get back home

table: valign-top problem

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
table: valign-top problem maya 02-15-2008
Get Chitika Premium
Posted by Beauregard T. Shagnasty on February 15, 2008, 5:53 pm
Please log in for more thread options
Ben C wrote:

> Or just float the image as rf suggested.

Did my post not make it to Usenet?

--
-bts
-Friends don't let friends drive Vista

Posted by Ben C on February 16, 2008, 5:08 am
Please log in for more thread options
> Ben C wrote:
>
>> Or just float the image as rf suggested.
>
> Did my post not make it to Usenet?

Sorry yes you did suggest float as well. My main point was
vertical-align on the <a> which I didn't think anyone else had
said.

Posted by Beauregard T. Shagnasty on February 16, 2008, 8:54 am
Please log in for more thread options
Ben C wrote:

> Beauregard T. Shagnasty wrote:
>> Ben C wrote:
>>> Or just float the image as rf suggested.
>>
>> Did my post not make it to Usenet?
>
> Sorry yes you did suggest float as well.

Ah, good. There were a couple of other posts (in another group) that
seemed to go by the wayside too, so I was wondering if I was
propagating. <g>

> My main point was vertical-align on the <a> which I didn't think
> anyone else had said.

That's right, though in the OP's example there is non-link text as well
("bbbbbbbbb") so I assumed the text could be anything.

--
-bts
-Friends don't let friends drive Vista

Posted by Jonathan N. Little on February 15, 2008, 6:22 pm
Please log in for more thread options
maya wrote:
> Jonathan N. Little wrote:
>> maya wrote:
>>>
>>> I have an image and right next to the image I have some text, all
>>> w/in the same <td>.. but, even though I have valign="top" for the
>>> <td>, the text does not appear on top of the <td>, it appears flush
>>> with the BOTTOM of the image..
>>>
>>> pls see http://www.mayacove.com/misc/table/table.html
>>>
>>> not sure how to solve this, "text-align:top" does not exist in css....;)
>>>
>>
>> True because the property is called "vertical-align"
>>
>> td { vertical-align: top; }
>> or
>> td { vertical-align: text-top; }
>>
>> http://www.w3.org/TR/CSS21/visudet.html#propdef-vertical-align
>>
>>
>>
>
> thank you very much.. unfortunately neither one of these worked..
> http://www.mayacove.com/misc/table/table.html
>
> the only way text is where I want it is by eliminating the image.. (I
> guess I need to do separate <td> for img and text, but I was trying to
> avoid that..)
>
> and yes, of course in the "real" site I will put all necessary
> properties in img-tag (dimensions, border="0", fill in alt="", etc..
> this at work, so of course will do these things..;) but for test-images
> I relax a bit..;)
> (this is all just "placeholders", as content will be inserted
> dynamically thru a CMS..)

Firstly your page is *not* xhtml and it full of deprecated html
attributes, i.e., border="0" stuff... Dump it all and use html 4.01 strict

then add this to your stylesheet and see what happens, eh?

td, td img { vertical-align: top; }

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

Posted by rf on February 15, 2008, 5:05 pm
Please log in for more thread options

>
> I have an image and right next to the image I have some text, all w/in the
> same <td>.. but, even though I have valign="top" for the <td>, the text
> does not appear on top of the <td>, it appears flush with the BOTTOM of
> the image..
>
> pls see http://www.mayacove.com/misc/table/table.html

float: left; the image.

--
Richard.



Similar ThreadsPosted
Problem with table width? July 19, 2004, 10:45 pm
table percentage problem August 20, 2004, 10:11 am
Table widths problem October 6, 2004, 11:40 pm
Problem with TABLE WIDTH January 5, 2005, 6:53 pm
table alignment problem January 30, 2005, 10:48 pm
Problem with table 100% width June 8, 2005, 8:18 am
Problem With Button In Table September 2, 2005, 12:08 pm
Re: html table problem February 6, 2006, 5:59 pm
Table layout problem in Firefox/IE6 June 14, 2005, 8:42 am
Frontpage problem/ using css to center TABLE - help...! June 15, 2005, 1:05 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap