473,387 Members | 1,760 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,387 software developers and data experts.

Would like CSS rollover like this

http://www.masterstouchremodeling.com/

Would like the same effect but in cross-browser CSS Only.

Anyone know how to do it? I don't really want to use images, either.
Jul 20 '05 #1
12 2097
"Mr. Clean" <mrclean@p&g.com> wrote:
http://www.masterstouchremodeling.com/

Would like the same effect but in cross-browser CSS Only.

Anyone know how to do it? I don't really want to use images, either.


Roughly as follows:

a {padding-right: 20px;}
a:link {text-decoration: none}
a:hover {text-decoration: underline overline; background-image:
url(arrow.gif); background-repeat: no-repeat; background-location:
right center;}

Tweak and add other styles as needed.

If there's a chance that your link text may wrap then things become
slightly more complicated.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #2
Mr. Clean wrote:
http://www.masterstouchremodeling.com/

Would like the same effect but in cross-browser CSS Only.


a:hover {
/* styles when a pointer is hovered over a link */
}

You should be nice and add focus to that as well. Example:

a:link {
color: blue;
background-color: white;
}

a:hover, a:focus {
color: #999;
background-color: blue;
border-top: 1px solid #999;
}

See url in sig for more examples.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #3
Steve Pugh wrote:
"Mr. Clean" <mrclean@p&g.com> wrote:

http://www.masterstouchremodeling.com/

Would like the same effect but in cross-browser CSS Only.

Anyone know how to do it? I don't really want to use images, either.

Roughly as follows:

a {padding-right: 20px;}
a:link {text-decoration: none}
a:hover {text-decoration: underline overline; background-image:
url(arrow.gif); background-repeat: no-repeat; background-location:
right center;}

Tweak and add other styles as needed.

If there's a chance that your link text may wrap then things become
slightly more complicated.


Works fine except that the graphic doesn't show at all no matter what I try.
Jul 20 '05 #4
"Mr. Clean" <mrclean@p&g.com> wrote:
Steve Pugh wrote:
"Mr. Clean" <mrclean@p&g.com> wrote:
http://www.masterstouchremodeling.com/

Would like the same effect but in cross-browser CSS Only.

Anyone know how to do it? I don't really want to use images, either.


Roughly as follows:

a {padding-right: 20px;}
a:link {text-decoration: none}
a:hover {text-decoration: underline overline; background-image:
url(arrow.gif); background-repeat: no-repeat; background-location:
right center;}


Works fine except that the graphic doesn't show at all no matter what I try.


URL of your page so we try to debug it?

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #5
Steve Pugh wrote:
"Mr. Clean" <mrclean@p&g.com> wrote:
Steve Pugh wrote:
"Mr. Clean" <mrclean@p&g.com> wrote:
http://www.masterstouchremodeling.com/

Would like the same effect but in cross-browser CSS Only.

Anyone know how to do it? I don't really want to use images, either.

Roughly as follows:

a {padding-right: 20px;}
a:link {text-decoration: none}
a:hover {text-decoration: underline overline; background-image:
url(arrow.gif); background-repeat: no-repeat; background-location:
right center;}


Works fine except that the graphic doesn't show at all no matter what I try.

URL of your page so we try to debug it?


Must've been something wrong. It works now...

http://www.austinmetrobaseball.com/rollovertest.html
Jul 20 '05 #6
Mr. Clean wrote:
Steve Pugh wrote:
"Mr. Clean" <mrclean@p&g.com> wrote:
Steve Pugh wrote:

"Mr. Clean" <mrclean@p&g.com> wrote:
> http://www.masterstouchremodeling.com/
>
> Would like the same effect but in cross-browser CSS Only.
>
> Anyone know how to do it? I don't really want to use images, either.
Roughly as follows:

a {padding-right: 20px;}
a:link {text-decoration: none}
a:hover {text-decoration: underline overline; background-image:
url(arrow.gif); background-repeat: no-repeat; background-location:
right center;}
Works fine except that the graphic doesn't show at all no matter what
I try.


URL of your page so we try to debug it?

Must've been something wrong. It works now...

http://www.austinmetrobaseball.com/rollovertest.html


Anyway to make the space between the text and the overline and underline
more pronounced?
Jul 20 '05 #7

"Mr. Clean" <mrclean@p&g.com> wrote in message
news:85******************************@news.teranew s.com...
Mr. Clean wrote:
Steve Pugh wrote:
"Mr. Clean" <mrclean@p&g.com> wrote:

