Jump to content

Share properties


stirrah

Recommended Posts

Hey!

 

I have a (simple) question. This is my code:

nav {
    float:left;
}
nav ul {
    margin:0;
}
nav ul li {
    display:inline;
    margin-right:10px;
}
nav ul li a {
    text-decoration:none;
}
nav ul li.current {
    font-weight:bold;
}
nav ul li a.last {
    border-right:0;
}

I want to have something called "nav2" to share ALL of nav properties, except the float: left that should instead be float:right.

How can I achieve this?

Link to comment
https://forums.phpfreaks.com/topic/283344-share-properties/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.