Forums

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

Home Forums CSS Please help me find a solution

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #262887
    Jeff_M
    Participant

    Hi.

    I want to make a back ground for my website and I want it to be two colors kind of like
    leniear gradient but I dont want it fade in.I just want two solid colors as a background
    like black and white.Please tell me how to do that on CSS if there is a way.

    Thanks.

    #262888
    Paulie_D
    Member

    You mean like this

    https://codepen.io/Paulie-D/pen/aVKYVm

      background:linear-gradient(red 50%, blue 50%);
    
    #262889
    Jeff_M
    Participant

    Yes!

    Thanks so much for your time.
    I owe you one

    Thanks Paulie

    #262890
    Jeff_M
    Participant
    #262895
    Shikkediel
    Participant

    Try starting the next color on the previous stop…

    background: linear-gradient(black 30%, white 30%);
    
    #262896
    Paulie_D
    Member

    You first color end value and end color start value have to be the same.

    I’m not sure which way you were going but…

    https://codepen.io/Paulie-D/pen/ZaRjzN

    #262920
    Jeff_M
    Participant

    Thanks Guys.

    :)

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