Jump to content

hehe. I used to remember how to do this


play_

Recommended Posts

Ok, i have this:

[code]
* a {
    color: #990000;
    text-decoration: none;
    border-bottom: 1px dotted #000000;
}[/code]

and i also have

[code]
.menu a {
    font-size: 11px;
    display: block;
    width: 75px;
    border-right: 1px solid #666666;
    padding: 3px;
    text-align: center;
    text-decoration: none;
    color: #fff;
}[/code]


and on the index page:
[code]
<div class="menu">
            <ul>
                <li><a href="#">Home</a></li>
                <li><a href="#">About</a></li>
                <li><a href="#">Portfolio</a></li>
                <li><a href="#">Contact</a></li>
                <li><a href="#">Links</a></li>
                <li><a href="#">Misc.</a></li>
            </ul>
        </div> <!--/menu -->[/code]


Ok. i think by now you probably know what im going to ask.
* a { is affecting the menu links. Is there a way to make it not overwrite the menu styles? (there should be, i used to know how)
Link to comment
Share on other sites

[!--quoteo(post=373706:date=May 14 2006, 07:31 AM:name=moberemk)--][div class=\'quotetop\']QUOTE(moberemk @ May 14 2006, 07:31 AM) [snapback]373706[/snapback][/div][div class=\'quotemain\'][!--quotec--]
You actually don't need to use the * a in front of every universal declaration. Just get rid of it.
[/quote]


Thank you.


::edit::
that didnt solve the problem =()
Link to comment
Share on other sites

  • 2 weeks later...
[!--quoteo(post=373866:date=May 15 2006, 02:13 AM:name=play_)--][div class=\'quotetop\']QUOTE(play_ @ May 15 2006, 02:13 AM) [snapback]373866[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Thank you.
::edit::
that didnt solve the problem =()
[/quote]

instead of .menu a
try a.menu

i think that might work
Link to comment
Share on other sites

.menu a will only effect the immediate children (in your case the UL under the div) if you want it to effect the a, you can put it directly under the div tag (without the UL and LI) but the easiest solution will be to give the links a class for themselves like .side_links {...}
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.