Chop Posted January 5, 2007 Share Posted January 5, 2007 Is it possible to do a double class. Something like this. <a class="1" class="2" href="etc">And so on</a> Link to comment Share on other sites More sharing options...
jesh Posted January 5, 2007 Share Posted January 5, 2007 Yep, but you can only have a single class attribute (or else it'll overwrite the previous one). To use more than one class do this: <a class="bold red Navigation footer" href="#">Link</a> Link to comment Share on other sites More sharing options...
Chop Posted January 5, 2007 Author Share Posted January 5, 2007 So I cant have one class tag that modifies the color and text and another class tag that adds a mouseover effect? Would I just have to combine them? Link to comment Share on other sites More sharing options...
aspnetguy Posted January 5, 2007 Share Posted January 5, 2007 yes you can have multiple class per element but you do this<element class="class1 class2 class3">you list them in the same class attribute just seperate them with a space Link to comment Share on other sites More sharing options...
real_illusions Posted January 5, 2007 Share Posted January 5, 2007 So I cant have one class tag that modifies the color and text and another class tag that adds a mouseover effect? Would I just have to combine them?you can use the same class or id on one <a> tag to create an effect on mouseovera.link1{text-decoration:none;color:#FF0000;}a.link1:hover{text-decoration:underline;color:#e6d400;that simple:) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now