View Full Version : Cell rollovers using CSS
guitarnerd
June 7th, 2002, 05:23
When I first used CSS a guy showed me how to make Cell rollovers but I seem to have lost all information about it. I just want the cell background to change on a mouse over...anybody know?
I am really trying to avoid using jscript because it just screws up opera
guitarnerd
June 7th, 2002, 17:21
Anybody?
bigperm
June 8th, 2002, 02:04
There is no way to do that with CSS.
It's easy in javascript, but with ONLY CSS, it is impossible.
guitarnerd
June 8th, 2002, 03:46
I have done it in CSS I know for sure it is possible. You under estimate the power of Style Sheets
guitarnerd
June 8th, 2002, 05:54
I figured it out and to prove it is possibe this is what it was
a:link {color:#336699;}
a:visited {color:#336699;}
a:hover {color:#FFFFFF;}
p.highlight {
margin:0px;
font-size:.9em;
font-family:arial,helvetica,sans-serif;
}
.highlight a {
display:block;
width: 160px;
border:1px solid black;
border-bottom-width: 0px;
color: #336699;
padding:5px;
text-decoration:none;
background-color: white;
}
.highlight a:hover {
background-color: #336699;
color: white;
text-decoration:none;
}
it was pretty simple I haven't sorted out the colors yet but it is fun so far
I really like using CSS
All that I do is add that class to the DIV tag table or cell
Using that is 50% easier than javascript I hate using JS...opera won't support it in most cases and it just messes stuff up you obviously don't know anything about CSS considering you said a basic thing was impossible
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.