/    Sign up×
Community /Pin to ProfileBookmark

Fill setting but linear

[code=php]

fill: linear-gradient(to bottom, #000, #666);

[/code]

As we know the fill property can accept any CSS color value.

Named colors — orange
Hex colors — #FF9E2C
RGB and RGBa colors — rgb(255, 158, 44) and rgba(255, 158, 44, .5)
HSL and HSLa colors — hsl(32, 100%, 59%) and hsla(32, 100%, 59%, .5)

How to solve linear-gradient. My example is just as demo.

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@cootheadDec 23.2016 — Hi there toplisek,

[indent]

you have not mentioned whether it is [color=navy]CSS[/color], the [color=navy]svg element[/color] or the

[color=navy]canvas element[/color] to which you wish to apply [color=navy]linear-gradient[/color].

If it is [color=navy]CSS[/color], then use...

[color=navy]
background-image: linear-gradient(to bottom, #000, #666); [/color]


If it is the [color=navy]svg element[/color] or the [color=navy]canvas element[/color], then check out

these links...

[list=1]
  • [*][url=http://vanseodesign.com/web-design/svg-linear-gradients/]How To Apply SVG Linear Gradients To A Fill Or Stroke[/url]

  • [*][url=https://developer.mozilla.org/en-US/docs/Web/SVG/Element/linearGradient]The <linearGradient> SVG element[/url]

  • [*][url=https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createLinearGradient]CanvasRenderingContext2D.createLinearGradient()[/url]

  • [*][url=http://tutorials.jenkov.com/html5-canvas/gradients.html]HTML5 Canvas: Gradients[/url]

  • [/list]


    If it something that I have overlooked then let us know. ?

    [/indent]

    [i]coothead[/i]
    Copy linkTweet thisAlerts:
    @toplisekauthorDec 27.2016 — Thank you for this message. I have to check all additional material.
    ×

    Success!

    Help @toplisek spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.13,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...