Problem repeating background gradient

Asked

Viewed 147 times

1

How can I make a background gradient repeat outside of the set position for the layout?

Consider the following image:

inserir a descrição da imagem aqui

I needed to repeat the water green and the orange color, which are also gradients.

EDIT:

Example: http://jsfiddle.net/srCN7/

  • What are the dimensions of the repeat?

  • The problem is there... it has no dimensions, any resolution has to repeat.

  • Show the structure of your HTML, without it it is difficult to help.

  • See: http://jsfiddle.net/srCN7/

1 answer

1

I don’t know if I understand what you want, see if this is it:

HTML

<div id='externo'>
    <div id='interno'></div>
</div>

CSS

#externo{
    background: -webkit-linear-gradient(left, #38899f, #df2929, #e8742a); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(left, #38899f, #df2929, #e8742a); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(left, #38899f, #df2929, #e8742a); /* For Firefox 3.6 to 15 */
    background: linear-gradient(left, #38899f, #df2929, #e8742a); /* Standard syntax */
    width:800px;
    height:60px;
}
#interno{
    background:#999;
    width:80%;
    margin:0 auto;
    height:55px;
}

http://jsfiddle.net/7vNQ6/

Browser other questions tagged

You are not signed in. Login or sign up in order to post.