Hello my friends. I came across a nice css menu.
This is the link: http://www.dynamicdrive.com/style/cs...ntal_menu/P20/
My issue is I am not quite COMPREHENDING HOW THE CODE FUNCTIONS.
Here is the code, below are my comments:
This is the link: http://www.dynamicdrive.com/style/cs...ntal_menu/P20/
My issue is I am not quite COMPREHENDING HOW THE CODE FUNCTIONS.
Here is the code, below are my comments:
Code:
style type="text/css"> /*Credits: By Santosh Setty (http://webdesigninfo.wordpress.com) */ /*Posted to: Dynamic Drive CSS Library (http://www.dynamicdrive.com/style/) */ .glossymenu{ [COLOR="Red"]I UNDERSTAND THIS IS DEFINING GLOSSYMENU CLASS [/COLOR] position: relative; padding: 0 0 0 34px; margin: 0 auto 0 auto; background: url(media/menur_bg.gif) repeat-x; /*tab background image path*/ height: 46px; list-style: none; } .glossymenu li{ float:left; } .glossymenu li a{ [COLOR="Red"]OKAY I AM LOST DEFINING A LIST OVER WITH A, WHAT IS A???[/COLOR] float: left; display: block; color:#000; text-decoration: none; font-family: sans-serif; font-size: 13px; font-weight: bold; padding:0 0 0 16px; /*Padding to accomodate left tab image. Do not change*/ height: 46px; line-height: 46px; text-align: center; cursor: pointer; } .glossymenu li a b ([COLOR="Red"]AGAIN I AM LOST AS TO WHAT IS HAPPENING, IS A THE A HREF LINK AND B THE BOLD BEING USING THE HTML???[/COLOR]{ float: left; display: block; padding: 0 24px 0 8px; /*Padding of menu items*/ } .glossymenu li.current a, .glossymenu li a:hover ([COLOR="Red"]STILL A LITTLE LOST[/COLOR]){ color: #fff; background: url(media/menur_hover_left.gif) no-repeat; /*left tab image path*/ background-position: left; } .glossymenu li.current a b, .glossymenu li a:hover b (LOST){ color: #fff; background: url(media/menur_hover_right.gif) no-repeat right top; /*right tab image path*/ } </style> [COLOR="Red"] ANOTHER QUESTION WHY IS THE LEFT IMAGE TINY AND THE RIGHT SO LARGE..WHY NOT JUST MAKE TWO IDENTICAL BUTTONS LIKE I USUALLY DO WITH A ROLLOVER CSS CODE. THANKS FOR YOUR TIME IN ADVANCE. ADOLPH [/COLOR]
Comment