hey everyone, i will be the first to admit im not very good at CSS, it has been about 1.5 years since i even touched the stuff last. so i did some searching around the net and came up with the following:
i have these images:
THIS IS PHOTOS.PNG
THIS IS MENU.PNG
there are more menu options than that. ok so i have this code:
#topmenu {
height:23px;
background-image:url(images/menu/menu.png);
}
#topmenu ul {
list-style:none;
margin:0;
padding:0 10px;
}
#topmenu li {
float:left;
}
#topmenu li a span, #topmenu li a em {
display:none;
}
#topmenu li a {
display:block;
height:23px;
width:100px;
background-position:center top;
}
#topmenu li a:hover span {
display: block;
width:100px;
height:23px;
top:-23px;
background-position:center bottom;
}
#topmenu li#photos a, #topmenu li#photos a:hover span {
background-image:url(images/menu/photos.png);
}
and this is the problem i'm getting:
As you can see they are doubling up on top of each other. So my question is, how can i remove the normal state of the menu item. I don't want to use solid colour background for the menu items as i have made many picture/colour themes for this blog depending on events and seasons in Japan. I'm hoping this is really simple. I don't even know where to start to find an answer to this as i got this code from a how-to. sorry for trouble ><
I don't use Edge... Yes, why wouldn't I want fixes and security updates faster? It looks like there is at least 3 people just in this comment thread that are OK with this.
I use Linux and one applies updates when they wish and it can be done on Windows by setting updates for overnight or pausing updates. People will complain about anything.
I used it yesterday to create an ISO, then I mounted it just to check the build number, and it was 26200.8653 which I couldn't find any info about, I knew the latest Patch Tuesday biuld was 26200.8655.
Can Confirm, this only appears to happen on Edge installed on Android, No issue on Chrome, Firefox, Samsung Browsers.
Android 16
Samsung OneUI 8.5
Newest Releases of Each Browser (Edge, Firefox, Chrome, Samsung Browser)
This happens both With and Without my VPN being active.
Question
fukachu
hey everyone, i will be the first to admit im not very good at CSS, it has been about 1.5 years since i even touched the stuff last. so i did some searching around the net and came up with the following:
i have these images:
there are more menu options than that. ok so i have this code:
in header.php:
in CSS:
#topmenu { height:23px; background-image:url(images/menu/menu.png); } #topmenu ul { list-style:none; margin:0; padding:0 10px; } #topmenu li { float:left; } #topmenu li a span, #topmenu li a em { display:none; } #topmenu li a { display:block; height:23px; width:100px; background-position:center top; } #topmenu li a:hover span { display: block; width:100px; height:23px; top:-23px; background-position:center bottom; } #topmenu li#photos a, #topmenu li#photos a:hover span { background-image:url(images/menu/photos.png); }and this is the problem i'm getting:
As you can see they are doubling up on top of each other. So my question is, how can i remove the normal state of the menu item. I don't want to use solid colour background for the menu items as i have made many picture/colour themes for this blog depending on events and seasons in Japan. I'm hoping this is really simple. I don't even know where to start to find an answer to this as i got this code from a how-to. sorry for trouble ><
Edited by fukachuLink to comment
https://www.neowin.net/forum/topic/620791-css-rollover-image-menu/Share on other sites
5 answers to this question
Recommended Posts