stirrah Posted October 27, 2013 Share Posted October 27, 2013 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 More sharing options...
Irate Posted October 27, 2013 Share Posted October 27, 2013 You should try SASS / LESS. Link to comment https://forums.phpfreaks.com/topic/283344-share-properties/#findComment-1455741 Share on other sites More sharing options...
stirrah Posted October 27, 2013 Author Share Posted October 27, 2013 You should try SASS / LESS. Okey, so it's not possible in CSS3? Link to comment https://forums.phpfreaks.com/topic/283344-share-properties/#findComment-1455748 Share on other sites More sharing options...
Irate Posted October 27, 2013 Share Posted October 27, 2013 Possible, yes, but it's easier in SASS/LESS. After all, SASS and LESS compile into CSS3 stylesheets. Link to comment https://forums.phpfreaks.com/topic/283344-share-properties/#findComment-1455756 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.