Centering the set of drop-down menus...

User 2135641 Photo


Registered User
1 post

Using the Help pdf, wasn't able to center the drop-down menu set on the page. Code inserted at the end of menu-menu.css was:

.center{
margin-left:auto;
margin-right:auto;
}

Code inserted in the body of the htm page itself was:

<div class="center">
<ul class="menu-menu">
<li class="first"><a href="firstpage.htm">Contact Us</a></li>
<li>
<a href="secondpage.htm">Learn More</a>
<ul>
<li class="first"><a href="about-us.htm">About Us</a></li>
<li><a href="privacy.htm">Privacy Policy</a></li>
</ul>
</li>
<li><a href="thirdpage.htm">Learn Still More</a></li>
</ul>
</div>

The menu itself shows up and is very nice. Just that it won't center on the page. Thanks.

Tom Jacobs
User 184085 Photo


Ambassador
1,707 posts

somewhere around line 79 in the menu-menu.css file you will see

float:left;


try changing it to
/* float:left;*/


and see if that helps

also if you have it online we can jont on over to check out the entire file and see if other items may help you :)
Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.