Posted by Kim Andrι Akerψ on 11/27/81 11:59
Todd Cary wrote:
> Kevin Scholl wrote:
> > Todd Cary wrote:
> >>I have a <TD> that has these properties:
> > >
> >> <td width="150" bgcolor="#336699" valign="top">
> > >
> > > and I would like to put those properties into a CSS.
> > >
> > > This does not work:
> > >
> > > TD.LeftMenu {
> >> width: 150;
> >
> > 150 what? bananas?
> >
> >> position: top;
> >
> > I believe you're looking for the vertical-align property here.
> >
> >> background-color: #336699;
> >
> > Could shorten this.
> >
> > > }
> > >
> > > No doubt I have messed up. What is the quivalent?
> >
> > td.leftMenu {
> > width: 150px;
> > vertical-align: top;
> > background: #369; }
> >
> > <td class="leftMenu ">
> >
>
> Kevin -
>
> I must be missing something else since
>
> http://209.204.172.137:8090/caht1/php/login.php
>
> is without the CSS equivalent and
>
> http://209.204.172.137:8090/caht1/php/login_2.php
>
> with the above CSS.
In the CSS version, you specify this in your HTML:
<td class="menuLeft">
And this in your CSS:
td.leftMenu {
width: 150px;
vertical-align: top;
background: #369; }
If you change your HTML to use class="leftMenu", you'll see a certain
difference.
--
Kim AndrΓ© AkerΓΈ
- kimandre@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
Navigation:
[Reply to this message]
|