[development] Has anyone got a script to highlight node bodies

nan wich nan_wich at bellsouth.net
Sat May 22 19:18:08 UTC 2010


Thanks, Bob. Sometimes you just have to hit your forehead and say DUH!
 




________________________________
From: Bob Hutchinson <hutchlists at midwales.com>
> So does anyone have a script that can be used to just change the color of a
> node body background, perhaps with greater opacity on a mouseover? 

Do it in css

.node:hover {
  background: #FFFF00;
}

or you could do it on .content. 
I use this method on forms, it tells people when to click to get the cursor in 
and once its there I use :focus so they know where they are in the form. eg
.form-textarea {
  background-color: #EEE;
  border: 1px solid #888;
  font-size:11px;
}
.form-textarea:focus {
  background-color: #FFC;
  border: 1px solid #F88;
}
.form-textarea:hover {
  background-color: #FFC;
}



> Nancy E. Wichmann, PMP
> Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L.
> King, Jr.


-- 
-----------------
Bob Hutchinson
Midwales dot com
-----------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20100522/802341af/attachment.html 


More information about the development mailing list