473,320 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How do you remove anchor hover colour from images

I am having a problem with the background color for images. I have links with a colored background and colored when hovered, but this also does it for images which is what I don't want. Here is the CSS:

Expand|Select|Wrap|Line Numbers
  1. a:link,a:visited {
  2.     margin: 0 auto;
  3.     display: block;
  4.     font-weight: 400;
  5.     color: #000000;
  6.     display: block;
  7.     width: 120px;
  8.     background-color: #FF9001;
  9.     text-align: center;
  10.     padding: 10px;
  11.     text-decoration: none;
  12.     text-transform: uppercase;
  13.     font-family: bangers;
  14.     font-style: normal;
  15.     font-size: large;
  16.     letter-spacing: 2px;
  17.     word-spacing: 2px;
  18. }
  19. a:hover,a:active {
  20.     background-color: #DC5D06;
  21. }
  22.  
If the code doesnt help, I also have it on JSFidle: http://jsfiddle.net/Nnk92/

Is there anyway to remove this from images and not the text? I've heard that Java script is a solution but don't know how to use it
Jun 15 '14 #1
1 1409
Rabbit
12,516 Expert Mod 8TB
Apply classes to the links you want color on and use the class selector in your CSS.
Jun 16 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Bob | last post by:
Hello: I'm woundering if anyone can lead me to a tech article on how to remove the OLE header from an images that get stored in an SQL image field via MS Access forms. I cannot use an ASP...
1
by: Dave Weaver | last post by:
. We have an old WML1-based WAP site, and I have been asked to investigate updating it to use colour images for modern WAP devices. As I understand it (correct me if I'm wrong) colour image...
7
by: lawrence | last post by:
In my style sheet I've set the links like this: a:link{ text-decoration:none; } I did that for the pseudo classes and I also did that for the image tag. Yet there are still link lines...
2
by: Thomas Mlynarczyk | last post by:
Hi! When I assign a different background image "on hover" for an element, such as a {background-image:url(normal.gif);} a:hover {background-image:url(hover.gif);} is the hover image then...
8
by: JLahm | last post by:
I have defined a class for my images called .image that specifies the default border color, width and style. I'd like to be able to have the pseudo elements link, visited and active have one color...
2
by: skipc | last post by:
I posted a recent message regarding navigating a table using arrow keys. I've got the code for the navigation working. My table contains rows of links (anchors). I can get to a specific link...
1
by: cwrinn | last post by:
<html> <head> <style type="text/css"> h1.visible {display: block; position: absolute; top: 100px;} h1.invisible {display: none; position: absolute; top: 100px;} a.anchor:hover h1.visible...
16
by: beakersoft | last post by:
Hi, I've only just started playing about with CSS so there might be a really obvious answer to this. In my style sheet i have the following to style the hyperlinks on the page: a:link...
2
by: levisvv | last post by:
I am creating a web page where I want several images (each is a hyperlink) to be side-by-side with no white space. I read lots of blogs on it and nothing seems to get rid of the spaces, here's where...
5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.