Jump to content

Double class within <a>


Chop

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...