Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

289
Visualizações
how to make background color from bright blue to dark blue using css/html/js

im trying to make my website background start as a light blue background color and end up with slightly darker blue.

is there a way to code it? or should i put an image as the background(if no other option) ?

here is the image with the exact colors i want my background to have :

please ignore the clouds in the image, and check the colors only.

background colors image

about 4 years ago · Juan Pablo Isaza
3 Respostas
Responde à pergunta

0

Use a gradient

main {
  height: 100vh;
  background: linear-gradient(skyblue, darkblue);
}
<main></main>

about 4 years ago · Juan Pablo Isaza Relatório

0

You should use linear-gradient

.background{
  width: 100vw;
  height: 100vh;
  background-image: linear-gradient(to bottom, cyan, blue);
}
<div class="background">
</div>

about 4 years ago · Juan Pablo Isaza Relatório

0

You could try linear-gradient. Click here for more information

See this for more information on which browsers support it: https://caniuse.com/?search=linear-gradient

Here's an example:

#grad1 {
  height: 200px;
  background-color: blue; /* For browsers that do not support gradients */
  background-image: linear-gradient(#0000FF, #000044);
}
<div id="grad1"></div>

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda