Solved

Need to change look of drop down buttons

Posted on 2011-03-05
12
408 Views
Last Modified: 2012-06-27
Hii!
We need to change the look of the drop down buttons on our top navigation bar to look something like this website's drop down menu. http://www.ringcentral.com/
Here is an example of our current top navigation bar and drop down menus.
http://www.topsecurityinc.com/testpage11.html
Here is the CSS that controls it.
ul.dropdown{position:relative;}
ul.dropdown li{width:159px;height:42px;text-align:center;font-weight:700;float:left;background:url(../web/images/global_bar_bk_r1_c2.gif) repeat-x 50% top;}
ul.dropdown a:active{color:orange;}
ul.dropdown li a{padding-top:12px;height:30px;text-align:center;display:block;border-right:1px solid #333;font:bold 14px verdana, sans-serif;color:#FFF;}
ul.dropdown li:last-child a{border-right:none;}
ul.dropdown li.hover,ul.dropdown li:hover{color:#000;position:relative;}
ul.dropdown ul{z-index:600;visibility:hidden;position:absolute;top:100%;left:0;}
ul.dropdown ul li{width:159px;font-weight:400;background:url(../web/images/global_bar_bk_r1_c2.gif) repeat-x 50% top;color:#000;border-right:1px solid #333;float:none;}
ul.dropdown ul li a{border-right:none;width:100%;display:inline-block;padding-top:4px;}
ul.dropdown ul ul{left:100%;top:0;}
ul.dropdown li:hover > ul{visibility:visible;}

Would also appreciate any help on adding the down arrows on the top buttons with drop down items.
Any specific code modifications would be greatly appreciated.
0
Comment
Question by:TrueBlue
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 5
12 Comments
 
LVL 16

Expert Comment

by:SSupreme
ID: 35044619
What do you want exactly to implement?

Have a look at this: sample
0
 

Author Comment

by:TrueBlue
ID: 35045094
SSupreme,

I like the top blue navigation bar, but I think it would look better if the drop down buttons were in a white box with rounded corners like this attached image. sample drop down menu
0
 
LVL 16

Expert Comment

by:SSupreme
ID: 35045825
ul.dropdown ul li{width:159px;font-weight:400;background:white;color:#000;border-right:1px solid #333;float:none;)
ul.dropdown ul li a{border-right:none;width:100%;display:inline-block;padding-top:4px;color:#000;}

it makes subnav white with black font colour. If you want make "rounded" corners you have to add images at the and of second <ul>. They did it using this image http://www.ringcentral.com/images/hp/navigation/small/office.png .
Also you have to clean up your CSS file from unused rules, there are about 40% of them.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:TrueBlue
ID: 35048455
SSupreme,
I added this to my test page, but it did not seem to have changed the look of the drop downs.
    <script language="css" type="text/css">
    ul.dropdown ul li{width:159px;font-weight:400;background:white;color:#000;border-right:1px solid #333;float:none;)
    ul.dropdown ul li a{border-right:none;width:100%;display:inline-block;padding-top:4px;color:#000;}
    </script>
Any ideas?
0
 
LVL 16

Expert Comment

by:SSupreme
ID: 35048534
try this instead:
<style type="text/css">
    ul.dropdown ul li{width:159px;font-weight:400;background:white;color:#000;border-right:1px solid #333;float:none;)
    ul.dropdown ul li a{border-right:none;width:100%;display:inline-block;padding-top:4px;color:#000;}
    </style>
0
 
LVL 16

Expert Comment

by:SSupreme
ID: 35049273
Don't add! Replace already existed ones.
0
 

Author Comment

by:TrueBlue
ID: 35051372
SSupreme,

So I created another stylesheet name style1.css and updated the text page to use it.
The second line of recommended code is highlighted by my designer and says marked invalid due to not supported by current scheme. As you can see these two lines of code make the drop down menus inoperative.
Any ideas?
TIA
0
 
LVL 16

Expert Comment

by:SSupreme
ID: 35055949
Well, changing colour doesn't make menu inoperative.
Before I posted those line I tested them and they worked.
 sampleTry again beginning from style.css
0
 

Author Comment

by:TrueBlue
ID: 35056666
SSupreme,

Ok. I got it now. :)
I changed the buttons to blue just flat and updated the test page.
But the horitizontal lines between the drop down buttons has seemed to disappear.
Any idea where that is controlled?
TIA
0
 
LVL 16

Expert Comment

by:SSupreme
ID: 35056737
here  at ul.dropdown ul li
add border-bottom:1px solid; and remove border-right:~~;
0
 
LVL 16

Accepted Solution

by:
SSupreme earned 500 total points
ID: 35056783
also if you would like to remove little space here:
 space
find: .topnav-wrap {
    height: 42px;
    margin-left: 9px;
    padding-left: 5px;
    width: 828px; <--adjust value to 828px
}
0
 

Author Comment

by:TrueBlue
ID: 35057164
SSupreme,

That looks great :)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question