chanfuterboy Posted August 18, 2009 Share Posted August 18, 2009 hi, i got the links in blue, but i want when mouse over it change color white .cssmenu2 {width: 440px;} .cssmenu {border: 0px solid #95CBCA; width: 400px; height:20px; background:url(back.jpg) repeat-x;} .cssmenu a{ /*border:1px solid #010407;display:block;*/ float:left; display:block; padding-top:4px; padding-left:4px; text-align:center; margin-left:10px; text-decoration:none; color:#95CBCA; font-weight:bold; } pls help me Link to comment https://forums.phpfreaks.com/topic/170812-solved-hi-basic-help/ Share on other sites More sharing options...
chriscloyd Posted August 18, 2009 Share Posted August 18, 2009 .cssmenu2 {width: 440px;} .cssmenu {border: 0px solid #95CBCA; width: 400px; height:20px; background:url(back.jpg) repeat-x;} .cssmenu a{ /*border:1px solid #010407;display:block;*/ float:left; display:block; padding-top:4px; padding-left:4px; text-align:center; margin-left:10px; text-decoration:none; color:#95CBCA; font-weight:bold; } .cssmenu a:hover{ /*border:1px solid #010407;display:block;*/ float:left; display:block; padding-top:4px; padding-left:4px; text-align:center; margin-left:10px; text-decoration:none; color:#95CBCA; font-weight:bold; background-color:#FFFFFF; } Link to comment https://forums.phpfreaks.com/topic/170812-solved-hi-basic-help/#findComment-900834 Share on other sites More sharing options...
chanfuterboy Posted August 18, 2009 Author Share Posted August 18, 2009 hi, now in the html page self i need to use same <td class="cssmenu2"> or i have to user 1 more thing, because it does not work, it still show the links in blue Link to comment https://forums.phpfreaks.com/topic/170812-solved-hi-basic-help/#findComment-900839 Share on other sites More sharing options...
chriscloyd Posted August 18, 2009 Share Posted August 18, 2009 can u show me the html code really quick for the links for example you can do this depending where ur link is <div id="menu"><a href="#">Link Here</a></div> css #menu a { background-color:blue; display:block; padding:5px; } #menu a:hover { background-color:white; display:block; padding:5px; } Link to comment https://forums.phpfreaks.com/topic/170812-solved-hi-basic-help/#findComment-900848 Share on other sites More sharing options...
chanfuterboy Posted August 18, 2009 Author Share Posted August 18, 2009 hi it is so <table class="cssmenu" align="center" cellspacing="0" cellpadding="0"> <tr> <td class="cssmenu"> <a href='profile.php' target='mFrame'>Profile</a> <a href='pvt_msg.php' target='mFrame'>Prive Msg</a> <a href='invites.php' target='mFrame'>Add Friends</a> <a href='album_iupload.php' target='mFrame'>Album</a> <a href='logout.php' >Logout</a> Link to comment https://forums.phpfreaks.com/topic/170812-solved-hi-basic-help/#findComment-900849 Share on other sites More sharing options...
haku Posted August 18, 2009 Share Posted August 18, 2009 this: .cssmenu a{ /*border:1px solid #010407;display:block;*/ float:left; display:block; padding-top:4px; padding-left:4px; text-align:center; margin-left:10px; text-decoration:none; color:#95CBCA; font-weight:bold; } .cssmenu a:hover{ /*border:1px solid #010407;display:block;*/ float:left; display:block; padding-top:4px; padding-left:4px; text-align:center; margin-left:10px; text-decoration:none; color:#95CBCA; font-weight:bold; background-color:#FFFFFF; } Can be this: .cssmenu a{ /*border:1px solid #010407;display:block;*/ float:left; display:block; padding-top:4px; padding-left:4px; text-align:center; margin-left:10px; text-decoration:none; color:#95CBCA; font-weight:bold; } .cssmenu a:hover{ background-color:#FFFFFF; } And this: #menu a { background-color:blue; display:block; padding:5px; } #menu a:hover { background-color:white; display:block; padding:5px; } Can be this: #menu a { background-color:blue; display:block; padding:5px; } #menu a:hover { background-color:white; } Only declarations that change or are added need to be declared in the hover state. As to the original question: .cssmenu a:hover { color:blue; } Link to comment https://forums.phpfreaks.com/topic/170812-solved-hi-basic-help/#findComment-900977 Share on other sites More sharing options...
TheFilmGod Posted August 18, 2009 Share Posted August 18, 2009 .cssmenu2 {width: 440px;} .cssmenu {border: 0px solid #95CBCA; width: 400px; height:20px; background:url(back.jpg) repeat-x;} .cssmenu a{ /*border:1px solid #010407;display:block;*/ float:left; display:block; padding-top:4px; padding-left:4px; text-align:center; margin-left:10px; text-decoration:none; color:#95CBCA; font-weight:bold; } .cssmenu a:hover { color: #fff; } Link to comment https://forums.phpfreaks.com/topic/170812-solved-hi-basic-help/#findComment-901071 Share on other sites More sharing options...
chanfuterboy Posted August 18, 2009 Author Share Posted August 18, 2009 i use the first code, it make the background white, but i was wonder the change color of the text self not the background beside it does not work in IE 8 browser Link to comment https://forums.phpfreaks.com/topic/170812-solved-hi-basic-help/#findComment-901288 Share on other sites More sharing options...
TheFilmGod Posted August 18, 2009 Share Posted August 18, 2009 .cssmenu2 {width: 440px;} .cssmenu {border: 0px solid #95CBCA; width: 400px; height:20px; background:url(back.jpg) repeat-x;} .cssmenu a{ /*border:1px solid #010407;display:block;*/ float:left; display:block; padding-top:4px; padding-left:4px; text-align:center; margin-left:10px; text-decoration:none; color:#95CBCA; font-weight:bold; } .cssmenu a:hover { color: #fff; } What do you expect me to do? I gave you the code that will make the TEXT (itself) change to white -> #fff. Do you want me to edit the css file for you too? I can't spoon feed you! So try my code out. Link to comment https://forums.phpfreaks.com/topic/170812-solved-hi-basic-help/#findComment-901370 Share on other sites More sharing options...
chanfuterboy Posted August 18, 2009 Author Share Posted August 18, 2009 hi, sorry was watching the first code above, my apoligize Link to comment https://forums.phpfreaks.com/topic/170812-solved-hi-basic-help/#findComment-901374 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.