Jump to content
Experiencing kernel error or random crashes on TruckersMP Island? ×

[HTML][CSS] Problem to change color while mouseover on buttons


Recommended Posts

Hello guys :)

 

I have a little problem to change the color while my mouse is over a button.

 

My test site in GIF

 

When my mouse is over "About me" appears the color "orange" (hexcode : #F5AB35) and I want, that all have the color #FDE3A7 (brighter orange).

Let me show it with a image :

unbenannt.png

Like this (translate it in english) :

First part of image : So should it look

Second : Here is the button orange, the background, buttons and behind the button should have the same color who have color button.

Third : Same but just in red.

 

I have already asked 2 friends of me but they can't help me.

 

You can edit/check it HERE if you know, what i did wrong :)

 

Sry for my bad english, I hoped you can understand me :)

 

kind regarts

Loading

Edited by [GER]Loading...
Wrong link -> Edit
Link to comment
Share on other sites

Should i change my main color for it or how @Chev?

---

CSS buttons and hover effect

.btn_index {
    background-color: #6C7A89;
    color: black;
    width: 14.3%;
    height: 100%;
    font-size: 15px;
    font-family: cursive;
    border: 0px;
    padding: 0px;
    margin: auto;
    margin-left: -5px;
    -webkit-transition: 0.5s;
}

.btn_index:hover {
    background-color: black;
    -webkit-transition: 0.2s;
    margin-top: -100px;
}

Here is the code when i mouse hover, over the buttons

                            /* Mouseover color btn */
.menu .btn_index:first-child:hover       {background-color: #1E824C;}
.menu .btn_index:nth-child(2):hover      {background-color: #F5AB35;}
.menu .btn_index:nth-child(3):hover      {background-color: #D64541;}
.menu .btn_index:nth-child(4):hover      {background-color: #1F3A93;}
.menu .btn_index:nth-child(5):hover      {background-color: #1F3A93;}
.menu .btn_index:nth-child(6):hover      {background-color: #1F3A93;}
.menu .btn_index:nth-child(7):hover      {background-color: #1F3A93;}

 

Link to comment
Share on other sites

^

Correct and by the class ".menu" (behind the button the bar) too for the same color and this is my problem what i have to fix it :/

 

/edit

By the background and .menu I want the color brighter as the main color as possible.

 

/edit 2

Like THIS but colored by the buttons

Edited by [GER]Loading...
Link to comment
Share on other sites

@[GER]Loading...

 

I've tried finding some ways to do what you seek but, I can not manage to get it to work.

Hopefully, someone will reply who knows the way to do it.

 

Sorry that I could not assist with this issue.. but, if you need anything else.. please ask me.

 

 

Regards, Chev.

Have a question? Feel free to message me.

Feedback | Rules | Support | News | Meet the Team

Link to comment
Share on other sites

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