Grow your CSS skills. Land your dream job.

how to write a shorthand for border:

  • # February 18, 2009 at 4:43 am

    I can write a shorthand for other elements efficiently. but this is confusing me

    Code:
    border-top:none;
    border-right:1px solid #BBB;
    border-bottom:1px solid #BBB;
    border-left:1px solid #BBB;

    i made this

    Code:
    border:0 1px 1px 1px solid #BBB;

    but it not works.

    Rob
    # February 18, 2009 at 4:55 am

    http://www.webcredible.co.uk/user-frien … ties.shtml

    skim down.

    # February 18, 2009 at 5:12 am

    I’ve seen this link already. but there is no much info .

    i want to know this is not working

    Code:
    border:0 1px 1px 1px solid #BBB;

    this is not working too

    Code:
    border :solid #BBB;
    border-top:0;
    border-right:1px;
    border-bottom:1px ;
    border-left:1px

    and this too

    Code:
    border :1px solid #BBB;
    border-top:0;
    border-right:1px;
    border-bottom:1px ;
    border-left:1px
    # February 18, 2009 at 11:15 am

    It doesn’t work because it’s wrong. Look at that page again.

    What you’re doing is super simple anyways:

    border: 1px solid #bbb;
    border-top:none;

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".