css help please
- Started
- Last post
- 9 Responses
- breadlegz
I know so far that on css, you can set a button style by using "a:link"
how do you set multiple button styles?
ta
- ********0
Just use class="buttonstyleee" in each button you want that style applied to.
- breadlegz0
so, when i create a style, i.e .style1
is the button version .style1 a ?
- thismanslife0
a.style1
("a" with a class of "style1").style1 a
("a" contained within a class of "style1")
- breadlegz0
right, got it now, cheers
- thismanslife0
:)
- ********0
a.style1
("a" with a class of "style1").style1 a
("a" contained within a class of "style1")
thismanslife
(Jun 15 05, 04:28)exactly.
think of it like this...
If you define a class you can apply it to any tag ("a" included) so in your HTML you'd have:
< a class = "style1"
for example...
if you define .style1 a instead, what you are doing is saying "every a tag within the style class, (whatever tag you applied the style to..) "
hope that makes sense.
- thismanslife0
word.
- e-pill0
that6 made sense to me and i just learned css a few days ago!!! i actually help strengthen the rules that had blanks in how i learnt it so thanks!!!
:)
- instantok0
this is really worth taking the time to read and go through examples...the tag references are quite useful as well