Skip to main content
adicionou 525 caracteres ao conteúdo
Fonte Link
MarceloBoni
  • 6,4mil
  • 3
  • 30
  • 62
.teste {
  width: 200px;500px;
  height: 200px;

  border: 1px rgb(89,89,89) solid;
  
  background: -moz-linear-gradient(top,  rgba(239,242,48,1) 0%, rgba(41,137,216,1) 50%, rgba(32,124,202,1) 51%, rgba(34,125,203,0) 52%, rgba(125,185,232,0) 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(239,242,48,1)), color-stop(50%,rgba(41,137,216,1)), color-stop(51%,rgba(32,124,202,1)), color-stop(52%,rgba(34,125,203,0)), color-stop(100%,rgba(125,185,232,0))); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top,  rgba(239,242,48,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(34,125,203,0) 52%,rgba(125,185,232,0) 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top,  rgba(239,242,48,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(34,125,203,0) 52%,rgba(125,185,232,0) 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top,  rgba(239,242,48,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(34,125,203,0) 52%,rgba(125,185,232,0) 100%); /* IE10+ */
  background: linear-gradient(to bottom,  rgba(239,242,48,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(34,125,203,0) 52%,rgba(125,185,232,0) 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eff230', endColorstr='#007db9e8',GradientType=0 ); /* IE6-9 */

}
  #coberturas{
    font:Lucida Sans;   
    display:block;
    bottom:0;
    box-sizing: border-box;
    background-color:#FF9911;

    width:200px;



  }
<div id="teste" class="teste"><class="teste">
  <h2> Coberturas </h2>
  <div id="coberturas" class="coberturas"></div>
  <ul>
    <a href="fotos.php?id=5">   <li><img src="imagens/01.jpg"  width="100" height="100" /> <br/>
      <legend> <span>29/05/2015 - TUPACIGUARA MG</span> <br /> <h1>EXPO CAPITU</h1></legend></li></a>
  </ul>
</div>
.teste {
  width: 200px;
  height: 200px;

  border: 1px rgb(89,89,89) solid;
  
  background: -moz-linear-gradient(top,  rgba(239,242,48,1) 0%, rgba(41,137,216,1) 50%, rgba(32,124,202,1) 51%, rgba(34,125,203,0) 52%, rgba(125,185,232,0) 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(239,242,48,1)), color-stop(50%,rgba(41,137,216,1)), color-stop(51%,rgba(32,124,202,1)), color-stop(52%,rgba(34,125,203,0)), color-stop(100%,rgba(125,185,232,0))); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top,  rgba(239,242,48,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(34,125,203,0) 52%,rgba(125,185,232,0) 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top,  rgba(239,242,48,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(34,125,203,0) 52%,rgba(125,185,232,0) 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top,  rgba(239,242,48,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(34,125,203,0) 52%,rgba(125,185,232,0) 100%); /* IE10+ */
  background: linear-gradient(to bottom,  rgba(239,242,48,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(34,125,203,0) 52%,rgba(125,185,232,0) 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eff230', endColorstr='#007db9e8',GradientType=0 ); /* IE6-9 */
}
<div id="teste" class="teste"></div>
.teste {
  width: 500px;
  height: 200px;

  border: 1px rgb(89,89,89) solid;
  
  background: -moz-linear-gradient(top,  rgba(239,242,48,1) 0%, rgba(41,137,216,1) 50%, rgba(32,124,202,1) 51%, rgba(34,125,203,0) 52%, rgba(125,185,232,0) 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(239,242,48,1)), color-stop(50%,rgba(41,137,216,1)), color-stop(51%,rgba(32,124,202,1)), color-stop(52%,rgba(34,125,203,0)), color-stop(100%,rgba(125,185,232,0))); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top,  rgba(239,242,48,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(34,125,203,0) 52%,rgba(125,185,232,0) 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top,  rgba(239,242,48,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(34,125,203,0) 52%,rgba(125,185,232,0) 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top,  rgba(239,242,48,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(34,125,203,0) 52%,rgba(125,185,232,0) 100%); /* IE10+ */
  background: linear-gradient(to bottom,  rgba(239,242,48,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(34,125,203,0) 52%,rgba(125,185,232,0) 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eff230', endColorstr='#007db9e8',GradientType=0 ); /* IE6-9 */

}
  #coberturas{
    font:Lucida Sans;   
    display:block;
    bottom:0;
    box-sizing: border-box;
    background-color:#FF9911;

    width:200px;



  }
<div id="teste" class="teste">
  <h2> Coberturas </h2>
  <div id="coberturas" class="coberturas"></div>
  <ul>
    <a href="fotos.php?id=5">   <li><img src="imagens/01.jpg"  width="100" height="100" /> <br/>
      <legend> <span>29/05/2015 - TUPACIGUARA MG</span> <br /> <h1>EXPO CAPITU</h1></legend></li></a>
  </ul>
</div>
Fonte Link
MarceloBoni
  • 6,4mil
  • 3
  • 30
  • 62

Você pode utilizar essa ferramenta online, mais muito útil pra emular sua div:

http://makewebsimple.net/cssdivbuilder

Pra gerar o gradiente utilizo essa outra ferramenta online:

http://www.colorzilla.com/gradient-editor/

Exp

.teste{
  width: 200px;
  height: 200px;

  border: 1px rgb(89,89,89) solid;

  background: -moz-linear-gradient(top,  rgba(30,87,153,0) 0%, rgba(35,111,183,1) 24%, rgba(41,137,216,0.66) 50%, rgba(32,124,202,0.65) 51%, rgba(125,185,232,0) 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(30,87,153,0)), color-stop(24%,rgba(35,111,183,1)), color-stop(50%,rgba(41,137,216,0.66)), color-stop(51%,rgba(32,124,202,0.65)), color-stop(100%,rgba(125,185,232,0))); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top,  rgba(30,87,153,0) 0%,rgba(35,111,183,1) 24%,rgba(41,137,216,0.66) 50%,rgba(32,124,202,0.65) 51%,rgba(125,185,232,0) 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top,  rgba(30,87,153,0) 0%,rgba(35,111,183,1) 24%,rgba(41,137,216,0.66) 50%,rgba(32,124,202,0.65) 51%,rgba(125,185,232,0) 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top,  rgba(30,87,153,0) 0%,rgba(35,111,183,1) 24%,rgba(41,137,216,0.66) 50%,rgba(32,124,202,0.65) 51%,rgba(125,185,232,0) 100%); /* IE10+ */
  background: linear-gradient(to bottom,  rgba(30,87,153,0) 0%,rgba(35,111,183,1) 24%,rgba(41,137,216,0.66) 50%,rgba(32,124,202,0.65) 51%,rgba(125,185,232,0) 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#001e5799', endColorstr='#007db9e8',GradientType=0 ); /* IE6-9 */
}
<div id="teste" class="teste"></div>

No seu caso ficaria algo assim:

.teste {
  width: 200px;
  height: 200px;

  border: 1px rgb(89,89,89) solid;
  
  background: -moz-linear-gradient(top,  rgba(239,242,48,1) 0%, rgba(41,137,216,1) 50%, rgba(32,124,202,1) 51%, rgba(34,125,203,0) 52%, rgba(125,185,232,0) 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(239,242,48,1)), color-stop(50%,rgba(41,137,216,1)), color-stop(51%,rgba(32,124,202,1)), color-stop(52%,rgba(34,125,203,0)), color-stop(100%,rgba(125,185,232,0))); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top,  rgba(239,242,48,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(34,125,203,0) 52%,rgba(125,185,232,0) 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top,  rgba(239,242,48,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(34,125,203,0) 52%,rgba(125,185,232,0) 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top,  rgba(239,242,48,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(34,125,203,0) 52%,rgba(125,185,232,0) 100%); /* IE10+ */
  background: linear-gradient(to bottom,  rgba(239,242,48,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(34,125,203,0) 52%,rgba(125,185,232,0) 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eff230', endColorstr='#007db9e8',GradientType=0 ); /* IE6-9 */
}
<div id="teste" class="teste"></div>