1
How can I make a background gradient repeat outside of the set position for the layout?
Consider the following image:
I needed to repeat the water green and the orange color, which are also gradients.
EDIT:
Example: http://jsfiddle.net/srCN7/
1
How can I make a background gradient repeat outside of the set position for the layout?
Consider the following image:
I needed to repeat the water green and the orange color, which are also gradients.
EDIT:
Example: http://jsfiddle.net/srCN7/
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;
}
Browser other questions tagged html css background
You are not signed in. Login or sign up in order to post.
What are the dimensions of the repeat?
– bfavaretto
The problem is there... it has no dimensions, any resolution has to repeat.
– user8414
Show the structure of your HTML, without it it is difficult to help.
– bfavaretto
See: http://jsfiddle.net/srCN7/
– user8414