Classes td and td.somthing...?
Classes td and td.somthing...?
am 27.04.2007 10:03:49 von Sonnich
Hi!
Say, I have:
font { font-family: Verdana, Arial, Helvetica, sans-serif; color:
#333333; text-decoration: none; font-size: 12px}
td { font-family: Verdana, Arial, Helvetica, sans-serif; color:
#333333; text-decoration: none; font-size: 12px }
..aa2 { font-family: Tahoma; color: #990000; text-decoration: none;
cursor: hand }
Idea: default colour is set, though for some
class like etc...
It works with , but not for |
can anyone give me a hint here?
BR
Sonnich
Re: Classes td and td.somthing...?
am 27.04.2007 10:21:36 von dorayme
In article
<1177661029.564135.111070@c18g2000prb.googlegroups.com>,
Sonnich wrote:
> font { font-family: Verdana, Arial, Helvetica, sans-serif; color:
> #333333; text-decoration: none; font-size: 12px}
> td { font-family: Verdana, Arial, Helvetica, sans-serif; color:
> #333333; text-decoration: none; font-size: 12px }
> .aa2 { font-family: Tahoma; color: #990000; text-decoration: none;
> cursor: hand }
You could play with:
....
--
dorayme
Re: Classes td and td.somthing...?
am 27.04.2007 10:50:03 von Sonnich
On Apr 27, 11:21 am, dorayme wrote:
> In article
> <1177661029.564135.111...@c18g2000prb.googlegroups.com>,
>
> Sonnich wrote:
> > font { font-family: Verdana, Arial, Helvetica, sans-serif; color:
> > #333333; text-decoration: none; font-size: 12px}
> > td { font-family: Verdana, Arial, Helvetica, sans-serif; color:
> > #333333; text-decoration: none; font-size: 12px }
> > .aa2 { font-family: Tahoma; color: #990000; text-decoration: none;
> > cursor: hand }
>
> You could play with:
>
>
>
>
>
>
thanks
will study that
can I add :hover to that?
Re: Classes td and td.somthing...?
am 27.04.2007 11:42:05 von dorayme
In article
<1177663803.837185.126350@r3g2000prh.googlegroups.com>,
Sonnich wrote:
> On Apr 27, 11:21 am, dorayme wrote:
> > In article
> > <1177661029.564135.111...@c18g2000prb.googlegroups.com>,
> >
> > Sonnich wrote:
> > > font { font-family: Verdana, Arial, Helvetica, sans-serif; color:
> > > #333333; text-decoration: none; font-size: 12px}
> > > td { font-family: Verdana, Arial, Helvetica, sans-serif; color:
> > > #333333; text-decoration: none; font-size: 12px }
> > > .aa2 { font-family: Tahoma; color: #990000; text-decoration: none;
> > > cursor: hand }
> >
> > You could play with:
> >
> >
> >
> >
> >
> >
>
> thanks
>
> will study that
>
> can I add :hover to that?
Perhaps you better provide a url at this point. The
text-decoration as you have it is not necessary, but you may be
wanting things that are not evident yet. URL is the way to go
with as real a code as will reveal your true intentions.
font-size: 12px is rarely a good idea. But you can look up the
matter. Perhaps:
http://www.wilsonminer.com/posts/2007/mar/16/problem-pixels/
will be of interest?
--
dorayme
Re: Classes td and td.somthing...?
am 27.04.2007 16:05:45 von jkorpela
Scripsit Sonnich:
> Say, I have:
>
> font { font-family: Verdana, Arial, Helvetica, sans-serif; color:
> #333333; text-decoration: none; font-size: 12px}
> td { font-family: Verdana, Arial, Helvetica, sans-serif; color:
> #333333; text-decoration: none; font-size: 12px }
> .aa2 { font-family: Tahoma; color: #990000; text-decoration: none;
> cursor: hand }
Then you should forget all you thought you knew about CSS and start learning
it properly. There are many good books on it around. (I could send you mine
but it's in Finnish. :-))
Not a single setting in the fragment is good, useful CSS. It would take too
many pages to explain why, and a URL would be needed to explain in detail
why the settings are all wrong. But that's not important right now. Just two
examples: The font element should not be used, so why are you using its name
as a selector? Setting font size in pixels is destructive since it prevents
most IE users from changing the font size, and many millions of them cannot
read 12px text. (You don't even know the size of a pixel on other people's
screens.)
> Idea: default colour is set, though for some
> class like etc...
> It works with , but not for |
That's not a problem. The simplest approach is to use .aa2 as a selector
(just dot and class name). You would set the color of the tr element, and
this color would be inherited by td elements inside it, unless some style
sheet sets their color. Of course, you shouldn't use a class name like
'aa2', which says nothing when you try to figure out next year how your page
works when a problem has detected.
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/