Jump to content
Sign in to follow this  
aladd1n

How to Align Subnav to the Right

Recommended Posts

aladd1n

Hello, I would like to have my sub-nav links align to the right of the screen. How do I accomplish this? Custom CSS? I tried a few things but couldnt get it to work. 2nd question: Once subnav is aligned to the right, is there any way to insert an image on the same line as the subnav but justified to the left. Kinda like how apple does it here: http://www.apple.com/ipad/ Thanks

Share this post


Link to post
Share on other sites
aladd1n
Link to development site: http://www.mbhomes2.com/why-meadowbrook/ Code Tried So Far: #secondnav_menu ul .current-menu-item {background: #d1bed0; align: right;} ul#menu-subnav-en li#menu-item-251 {font-size: 30px; align: right;} Thanks

Share this post


Link to post
Share on other sites
catrina
The selectors .current-menu-item would only affect the individual menu items (not the entire menu) and align: right is a property that doesn't always work. Try: [code]#secondnav_menu {float: right;}[/code]

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
aladd1n
Thanks for the suggestion. Tried it but didnt work. Could it be conflicting with some other code?

Share this post


Link to post
Share on other sites
aladd1n
This is all of my custom css #secondnav_menu {float: right;} .main-nav li.current_page_item a {background:#0f2c46;} #primary-nav li.current_page_item a {color:#ffffff;} .main-nav li a:hover{background-color:#0f2c46; !important;} #carousel .content-pad {background:none;} #secondnav_menu ul .current-menu-item {background: #d1bed0; align: right;} ul#menu-subnav-en li#menu-item-251 {font-size: 30px; align: right;} #nav_row.main_nav, ul.sf-menu ul li, .fpost { border-bottom: 0px; } body{} #banners div.banner-text {font-size: 12.5px;} div.banner_container {height: 100px; margin-top: +10px; margin-left: 25px;} #callout.content.pad #boxes h3{text-align:center;} .soapbox-links{padding-left:90px;} .fboxtext{text-align:center;}

Share this post


Link to post
Share on other sites
catrina
I checked again and the selector should be #secondnav instead of #secondnav_menu. Try this CSS instead: [code]body.page-id-49 #secondnav div.content-pad {width: 400px; margin-left: 544px;}[/code]

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
aladd1n
Now, any ideas on how to get an image, or text (not a link, more like a heading) to display at the left of the same sub-nav rom? Thanks in advance.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×