- This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
In the button maker( https://css-tricks.com/examples/ButtonMaker/ ).
You can select a "Top gradient color" and a "Bottom Gradient color", can you also do this for a background?
On a background you can make a long thin image with a gradient from top to bottom, then in the css you make the background color the same as the bottom of your gradient and place your background image to repeat-x. Does that make sense to you? ;)
Yes that makes sense to me, i also did it a couple of times like that.
But i was wondering if you could do that with only css?
Yes, you can:
Yes you can use the gradient background color in css itself,
<body style="filter:progid:DXImageTransform.Microsoft.Gradient
(endColorstr=’#003366′, startColorstr=’#55aaee’, gradientType=’0′);">
But this gradient background will works only in IE Browsers