Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

Single menu background not full width


 
Prev Previous Post   Next Post Next
  #1  
Old Mar 25, 2018, 01:43 PM
Paul Gingell
 
10 posts · Nov 2012
England
Single menu background not full width

Hi. I'm remaking an website I built with Atahualpa about 4 years ago and trying to make use of some of the responsive mods suggested on this forum since then. I'm having trouble with the menu background.

I'm trying to set a background which spans all the menu items but doesn't span the full width of the site.

If I target the CSS at div#menu1 ul.rMenu li I get an individual background for each menu item (which doesn't look right because my design uses an inset box shadow around the menu as a whole, not the individual menu items).

Instead, I've used div#menu1 ul.rMenu, but it spans the full width of the layout, unless I set a limiting width value (which causes problems on mobile devices, if fall back fonts are a different size, etc.)

Website: www.cumbria-stone-walling.co.uk

Current CSS:
Code:
div#menu1 ul.rMenu {
	background-color: rgba(135, 135, 135, 0.25) !important;
	-webkit-box-shadow: 0 0 50px rgba(0, 0, 0, 0.25) inset;
	-moz-box-shadow: 0 0 50px rgba(0, 0, 0, 0.25) inset;
	box-shadow: 0 0 50px rgba(0, 0, 0, 0.25) inset;
	-moz-border-radius: 4px; 
	-khtml-border-radius: 4px; 
	-webkit-border-radius: 4px; 
	border-radius: 4px;
	width: 385px;
	height: 40px;
	margin-top: -6px;
	padding: 0px 0px 0px 0px;
	border: solid 1px transparent !important;
}
Is there any way using CSS that I can treat the styling of all menu items as one unit?

Thanks, Paul
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
I want a full width header, fixed width content and a background image tsheridan Header configuration & styling 5 Jan 29, 2013 03:46 PM
[SOLVED] Eliminate full width background color on page-right menu rickpoet Page & Category Menu Bars 2 Dec 11, 2012 06:16 PM
HowTo put Logo + Menu withcustom Background colourin sameline with full width? dd69 Header configuration & styling 3 Dec 11, 2012 05:20 AM
[SOLVED] Full width header with fixed width image and background color WilliamNavidson Header configuration & styling 4 Jun 10, 2011 03:13 AM


All times are GMT -6. The time now is 12:43 PM.


Powered by vBulletin® Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.