Forums

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

Home Forums CSS Single bar img

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #42968
    medavidcook
    Member

    Hey

    I am trying to do something like in the template

    http://psdstyle.net/2011/04/04/perpetual-redux-free-psd-website-layout/

    if you look under the header there is a multi colour line, i have designed mine i got it at 150×20 its made up of 3 colours i am struggling implementing this into css.

    Anyone have any ideas.

    thanks

    #126061
    Paulie_D
    Member

    Use a repeating background image….simples.

    #126120
    medavidcook
    Member

    basically i had my css like this
    .hr {background: *image* repeat; width: 100%; }

    but when i do that it puts the image at like 200%

    any ideas.

    #126121
    Andy Howells
    Participant

    Please create a [codepen](http://codepen.io/pen)

    #126122
    medavidcook
    Member

    ok i will do it when i get home, as not got access to the img file atm.

    #126124
    Paulie_D
    Member

    If it’s at the bottom of your header you can just do something like this: http://codepen.io/Paulie-D/pen/ajCqz

    #126125
    medavidcook
    Member

    Hi Paulie_D

    Thats exactly what i was looking for however between the img and the header, i would like a little white border, so dont think this will work.

    #126126
    wolfcry911
    Participant

    just add a white border to the top of the image, or add the border with a pseudo element

    #126146
    Paulie_D
    Member

    >just add a white border to the top of the image

    This…simples.

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