Added: 2 years ago
From: nettutsplus
Views: 19,421
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (17)

Sign In or Sign Up now to post a comment!
  • You can also do -webkit-linear-gradient.

  • Thank you so much peace from marrakech

  • Check this out goo.gl /4kbQZ

  • subbed ;)

  • Comment removed

  • 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

  • Would I need to use the Firefox code or the WebKit code for IE9?

  • @windowsphonepro You would use the official code.

    For border radius you would use border-radius, for box shadows you would use box-shadow, etc.

  • @windowsphonepro CSS gradients don't work with Internet explorer yet to the dismay of many designers.

  • Great video, finally I understood the syntax. Thanks a lot.

  • Good video. Subscribing. 

  • I get stacked gradient backgrounds as if the repeat when styling the body background

  • thanks man u´re awesome ;)

  • Another great quick tip Jeffrey, thank you very much.

  • Loading comment...
Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more