css help
- Started
- Last post
- 18 Responses
- ********
i am trying to make the background of the cell change color where the link sits at.
not background color of link it self but the back ground of the cell where sits.
anyone?
- johndiggity0
my only guess is use a solid color bg image in the cell and javascript for rollovers. sorry if that doesn't help.
- ********0
yeah thats what i tried to do and couldnt do it...
- instantok0
why not make the link the width/height of the cel and change the background of the link? or are there more than 1 link in each cel?
give the cel a class and apply a hover state to the cel:
td {background: #FFFFFF}
td:hover {background: #000000}
- jarredbishop0
use:
onMouseOver="this.style.backgrou... onMouseOut="this.style.backgroun...
its a bit tedios and there are better ways, this is easy tho...
PVN may screw this up too..
- johndiggity0
i'm confused. is the link in the cell? do you not want the actual link text to chage color on hover? just have the bg cell change color? is the cell the same size as the link(s)?
- ********0
cool jarredbishop
- jarredbishop0
if you want you can take the link out completely and put
onClick="parent.location='yourPa...
inside the td. and then put cursor:pointer inside your hover class to make it look like a link.. i'll update the aforementioned page with an example...
- ********0
how do i change the txt color with the background?
right now.. the txt is black on white cell and i got the cell to be black.. and using the a: hover to change the color
obviously if i use onclick i cant change the txt color
- jarredbishop0
just put it in the project_hov css class.. the javascript isnt just changing the background color of the tag, its changing the class or the td.
eg.
.project_hov
{
color: #444444;
background-color: #f9f9f9;
}
- ********0
yes i just got that hehe
so do i add onclick on to the TD?
- jarredbishop0
check out this:
- ********0
nice i got the onlick working also
THX ALOT !!!
- jarredbishop0
no trouble.
- ********0
AWESOME
JarredB
thx alot again !
- instantok0
if that is how you would like it to work you can also do it by setting the link width and height and then you won't need any javascript
- ********0
i am learning so much today !
:D
- jevad0
threads like this make me realise why NT is so frickin cool