- This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 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.
Hello I am trying to get my vertical drop down menu like this http://www.templatemonster.com/demo/27875.html similar to what on the page where each li and li a has own color.
I have tried to make a demo html /css version but doesn’t seem to work I thought I would give it a mock up in html/css first
here is what I tried in html but non seems to be dropping down http://codepen.io/mwbcomputers/pen/kxuwv I am having few problems with my program don’t think its working well.
I would be implementing it in php once done
Here is the php code
Thanks for any thoughts and suggestions
PHP won’t help.
@Paulie_D I know is there any way around it because I can do it with normal html css. But the system i use is php for my ecommerce
The PHP only spits out HTML.
Appearance, positioning etc is all handled with CSS (or perhaps JS).
If you need a drop down on hover, start off by hiding all nested unordered lists. Secondly, on hover of the parent unordered list, display the nested unordered list as block
li ul{
display:none;
}
li:hover ul{
display:block;
}
To add different colour, take a look at CSS children