Forums

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

Home Forums CSS [Solved] Heading with two colors border

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #168005
    Nelson Hereveri
    Participant

    Hi there!

    Thanks for reading this. I just need to ask a question: There is a pure CSS method to generate this heading effect?

    <h1>Title of heading 1</h1>
    Red border with fixed blue portion width, like 20%.

    I try with :after pseudo-element, but no success.

    #168006
    Alen
    Participant
    #168010
    Nelson Hereveri
    Participant

    Yes! Work with a tag to convert into a block element, but I need without change HTML nor adding JS.

    Using two blocks not semantic and width limit wrap my title…

    #168011
    Paulie_D
    Member

    Work with a tag to convert into a block element, but I need without change HTML nor adding JS.

    It would have been helpful to mention that in your original post.

    Quite WHY you are imposing these limitation is odd, it seems unlikely that you would have access to the CSS file and not the HTML or JS.

    Still…http://codepen.io/Paulie-D/pen/amBhr

    #168348
    Nelson Hereveri
    Participant

    Perfect!
    Thanks for u help in this.

    And this limitations are normal in working enviroments, where some people or companies develop a software, and we just allowed to touch presentation in CSS, and not other files.

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