August 3, 201115 yr http://buy-proargi9.co.uk/ in my navagation i have made a white border, but my active item looks crap cus of the white border line underneath it :/ anybody got any clues how to put a image over the border or something ahh
August 3, 201115 yr 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 August 3, 201115 yr by PhunkRabbit
August 3, 201115 yr 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 well it needs to be done, ill give it a crack now. whats the css code to use to postion it -1px bottom?
August 3, 201115 yr 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 :/
August 3, 201115 yr 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;
August 3, 201115 yr 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.
August 3, 201115 yr Author applying your code to my confusing code, is way to confusing for me.. my head will explsode if i try do that [/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!
August 3, 201115 yr if you update the live code I can have a look and try to tidy the merged code. Glad it worked.
August 3, 201115 yr 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 August 3, 201115 yr by kingy da killa
August 3, 201115 yr 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.
August 3, 201115 yr 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 Edited August 3, 201115 yr by kingy da killa
Create an account or sign in to comment