|
| |
|
|
ziyath
Posts: 30 Joined: 10/30/2005 From: maldives Status: offline
|
css popup - 3/3/2006 7:23:27
hello can anyone guide me as to how i can a have CSS popups (text that say somthing about a link) to a CSS rollover image... ive tried stuff in this link.. http://www.meyerweb.com/eric/css/edge/popups/demo.html but id dint appear...jus appeard in text not in the rollovers... help thanks ziyath
|
|
|
|
BonRouge
Posts: 42 Joined: 3/3/2006 Status: offline
|
RE: css popup - 3/3/2006 8:37:58
I played around with Meyer's page to make it simpler (and mark the links up as a list). http://bonrouge.com/demos/mpop.htm I found that when I removed the background here:#links a:hover {
color: #cff;
[color=#990000]background:black;[/color]
}
it stopped working in IE (so maybe make sure you have a background). Here's the code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html>
<head>
<title>Pure CSS Popups</title>
<style type="text/css">
<!--
body {
background: black;
margin: 0;
padding: 0;
}
#links {
position:relative;
width: 5em;
}
#links a {
display: block;
width:100%;
color: #FFC;
text-decoration:none;
}
#links a:hover {
color: #cff;
background:black;
}
#links a span {display: none;}
#links a:hover span {
display: block;
position: absolute;
top: 0;
left: 6em;
width: 10em;
color:red;
}
-->
</style>
</head>
<body>
<ul id="links">
<li><a href="#n">Link 1<span> Message for Link 1</span></a></li>
<li><a href="#n">Link 2<span> Message for Link 2</span></a></li>
<li><a href="#n">Link 3<span> Message for Link 3</span></a></li>
</ul>
</body>
</html> I hope this helps.
< Message edited by c1sissy -- 6/1/2007 16:05:51 >
|
|
|
|
ziyath
Posts: 30 Joined: 10/30/2005 From: maldives Status: offline
|
RE: css popup - 3/3/2006 9:47:03
thanks BonRouge could tell me how to make these for three images horizontally arranged... with the popup text apprering bottom of the image whn mouse hover... thanks
|
|
|
|
BonRouge
Posts: 42 Joined: 3/3/2006 Status: offline
|
RE: css popup - 3/3/2006 11:19:37
ziyath, Do you mean something like this? http://bonrouge.com/demos/mpop2.htm
< Message edited by c1sissy -- 6/1/2007 16:06:23 >
|
|
|
|
ziyath
Posts: 30 Joined: 10/30/2005 From: maldives Status: offline
|
RE: css popup - 3/3/2006 11:47:25
EXACTLY....thanks a bunch... chk it out www.mhrtrading.com the small icons at the top... (site under construction - dont press buttons hehe) thanks again BonRouge
|
|
|
|
BonRouge
Posts: 42 Joined: 3/3/2006 Status: offline
|
RE: css popup - 3/3/2006 13:43:23
Sorry. You need this:#links {
position:relative;
width: 100px;
margin:20px;
list-style:none;
} and... I have a sneaky suspicion that you're using IE for testing (rather than a good browser). If you'd looked in say... Firefox, you would have seen this problem. Seriously - don't test in IE - it's a bit crap. Test in a proper browser, then hack for IE later.
|
|
|
|
ziyath
Posts: 30 Joined: 10/30/2005 From: maldives Status: offline
|
RE: css popup - 3/4/2006 1:44:51
hey thanks BonRouge but i do my testing in opera and IE...there was no problems with those.. jus installed FF...now the list is ok with ur code addition... but now the coloured backgrounds dont show in FF...but in IE, opera they ok... help..!!
|
|
|
|
ziyath
Posts: 30 Joined: 10/30/2005 From: maldives Status: offline
|
RE: css popup - 3/4/2006 1:46:03
and oh yea plus the text in the menu appears on the top in FF but in opera IE they in the middle....vertically i mean... thanks...they menu in css...thanks
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|