- This topic is empty.
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Is it possible to have a Pseudo Element and Selector in the same css tag?
/*DROPDOWN*/
#header #navigation{height:40px; margin-top:-33px;padding:10px 10px 15px 10px; border-radius:8px; background-color:#FFF; }
/*
LEVEL ONE
*/
ul.dropdown { position: relative;bottom:3px;}
ul.dropdown li { font-weight: normal; float: left; zoom: 1; background: #fff; }
ul.dropdown a:hover { color: #000; }
ul.dropdown a:active { color: #FFF; }
ul.dropdown li a { display: block; padding: 7px 18px; border-right: 1px solid #CCC;
color: #222; }
ul.dropdown li a:hover :first-child { border-radius:8px; } /* Doesn't work in IE */
ul.dropdown li:last-child a { border-right: none; } /* Doesn't work in IE */
ul.dropdown li.hover,
ul.dropdown li:hover { background: #9ACD32; color: black; position: relative; } /*F3D673*/
ul.dropdown li.hover a { color: black; }
/*
LEVEL TWO
*/
ul.dropdown ul { width: 200px; visibility: hidden; position: absolute; top: 100%; left: 0; }
ul.dropdown ul li { font-weight: normal; background: #333333; color: #FFF;
border-bottom: 1px solid #666; float: none; }
/* IE 6 & 7 Needs Inline Block */
ul.dropdown ul li a { border-right: none; width: 100%; display: inline-block; color:#FFF;}
/*
LEVEL THREE
*/
ul.dropdown ul ul { left: 100%; top: 0; }
ul.dropdown li:hover > ul { visibility: visible; }
something like that?