By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,723 Members | 1,662 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,723 IT Pros & Developers. It's quick & easy.

Rollover makes text appear below image?

P: n/a
I am new to CSS and would like to know if there is a way to make this
happen with CSS:

image1 and image 2 are laid out at the top of the page.

when the mouse hovers over image1, a paragragh or so of formatted text
appears below,
when the mouse leaves the image, the text disappears;

when the mouse hovers over image2, a different body of text appears in
the same area where the text appeared for image1, which also
disappears when the mouse moves away.

If this is a common question, I apologize. Thank you in advance for
any help.
Jul 20 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
On 13 Feb 2004 06:05:17 -0800, ki********@hotmail.com
<ki********@hotmail.com> wrote:
I am new to CSS and would like to know if there is a way to make this
happen with CSS:

image1 and image 2 are laid out at the top of the page.

when the mouse hovers over image1, a paragragh or so of formatted text
appears below,
when the mouse leaves the image, the text disappears;

when the mouse hovers over image2, a different body of text appears in
the same area where the text appeared for image1, which also
disappears when the mouse moves away.

If this is a common question, I apologize. Thank you in advance for
any help.

The specific answer I will leave to those more skilled. The general answer
is that CSS alone can do this in nearly every browser, except for that one
most people are using :\ so the solution here is normally a script.
Jul 20 '05 #2

P: n/a
Els


Neal wrote:
On 13 Feb 2004 06:05:17 -0800, ki********@hotmail.com
<ki********@hotmail.com> wrote:
I am new to CSS and would like to know if there is a way to make this
happen with CSS:

image1 and image 2 are laid out at the top of the page.

when the mouse hovers over image1, a paragragh or so of formatted text
appears below,
when the mouse leaves the image, the text disappears;

when the mouse hovers over image2, a different body of text appears in
the same area where the text appeared for image1, which also
disappears when the mouse moves away.

If this is a common question, I apologize. Thank you in advance for
any help.


The specific answer I will leave to those more skilled. The general
answer is that CSS alone can do this in nearly every browser, except for
that one most people are using :\ so the solution here is normally a
script.


I'm not saying I'm more skilled, but I'd say it can be done,
at least if image1 and image2 are links, so the CSS hover
function will work in IE, following the example of Eric Meyer:
http://www.meyerweb.com/eric/css/edge/popups/demo.html
And if the images aren't meant to be links, well, 'link'
them to "#" and it'll work without linking anywhere. (yes,
confusing people by showing the little hand ...)

--
Els

Mente humana é como pára-quedas; funciona melhor aberta.

Jul 20 '05 #3

P: n/a
Els <el***********@tiscali.nl.invalid> wrote in
<40**********************@dreader2.news.tiscali.nl >
Neal wrote:
On 13 Feb 2004 06:05:17 -0800, ki********@hotmail.com
<ki********@hotmail.com> wrote:
I am new to CSS and would like to know if there is a way to make
this happen with CSS:

image1 and image 2 are laid out at the top of the page.

when the mouse hovers over image1, a paragragh or so of formatted
text appears below,
when the mouse leaves the image, the text disappears;

when the mouse hovers over image2, a different body of text appears
in the same area where the text appeared for image1, which also
disappears when the mouse moves away.

If this is a common question, I apologize. Thank you in advance for
any help.


The specific answer I will leave to those more skilled. The general
answer is that CSS alone can do this in nearly every browser, except
for that one most people are using :\ so the solution here is
normally a script.


I'm not saying I'm more skilled, but I'd say it can be done,
at least if image1 and image2 are links, so the CSS hover
function will work in IE, following the example of Eric Meyer:
http://www.meyerweb.com/eric/css/edge/popups/demo.html
And if the images aren't meant to be links, well, 'link'
them to "#" and it'll work without linking anywhere. (yes,
confusing people by showing the little hand ...)


I generally worry about changing expected behaviour but, since the hand
pointer is in itself unexpected in this context, how about styling the link
with style="cursor:default" ?
--
PeterMcC
If you feel that any of the above is incorrect,
inappropriate or offensive in any way,
please ignore it and accept my apologies.

Jul 20 '05 #4

P: n/a
Els


PeterMcC wrote:
Els <el***********@tiscali.nl.invalid> wrote in
<40**********************@dreader2.news.tiscali.nl >
Neal wrote:

On 13 Feb 2004 06:05:17 -0800, ki********@hotmail.com
<ki********@hotmail.com> wrote:
I am new to CSS and would like to know if there is a way to make
this happen with CSS:

image1 and image 2 are laid out at the top of the page.

when the mouse hovers over image1, a paragragh or so of formatted
text appears below,
when the mouse leaves the image, the text disappears;

when the mouse hovers over image2, a different body of text appears
in the same area where the text appeared for image1, which also
disappears when the mouse moves away.

If this is a common question, I apologize. Thank you in advance for
any help.

The specific answer I will leave to those more skilled. The general
answer is that CSS alone can do this in nearly every browser, except
for that one most people are using :\ so the solution here is
normally a script.


I'm not saying I'm more skilled, but I'd say it can be done,
at least if image1 and image2 are links, so the CSS hover
function will work in IE, following the example of Eric Meyer:
http://www.meyerweb.com/eric/css/edge/popups/demo.html
And if the images aren't meant to be links, well, 'link'
them to "#" and it'll work without linking anywhere. (yes,
confusing people by showing the little hand ...)


I generally worry about changing expected behaviour but, since the hand
pointer is in itself unexpected in this context, how about styling the link
with style="cursor:default" ?


Yep, good one. Never realised that could be done with CSS as
well. Just tested it in IE6, Opera 7.23, NS7.1 and Firefox.
However, don't style the a:hover, but a itself, like
a {cursor:default;}
If you only style the a:hover, the hand will appear when
touching the border of the link, in NS7.1 and Firefox.

I learned something new again today. :-)
Leaves one question though:
Is this what the op was looking for?

--
Els

Mente humana é como pára-quedas; funciona melhor aberta.

Jul 20 '05 #5

P: n/a
Els <el***********@tiscali.nl.invalid> wrote in
<40**********************@dreader2.news.tiscali.nl >

I learned something new again today. :-)
Pleased to have been of service.
Leaves one question though:
Is this what the op was looking for?


Nope - he'll be like the rest of us, just looking for a little warmth and
affection.

;-)

--
PeterMcC
If you feel that any of the above is incorrect,
inappropriate or offensive in any way,
please ignore it and accept my apologies.

Jul 20 '05 #6

P: n/a
Els


PeterMcC wrote:
Els wrote:
Leaves one question though:
Is this what the op was looking for?


Nope - he'll be like the rest of us, just looking for a little warmth and
affection.


LOL

--
Els

Mente humana é como pára-quedas; funciona melhor aberta.

Jul 20 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.