Community Forums › Forums › Archived Forums › Design Tips and Tricks › CSS Help please? How do I remove text shadow in menu please?
Tagged: css, help, menu, text-shadow
- This topic has 6 replies, 3 voices, and was last updated 12 years, 4 months ago by
leannemorrison.
-
AuthorPosts
-
December 17, 2012 at 12:03 am #5680
leannemorrison
ParticipantHi, I am nearly there! I would appreciate it if someone with CSS knowlege could help me out here please.
Hi, I am using Genesis + Production theme, and have my test site set up here http://clientsites.jonmorrison.com.au. At my clients request I have had to change the background colours and text colours of the menu (I think it is the secondary menu), but now it is coming up with ghosted text. I assume this is coming from the "text-shadow" CSS instructions.
I have gone thru most of the header section of the stylesheet and tried
deleting the text-shadow instructions completely
changing them to text-shadow: none; (which they are currently set at)but the ghosting still appears.
Can anyone help please? I don't know a lot about CSS but can generally find what I am looking for on the stylesheet if someone is specific enough about where I need to go and what I need to do.
Many thanks in advance
Leanne
December 17, 2012 at 12:11 am #5682theKatrinaM
MemberDecember 17, 2012 at 1:05 am #5685leannemorrison
ParticipantHi Katrina, thanks for your quick response. The main menu items (for all pages except the one the user is currently on) seem to have double typing or ghosting of the text (like you are seeing double or blurry text) like in a misprinted newspaper page.
Do you have any idea of exactly where I should add "transform: none" please? I can't see any sections that specifically relate to hover, there are many mentions of it throughout the stylesheet. I've tried it in all the obvious places in the header section of the stylesheet, but it has not made any difference.
Thanks, Leanne
December 17, 2012 at 3:03 am #5698theKatrinaM
MemberMy coding is a bit difficult to understand but this should give you a general idea on the hover issue
.menu-primary li a:active,
.menu-primary li a:hover,
.menu-primary .current_page_item a,
.menu-primary .current-cat a,
.menu-primary .current-menu-item a, {
background-color: #fff;
color: #b2c802;
}
I hope this helps
text-transform: none;
December 17, 2012 at 4:30 am #5708leannemorrison
ParticipantThanks Katrina, I tried what you sent i.e.
.menu-primary li a:active,
.menu-primary li a:hover,
.menu-primary .current_page_item a,
.menu-primary .current-cat a,
.menu-primary .current-menu-item a,
.menu-secondary li a:active,
.menu-secondary li a:hover,
.menu-secondary .current_page_item a,
.menu-secondary .current-cat a,
.menu-secondary .current-menu-item a,
#header .menu li a:active,
#header .menu li a:hover,
#header .menu .current_page_item a,
#header .menu .current-cat a,
#header .menu .current-menu-item a {
background-color: #fff;
color: #b2c802;
}
and then added in
text-transform: none;
at the end before the final bracket and it works fine on my desktop computer. However, on my iPad, it makes the text in the menu for the current page lower case, when it should be uppercase. Any thoughts?
Thanks again, Leanne
December 17, 2012 at 7:12 am #5730John
ParticipantLeanne,
I think what you're seeing that looks like text shadow is actually your browser distorting the font that you're using for the menu. That happens sometimes, especially with web-based fonts like Google Fonts, and in some browsers more than others. If you increase the font-size from 14px to 15px I think you'll get the result you're looking for.
Adding this to the end of your style.css file should do the trick:
div .menu-primary a,
div .menu-primary a:visited,
div .menu-secondary a,
div .menu-secondary a:visited,
#header .menu a,
#header .menu a:visited {
font-size: 15px;
}John
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google 😉December 17, 2012 at 11:08 pm #5875leannemorrison
ParticipantThanks for that John.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.