Forums

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

Home Forums CSS Solid colour best practise

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30911
    sheepysheep60
    Participant

    Hi!!

    I’d like to use blocks of solid colour to use as spacers in my site. Would the best practise be

    1. Divs with background colour


     

    with css like


    .spacer-200
    {
    width:200px;
    height:10px;
    }

    .green
    {
    background-color:#0F0;
    }

    2. 1px (or some size) Images of set colour, ie:



    Or another method altogether?

    Thanks!

    Dave

    #70767
    TheDoc
    Member

    If they are just spacers, you can simply add a bottom-border to the div, as opposed to adding a whole other div as a separator.

    #70142
    sheepysheep60
    Participant

    Hiya, just realised I never replied. Thanks a lot buddy!!

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