This only seems to work for fixed sized elements or, if used on the body, the visible part of the page in the browser's viewport. If you have to scroll down, the gradient simply repeats.
If you specify no repeat for the background, you see the gradient then what ever the specified background color is. Even with html and body height set to 100%, I can't resolve. Anyone find out how to get the gradient to go the whole length of a scrollable page?
Actually they do on IE9 browser - I am not on computer now, but if I remember right, some CSS IE codes used -ms- but you should try yourself. Nice tutorial!
it bloody silly that Css3 had been out for so long and yet there still inventing different markup - I thought the whole point of lessons learned was to use the same markup - isn't that the whole point of having CSS standards - CSS standards body is a useless excuse, they should say implement an agreeded gradient markup X,Y,Z - Where would the web be if everyone had their own version of HTML
You can also do -webkit-linear-gradient.
All4Uproductions 1 month ago
Thank you so much peace from marrakech
nietzsche011 1 month ago
Check this out goo.gl /4kbQZ
Roodper 5 months ago
subbed ;)
zangoheyho 6 months ago
This has been flagged as spam show
background:-webkit-linear-gradient(top, #09F, #F90 70%);
background:-moz-linear-gradient(top, #09F, #F90 70%);
these work in firefox & chrome!
Thet3 7 months ago
Comment removed
Thet3 7 months ago
This only seems to work for fixed sized elements or, if used on the body, the visible part of the page in the browser's viewport. If you have to scroll down, the gradient simply repeats.
If you specify no repeat for the background, you see the gradient then what ever the specified background color is. Even with html and body height set to 100%, I can't resolve. Anyone find out how to get the gradient to go the whole length of a scrollable page?
xiaoxindiar 8 months ago
Actually they do on IE9 browser - I am not on computer now, but if I remember right, some CSS IE codes used -ms- but you should try yourself. Nice tutorial!
Swordmaster146 9 months ago
it bloody silly that Css3 had been out for so long and yet there still inventing different markup - I thought the whole point of lessons learned was to use the same markup - isn't that the whole point of having CSS standards - CSS standards body is a useless excuse, they should say implement an agreeded gradient markup X,Y,Z - Where would the web be if everyone had their own version of HTML
theapeman10 10 months ago
Would I need to use the Firefox code or the WebKit code for IE9?
windowsphonepro 11 months ago
@windowsphonepro You would use the official code.
For border radius you would use border-radius, for box shadows you would use box-shadow, etc.
maximumrfan 11 months ago
@windowsphonepro CSS gradients don't work with Internet explorer yet to the dismay of many designers.
jay11284 10 months ago
Great video, finally I understood the syntax. Thanks a lot.
gabrielpalofficial 1 year ago
Good video. Subscribing.
natal1711 1 year ago
I get stacked gradient backgrounds as if the repeat when styling the body background
powerphillg5 1 year ago
thanks man u´re awesome ;)
WaldYoko 1 year ago
Another great quick tip Jeffrey, thank you very much.
ratnushock 2 years ago