treehouse : what would you like to learn today?
Web Design Web Development iOS Development

how to write a shorthand for border:

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

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


    i made this
    border:0 1px 1px 1px solid #BBB;


    but it not works.
  • I've seen this link already. but there is no much info .


    i want to know this is not working

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


    this is not working too

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


    and this too

    border :1px solid #BBB;
    border-top:0;
    border-right:1px;
    border-bottom:1px ;
    border-left:1px
  • 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;