Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2013
    Posts
    80
    Thanks
    45
    Thanked 0 Times in 0 Posts

    Triangle in css, need help please

    basically i found a tutorial on making a triangle in css, which looked pretty easy, code itself is easy as hell.

    the problem is i cant understand how it work

    somebody mind explaining.


    code and preview
    http://jsfiddle.net/zZymv/

  • #2
    Senior Coder
    Join Date
    Aug 2006
    Posts
    1,224
    Thanks
    10
    Thanked 269 Times in 268 Posts
    Change the css to this, I think it will be more clear:
    Code:
    #up-triangle{
    width:0px;
    height:0px;
    border-top:50px solid blue;
    border-left:50px solid red;
    border-right:50px solid green;
    border-bottom:50px solid black;
    }

  • Users who have thanked tracknut for this post:

    h123er2 (08-17-2013)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •