Hi Keith,

I presume by "inline CSS" you mean CSS within the tags themselves. Is that
correct?

The correct syntax for that scenario would be to add this attribute to the
each td tag:

style="vertical-align:top"

Is there any particular reason you're doing this with CSS at all? You could
add a valign attribute to the row instead and it *should* have the same
effect.

<tr valign="top"><td>data</td><td>data</td></tr>

It's valid HTML <http://htmldog.com/reference/htmltags/tr/>.

On Mon, Sep 26, 2011 at 12:23 PM, Brandtley McMinn <[email protected]>wrote:

> Hey Keith,
>
> That would be one way to do it. You could also put a <style> tag section
> anywhere in the document and the browser should read it just fine.. Not the
> most semantic approach regarding the DOM but it gets the job done just as
> well. If you have the ability to modify the <head> section of the document I
> would def advise putting it there, but I digress.
>
> Good luck,
> - Brandtley
>
>
>
> On 9/26/2011 12:03 PM, Keith Purtell wrote:
>
>> I need to add inline CSS style to a table. Yes a table; it's someone
>> else's project that I can't revise. I want all text in all cells to vertical
>> align. Is the following the correct syntax?
>>
>> style="TD {vertical-align:top;}"
>>
>> - Keith
>>
>> --
>> --
>> You received this because you are subscribed to the "Design the Web with
>> CSS" at Google groups.
>> To post: [email protected]
>> To unsubscribe: 
>> css-design-unsubscribe@**googlegroups.com<[email protected]>
>>
>
> --
> --
> You received this because you are subscribed to the "Design the Web with
> CSS" at Google groups.
> To post: [email protected]
> To unsubscribe: 
> css-design-unsubscribe@**googlegroups.com<[email protected]>
>

-- 
--
You received this because you are subscribed to the "Design the Web with CSS" 
at Google groups.
To post: [email protected]
To unsubscribe: [email protected]

Reply via email to