Steve Pugh wrote:

> "Mr. Clean" <mrclean@p&g.com> wrote:
>
>
>> http://www.masterstouchremodeling.com/
>>
>> Would like the same effect but in cross-browser CSS Only.
>>
>> Anyone know how to do it? I don't really want to use images, either.
>
>
> Roughly as follows:
>
> a {padding-right: 20px;}
> a:link {text-decoration: none}
> a:hover {text-decoration: underline overline; background-image:
> url(arrow.gif); background-repeat: no-repeat; background-location:
> right center;}
>

Works fine except that the graphic doesn't show at all no matter what
I try.

URL of your page so we try to debug it?

Must've been something wrong. It works now...

http://www.austinmetrobaseball.com/rollovertest.html


Anyway to make the space between the text and the overline and underline
more pronounced?


In terms of feasibility, I'm afraid that falls into the same category as
wanting to specify the angularity of your italics. :-)

Jul 20 '05 #8
On Tue, 06 Jul 2004 21:12:40 GMT, Mr. Clean <mrclean@p&g.com> wrote:
http://www.austinmetrobaseball.com/rollovertest.html


Anyway to make the space between the text and the overline and underline
more pronounced?

You could replace it with top and bottom borders. 1px solid.

To do this right, you need to set the same border on the a:link too - but
use the background color.
Jul 20 '05 #9
in post: <news:85******************************@news.terane ws.com>
"Mr. Clean" <mrclean@p&g.com> said:
http://www.austinmetrobaseball.com/rollovertest.html
Anyway to make the space between the text and the overline and underline
more pronounced?


a:hover{text-decoration:none;border-top:2px solid red;border-bottom:2px dotted green;}

not supported by IE

--
b r u c i e
Jul 20 '05 #10
> a:hover{text-decoration:none;border-top:2px solid red;border-bottom:2px
dotted green;}

not supported by IE


What makes you say that?
I've implemented that before and it works fine in IE...

www.webmarkdesigns.com.au

Except I think the code was more like:

a{text-decoration:none}

a:hover{border:solid #fff;border-width:1px 0}

But there's only really two differences between my code and yours: The
dotted/solid line specified and the colours.
Jul 20 '05 #11
in post: <news:eV*******************@news-server.bigpond.net.au>
e n | c k m a <bo*@marley.com> said:
a:hover{text-decoration:none;border-top:2px solid red;border-bottom:2px
dotted green;}

not supported by IE
What makes you say that?


its unreliable. sometimes the top border doesn't appear and sometimes
the bottom doesn't appear. its depends where/how its used.
--
b r u c i e
Jul 20 '05 #12
> its unreliable. sometimes the top border doesn't appear and sometimes
the bottom doesn't appear. its depends where/how its used.


Fair enough - I haven't come across any situation yet where it hasn't
worked... but I've only used it on that one site, so I guess I wouldn't
know. Interesting to hear, though.
Jul 20 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: nick | last post by:
I have the following code: <style> #item1 { DISPLAY: block; BACKGROUND: url(ProjMenuImgs/ProjBtn.gif) no-repeat 0px 0px; WIDTH: 87px; HEIGHT: 94px; } #item1:hover { background-position: 0...
47
by: Lauren Quantrell | last post by:
I have constructed the following code that simulates the common rollover effect when moving the mouse over a label (this example makes the label bold.) I'm wondering if anyone has come up with...
1
by: Mike P | last post by:
what is the syntax for adding a rollover button as an image button? I have saved the button as a .swf file and put it as the ImageUrl, but since it isn't an image, do I need to save it as an image...
3
by: Rob R. Ainscough | last post by:
Just curious why a VERY commonly used affect of rollover was NOT implemented in .NET 2.0 for web controls? Does anyone have a link to VB code that will show me how to build my own UserControl...
2
by: Casimir | last post by:
I am looking into making pure CSS image rollovers. Do you have any clever (and robust) CSS rollover-tricks? Or links to such "in the wild"? I have figured out two methods for this, but have...
2
by: eholz1 | last post by:
Hello CSS and StyleSheet members, I have decided to move away from Dreamweaver javascript rollover buttons, in favor of a CSS type rollover button. (hope that is ok). I plan to use PHP to...
4
by: somnamblst | last post by:
I am asking this in javascript and not actionscript because I think the js portion more crucial. I have a viewable area in a SWFcalled box_mc on frame1 that is 300x100 until a rollOver event when it...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.