Jump to content

[SOLVED] hi, basic help


chanfuterboy

Recommended Posts

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

.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

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

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

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

.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

.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.  :hammer_time::geek:

Link to comment
https://forums.phpfreaks.com/topic/170812-solved-hi-basic-help/#findComment-901370
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.