Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

CSS Menu bar issue.

Featured Replies

Hey, i was wondering if anyone could spot the issue in my CSS file, the menu bar is supposed to show an image (menubar.png & menubarhover.png) I've had this issue for a while and cannot seem to source the cause of the issue. (Sorry don't want to waste another post) Do you guys know where i am going wrong with the site positioning as I'd rather find out now and not have to redesign it all at a later date. (Click me!) The site looks ok on my monitor (19" at 1400x900) but on square monitor the positioning is off.

 

Thanks for the help in advance,

 

Ollie

style.css

index.html

Hi! Just looking @ your CSS briefly with view source and looks like you want these guys to show up in your main-nav? And looking at firebug, they aren't even showing up (which I have a feeling is because you may be targeting things incorrectly or elements are cascading...)

 

Haven't tried it-but looking at the your css/html for the nav which seems to be made up of lots of <ul></ul> with 1 <li></li> per nav link (except the dropdown)could be easier to work with if you tried something like...

 


<ul class="main-nav">
 <li><a href="index.html">HOME</a></li>
 <li><a href="page1.html">PAGE1</a>
    <!--start drop down-->
    <ul class="dropdown">
      <li><a href="#">DROPDOWN1</a></li>
      <li><a href="#">DROPDOWN2</a></li> 
    </ul>
    <!--end drop down-->
 </li>
 <li><a href="page2.html">PAGE2</a></li>
 <li><a href="page3.html">PAGE3</a></li>
</ul>

 

...to target things/the entire ul much more easily I reckon, as ul(s) are generally used with more than 1 item as I understand it!

 

But firebug also says: 'failed to load image' so perhaps try this as well in your css:

#navMenu ul li a {
background-image:url(../images/menubar.png);
//ETC
}

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.