Creating submenu rollovers


show more Creating submenu rollovers provides you with in-depth training on Developer. Taught by James Williamson as part of the CSS: Styling Navigation show less
please wait ...

Creating submenu rollovers

Our submenus are looking the way that we want them to, but we still need to address their rollover behavior. So I have the dropdown.htm file open from the 05_04 directory, and the first thing I wanted to take a look at was the existing style for our rollovers so that we could kind of see what it is that we will need to overwrite for our submenu. So I'm looking at the li a:hover selected here on line 68 or so. So we've got it setting the background of that darker brown color. We are giving it a height of 2 ems, but we are also adding 0.3 ems padding to the top for the rounded corners.

We are positioning it with relative positioning so that we can move it up by .3 ems, which is what the top value there is doing, and then we are applying a border radius of 0.3 ems for the two top corners. And all those were combining to form that sort of tab look and feel to them, well, that's great, but for submenus, it's not what we want, number one it's going to cause a submenu's items to ...

Creating submenu rollovers
Video duration: 3m 28s 5h 14m Beginner

Viewers:

Creating submenu rollovers provides you with in-depth training on Developer. Taught by James Williamson as part of the CSS: Styling Navigation

Subjects:
Developer Web
Software:
CSS
Author:
please wait ...