Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2007
    Location
    United Kingdom
    Posts
    3,011

    Default How to use CSS3 gradients in Opera Browser

    Because CSS3 is not an official standard yet, different browsers have different properties that you need to use in order to set CSS3 gradients in each respective browser. Note however that gradients only work in newer versions of Opera, Firefox and WebKit-based browsers such as Google Chrome and Safari. For Internet Explorer, it requires separate confusing code. That said, this tutorial is specifically for Opera:

    Code:
    background-image: -o-linear-gradient(top,rgb(184,211,229),rgb(148,197,231));
    Unfortunately, from my research you cannot set a gradient using hex codes, so you'll have to use rgb values. Don't worry if you have hex codes that you intended to use, simply use this hex to rgb converter script: Hex-to-RGB Color Converter.

    More information about CSS3
    Domains Registrations @ £7.49pa! - Download the official eUKhost Android and iOS App!

    eNlight Cloud Hosting - Cost-Effective, Autoscaling Cloud Hosting
    How does eNlight work? What differences and benefits are there to VPS and Dedicated Servers?

    Chat to us on Twitter!
    Join our incentive affiliate program now - and earn generous commission with each sale!

    How do I contact eUKhost?
    Support: Client Area - 0808 262 0455
    Sales: sales[@]eukhost.com - 0800 862 0380
    Contact eUKhost Management

    Customer Relations:
    feedback@eukhost.com - 0808 262 0255

    Contact:
    ben@eukhost.com
    Skype: euk_ben
    Windows Live Messenger: ben@eukhost.com


    Don't ever let other people's thoughts, feelings, perceptions and/or opinions drown over yours. You know yourself the best. Go with what you think is right. Everyone else's opinions or statements about you or others are secondary.

  2. #2
    Join Date
    Jan 2007
    Location
    Amersham
    Posts
    511

    Default

    Hi Ben
    I've just done a site for a client using a lot of CSS3 (border-radius and linear-gradients particularly) - have a look and see what you think (Pink Web Shop, Your One Stop Shop)
    In order to get it to look good in Internet Explorer I used a wonderful thing called CSS3Pie which makes it all work for IE.

    So the CSS for it looks like
    Code:
    	background: -webkit-gradient(linear, 0 0, 0 bottom, from(#f8689b), to(#D9014D));
    	background: -moz-linear-gradient(#f8689b, #D9014D);
    	background: linear-gradient(#f8689b, #D9014D);
    	-pie-background: linear-gradient(#f8689b, #D9014D);
    Hope this helps someone
    David Allen - www.serina.co.uk

  3. #3
    Join Date
    Jan 2007
    Location
    United Kingdom
    Posts
    3,011

    Default

    Quote Originally Posted by DavidAllen View Post
    Hi Ben
    I've just done a site for a client using a lot of CSS3 (border-radius and linear-gradients particularly) - have a look and see what you think (Pink Web Shop, Your One Stop Shop)
    In order to get it to look good in Internet Explorer I used a wonderful thing called CSS3Pie which makes it all work for IE.

    So the CSS for it looks like
    Code:
    	background: -webkit-gradient(linear, 0 0, 0 bottom, from(#f8689b), to(#D9014D));
    	background: -moz-linear-gradient(#f8689b, #D9014D);
    	background: linear-gradient(#f8689b, #D9014D);
    	-pie-background: linear-gradient(#f8689b, #D9014D);
    Hope this helps someone
    Thanks for posting that David . Shame when you use CSS3 you have to use JavaScript for IE8 and IE7. People that use other browsers probably have it updated to be honest.
    Domains Registrations @ £7.49pa! - Download the official eUKhost Android and iOS App!

    eNlight Cloud Hosting - Cost-Effective, Autoscaling Cloud Hosting
    How does eNlight work? What differences and benefits are there to VPS and Dedicated Servers?

    Chat to us on Twitter!
    Join our incentive affiliate program now - and earn generous commission with each sale!

    How do I contact eUKhost?
    Support: Client Area - 0808 262 0455
    Sales: sales[@]eukhost.com - 0800 862 0380
    Contact eUKhost Management

    Customer Relations:
    feedback@eukhost.com - 0808 262 0255

    Contact:
    ben@eukhost.com
    Skype: euk_ben
    Windows Live Messenger: ben@eukhost.com


    Don't ever let other people's thoughts, feelings, perceptions and/or opinions drown over yours. You know yourself the best. Go with what you think is right. Everyone else's opinions or statements about you or others are secondary.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •