HighDots Forums  

Re: Styling TABLEs?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: Styling TABLEs? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Peter Collinson
 
Posts: n/a

Default Re: Styling TABLEs? - 07-07-2003 , 01:00 AM






Steve Pugh <steve (AT) pugh (DOT) net> wrote:

Quote:
TD BGCOLOR="#003300" VALIGN="top" width="182"

In attempting to move into a more fully realized CSS site,
I changed that to:

TD class="greenmenu"

td.greenmenu {
background: #003300;

You should always set a foreground color with a background
colour to avoid clashes with user settings.
Done! Thank you for the tip.

Quote:
width: 182px;
padding-top: 0em;
}

The content within that container declines to vertically align at the
top, insisting on what appears to correspond with a
'valign="middle".'

Quote:
How do I get what I want, visually?

vertical-align: top;
Well, I actually tried that without beneficial effect... cut 'n' pasted
yours, and it worked perfectly. Don't know where I went wrong, but thank
you again!

--
- Yours truly, Pete Collinson

Quote:
Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve (AT) pugh (DOT) net> <http://steve.pugh.net/



Reply With Quote
  #2  
Old   
Nikolaos Giannopoulos
 
Posts: n/a

Default Re: Styling TABLEs? - 07-07-2003 , 02:10 PM






Peter Collinson wrote:
Quote:
Steve Pugh <steve (AT) pugh (DOT) net> wrote:

The content within that container declines to vertically align at the
top, insisting on what appears to correspond with a

'valign="middle".'

How do I get what I want, visually?

vertical-align: top;

Well, I actually tried that without beneficial effect... cut 'n' pasted
yours, and it worked perfectly. Don't know where I went wrong, but thank
you again!

Wild guess: Could you have tried valign (in error) instead of
vertical-align?

--Nikolaos



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 - 2009, Jelsoft Enterprises Ltd.