G
G
Goldd lol2021-06-15 04:53:02
css
Goldd lol, 2021-06-15 04:53:02

How to get such a color through colormania with a pipette does not come out THERE IS A CODE. AS?

there is a code

<div class="technics">
  <div class="technics-content2">
  <a id='technics' class='technicsbtn'>Техника</a>
  </div>
  <div class="technics-content">
    <a href="#">Iphone</a>
    <a href="#">Mac Book</a>
    <a href="#">Air Pods</a>
  </div>
</div>

and
.technicsbtn {
    background-color: #312f30;
    color: white;
    padding: 10px 14px;
    font-size: 22px;
    border: none;
    position: relative;
}

.technics-content2 {
    display: block;
    position: absolute;
    background: #312f30;    /*background-color: #f1f1f1;*//*без этого прозрачная красота*/
    z-index: 1;
    left: 130px;
    top: 9px;
}


.technics {
    display: block;
}

/* Dropdown Content (Hidden by Default) */
.technics-content {
    display: block;
    position: absolute;
    background: #f1f1f1;;    /*background-color: #f1f1f1;*//*без этого прозрачная красота*/
    min-width: 114px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    left: 125px;
    top: 40px;
}

/* Links inside the dropdown */
.technics-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

how to get white color like div with a 'Iphone', 'Mac Book' etc.
does not come out with the pipette rgba(0,0,0,0.2) at the box shadow but gives the color that is background and how to do #f1f1f1 with rgba(0,0,0,0.2)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Dubrovin, 2021-06-15
@alekcena

1) Google "what is color encoding and what are they"
2) Google "what is transparency"
3)
Get excited 4) Google "How to learn to write so others understand you"
5) Get excited

S
Sergey, 2021-06-15
@Firsov36

It's not clear what you want. If you want to make the word "technique" on the same gray background as iphone .. then for the "link" with the .technicsbtn class, change the background color and text color. And for the .technics-content2 class, you can not use the background at all in this version.
If at all the "technique" should be on white, then we remove the background altogether.
If ... in general, the options are dark. What exactly is not working for you?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question