Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Subscribe to HRA Now!


Are you a Google Analytics enthusiast?

Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE! 




From the folks who brought you High Rankings!

- - - - -

Css Links

  • Please log in to reply
No replies to this topic

#1 madams


    HR 5

  • Active Members
  • PipPipPipPipPip
  • 504 posts
  • Location:Costa Blanca, Spain

Posted 31 October 2012 - 08:57 AM


Below is "my-class" css that inserts an image at the selected point.
#my-class {
   background-image: url(images/fish.gif) !important;
   width: 204px !important;
   height: 18px !important;

I am trying to add the image from a sprite and I would (in html) just add the img class "fish" below.

<img class="fish" src="images/blank.gif" width="1" height="1" border="0" />

Is there a way to change (images/fish.gif) for "<img class="fish" src="images/blank.gif" width="79" height="23" border="0" />"

Note: The "my-class" and "fish" are on the same css page.

BTW - The sprites url is dealt with this way...

background: url(http://my-site/images/sprites.png) no-repeat;
    background-position: 0 -165px ;
    width: 79px;
    height: 23px;

Edited by madams, 31 October 2012 - 09:15 AM.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

We are now a read-only forum.
No new posts or registrations allowed.