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
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
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
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
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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.