I cant apply {A:hover} effect in my "related post" item of my blogger blog. Here is the code I used to do it: <div id='data2007' style='color:#555555;a:hover{text-decoration:underline; color:#333};height:auto; overflow:auto;width:70%;float:left;font-family:Arial; font-size:12px;font-weight: bold;padding-top: 2px'/><br/><br/> Moreover, The text color also remains red,(#990000) (my page default list text color). How can I change the text color and apply a hover effect to my related post Item??
thanks alot of code for a simple task ! - Shouldnt it be - Replace this - a:hover{text-decoration:underline; color:#333}; WITH THIS - a:hover{text-decoration:underline; color:#333;}
I would suggest not using inline css, it looks quite weird. create your css file externally and attach it to the HTML file by using and @import clause
Hrmm. I might be wrong but I don't think you can declare a child element's state inline. I've never tried to anyway. You would need to apply a class to the containing divider, and style that divider accordingly, or style the anchor. <div class="linkHover">This <a href="#">link</a> will hover.</div> HTML: <div>This <a href="#" class="hover">link</a> will hover.</div> HTML:
There are 4 status for a attributor as following. a:link {} a:hover {} a:active {} a:visited {} try different colors for them, you will find out the answer. I guess you don't apply different color/effects on hover , link and active. Have a try, guy.
Thank you all for your support.I will try your suggestions. And mistakenly, it was posted again in CSS sub forum. I am sorry for that.Thank you very much.
Hey buddy, add this in the blogger style sheet at the top. #data2007 a{'color:#555555;height:auto; overflow:auto;width:70%;float:left;font-family:Arial; font-size:12px;font-weight: bold;padding-top: 2px} #data2007 a:hover{text-decoration:underline; color:#333} and remove the inline style. It will work.