Web Design Forum  
 
Go Back   Web Design Forum > Web and Graphic Design > Web Design

Reply
 
LinkBack Thread Tools Display Modes
Old 07-17-2011, 08:16 PM   #1
New Member
 
Join Date: Dec 2010
Posts: 5
Exclamation Help with fixed menu with transparent images

Hi.

I'm creating a website with a navigation bar that is fixed at the top of the browser window. The images (logo and navigation buttons) are transparent so when the viewer scrolls, they can see through them to the background. The navigation bar itself is navy and extends all the way across the screen, and the background is different colors as you scroll down the screen. How do I make the 'background color' of the navigation bar navy without that navy being behind the navigation buttons (I want to be able to see through the buttons to the main page background. Say the main background is pink, I want the buttons to appear pink, then change to, say, blue if the main background is blue further down). The images are navy blocks with transparent text, but I want that navy color to extend across the entire length of the browser. I have one div for the entire navigation bar, and another div within it for the buttons/images.

Another important note, the navigation is made so when the browser is resized, the navigation stays centered.

Here is my code, if it helps:

body {
margin:0; padding:0;
}
#nav {
position: fixed;
height: 146px;
top: 0px;
left: 0px;
width: 100%;
background-image: url(images/scallop_03.png);
background-repeat: repeat-x;
background-position: bottom;
}
#nav_content {
width: 960px;
border-top-color: #003;
border-right-color: #003;
border-bottom-color: #003;
border-left-color: #003;
margin-right: auto;
margin-left: auto;
}
</head>
<body>
<div id="nav">
<div id="nav_content"><img src="images/nav_01.png" width="507" height="133" alt="Logo" /><img src="images/nav_02.png" width="144" height="133" alt="About Me" /><img src="images/nav_03.png" width="153" height="133" alt="Portfolio" /><img src="images/nav_04.png" width="134" height="133" alt="Contact" />
</div>
</div>

If anyone has any suggestions, that'd be great! Thanks!

I attached an image of what I have so far (ignore the black box...just a privacy thing)
Attached Images
 
Maggarama is offline   Reply With Quote


Reply

Tags
background, color, image, navigation, transparency

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:40 PM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.