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.

help with nav image +1s giveaway lol

Featured Replies

Rather than use "http://www.buy-proargi9.co.uk/wp-content/themes/blank-theme-sticky-fotter/library/images/arrow.png" as the background image you could place it within the anchor and physically position it -1px bottom but that is going to be very messy and will require some cross browser manipulation.

 

 

Edit:

 

Or break the box model by placing the background image on the anchor and have the anchor overflow out of the ul obviously watching for issues with IE.

Edited by PhunkRabbit

  • Author

Rather than use "http://www.buy-proargi9.co.uk/wp-content/themes/blank-theme-sticky-fotter/library/images/arrow.png" as the background image you could place it within the anchor and physically position it -1px bottom but that is going to be very messy and will require some cross browser manipulation.

 

that anchor trick again eh :p

 

well it needs to be done, ill give it a crack now.

 

whats the css code to use to postion it -1px bottom?

  • Author

a {
   background-image: url("http://www.buy-proargi9.co.uk/wp-content/themes/blank-theme-sticky-fotter/library/images/arrow.png");
   background-position: center 32px;
   background-repeat: no-repeat;
   border-bottom-left-radius: 4px;
   border-bottom-right-radius: 4px;
   border-top-left-radius: 4px;
}

 

i can use that to get it on the anchor as i did before, but still cant postion it over the whtie border :/

For the first option it would be roughtly like so:

 

<ul>
	<li><a href="#"><img src="" alt="" />Home</a></li>
</ul>

ul li { /* background info for dark blue on hover */ }
ul li a { display:block; padding: /* etc */ }
ul li a img { position:relative; left:50%; margin-left: /* - 50% of the width, if the icon is 20px wide the this value is -10px */; bottom:-1px; }

 

The second option is basically just giving the anchor no background color, apply the background image bottom centre and then giving the anchor a margin-bottom of -1px;

It kinda works at the moment by just giving .menu ul a height for 36px but there are some minor display errors with the li. Giving the navigation a fixed height isnt a great option though accessability wise.

  • Author

applying your code to my confusing code, is way to confusing for me.. my head will explsode if i try do that :D

 

[/code].current_page_item {

background-image: url("http://www.buy-proargi9.co.uk/wp-content/themes/blank-theme-sticky-fotter/library/images/arrow.png");

background-position: center 32px;

background-repeat: no-repeat;

position: relative;

top: 1px;

}[/code]

 

this works though!

 

apart from a lil bit buggy, but i can live with that!

  • Author

:) if you update the live code I can have a look and try to tidy the merged code. Glad it worked.

 

have a check now its all updated :) (as you can see when you hover over the active link, the dark blue background goes outside of the nav)

 

your a star for trying to help , kudos!

Edited by kingy da killa

In the CSS change ".current_page_item" to be ".current_page_item a"

 

It looks like the dark blue on hover is on the anchor. You are going to need to either put this on the li and handle rollovers using li:hover (not IE6 friendly) or use a more messy method with adding spans inside the anchor so that you can hook into it via "li a:hover span". If that makes sence.

  • Author

In the CSS change ".current_page_item" to be ".current_page_item a"

 

It looks like the dark blue on hover is on the anchor. You are going to need to either put this on the li and handle rollovers using li:hover (not IE6 friendly) or use a more messy method with adding spans inside the anchor so that you can hook into it via "li a:hover span". If that makes sence.

 

another +1 for that

 

and ive worked out my own way to stop it being 100% glitchy now. haps :D

Edited by kingy da killa

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.