Simple CSS question
-
Hi there .i just need a way to make different kinds of links Give an example please,if u have the time thanks
-
In what way do you want the links to be different?
--- single minded; short sighted; long gone;
-
Hi there .i just need a way to make different kinds of links Give an example please,if u have the time thanks
You would have to specify a different class for each link that you want to be different. This might help you.
Trinity: Neo... nobody has ever done this before. Neo: That's why it's going to work.
-
You would have to specify a different class for each link that you want to be different. This might help you.
Trinity: Neo... nobody has ever done this before. Neo: That's why it's going to work.
-
i create css for a link ok?and every link on the page follows this rule.i don't want that i want some of the links for example to have different color or hover behaviour thanks
Here are some examples on how you can set style on links: All links with class="Info":
a.Info { color: #fff; }
All links within an element with class="Info":.Info a { color: #000; }
All links within an element with id="Info":#Info a { color: #f00; }
All links within a div tag within an element with class="Info":.Info div a { color: #00f; }
All links within a div tag with class="More" within an element with class="Info":.Info div.More a { color: #0f0; }
--- single minded; short sighted; long gone;
-
Here are some examples on how you can set style on links: All links with class="Info":
a.Info { color: #fff; }
All links within an element with class="Info":.Info a { color: #000; }
All links within an element with id="Info":#Info a { color: #f00; }
All links within a div tag within an element with class="Info":.Info div a { color: #00f; }
All links within a div tag with class="More" within an element with class="Info":.Info div.More a { color: #0f0; }
--- single minded; short sighted; long gone;
-
Hi there .i just need a way to make different kinds of links Give an example please,if u have the time thanks
Simple CSS ? No such thing. CSS: great idea, lousy implementation. IMHO. Fred
-
you mean maybe an id to each different type of links cause of what i understand they all follow the a:.... rule so maybe this could work? #link1{.. } , #link2{.. is the next thing i'll try thanks
xxrono wrote:
you mean maybe an id to each different type of links
Use class instead of id if you have more than one occurrence of the type on a page and you are going to validate against an XHTML validating parser. I am not sure about HTML, because I code and validate my pages using XHTML 1.0 specification, but in XHTML each id needs to be unique. You can have multiple elements of a class and can accomplish the required formatting of groups of elements using CSS.
Simply Elegant Designs JimmyRopes Designs
Think inside the box! ProActive Secure Systems
I'm on-line therefore I am. JimmyRopes