Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Gradient Border-Bottom Help Needed!

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #197890
    johnkelton
    Participant

    Hello, I want to make my border bottom a gradient. For paste 3 hours I have tried to apply many tutorials but none gives me exactly what I want. Since I am a beginner, I am unable to solve this problem. Any help is much appreciated.
    I would like to apply the following style to “border-bottom”

    http://jsfiddle.net/joshnh/HdwKA/
    Thanks in advance!

    #197891
    Paulie_D
    Member

    Borders (as far as I know) don’t take gradients as background becuase they are colors.

    There is no border-background property.

    You can use border-image as shown in this demo by Chris Coyier

    https://css-tricks.com/examples/GradientBorder/

    What are you trying to do? Do you have an image of the expected result?

    What element are you trying to apply this border too?

    #197893
    johnkelton
    Participant

    Yeah thats what I found too. I tried following the examples but was unable to make it work.
    The link http://jsfiddle.net/joshnh/HdwKA/ shows what I want.

    Can someone help me in applying tutorial https://css-tricks.com/examples/GradientBorder/

    Thanks

    #197894
    Paulie_D
    Member

    What element are you trying to apply this border to?

    Personally, I would use a pseudo-element

    http://codepen.io/Paulie-D/pen/zxmNLM

    #197895
    johnkelton
    Participant

    <h1>Title of the blog</h1>

    I am trying to apply it to <h1></h1>
    Thanks

    #197896
    johnkelton
    Participant

    I cant do any changes to HTML, I only have access to style sheet.

    #197899
    Paulie_D
    Member

    Updated my Codepen…see ^^^

    #197900
    johnkelton
    Participant

    You are awesome :-))) Thanks

    Best resource to learn CSS in your opinion?

    Thanks again

    #197901
    Paulie_D
    Member

    Best resource to learn CSS in your opinion?

    Practice…and google. :)

Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘CSS’ is closed to new topics and replies.