CSS Rollover buttons

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
10/30/2011 3:29:54 PM
Gravatar
Total Posts 24

CSS Rollover buttons

I am trying to add css rollover buttons to a mojoportal site:

2.3.6.7 MSSQL
Operating System Microsoft Windows NT 6.0.6002 Service Pack 2
ASP.NET Info v4.0.30319 Running in Full Trust

 I am using this website example:

http://ww.elated.com/articles/css-rollover-buttons/

I uploaded the image for the rollover button to the site:

Added an HTML module to a page and out this source in:

<a id="emailUs" title="Email Us" href="http://www.run8tech.com"><span>Email Us</span></a>

I then added css for the button to the style.css for the site:

#emailUs
{
  display: block;
  width: 107px;
  height: 23px;
  background: url("/Data/Sites/1/images/emailUs.gif") no-repeat 0 0;

}

#emailUs:hover
{
  background-position: 0 -23px;
}

#emailUs span
{
  position: absolute;
  top: -999em;
}

 The link will work but I can't get the image to show up.

Is there something I am missing? Do you need to add the css to a different css file?

Thanks

 

10/30/2011 4:01:37 PM
Gravatar
Total Posts 24

Re: CSS Rollover buttons

I figured it out

It works if you put in the whole URL for some reason including http:// as the path for your image

 

 

10/30/2011 4:20:44 PM
Gravatar
Total Posts 18439

Re: CSS Rollover buttons

put the image in your skin folder and shorten it to 'emailus.gif' using single quotes. or in a sub folder named images beneath your skin folder and use 'images/emailus.gif'

The single quotes are important so our CSS combiner can resolve the url correctly.

Hope that helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.