Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
Like Tree1Likes
  • 1 Post By djitsz

Thread: css3 button angle question

  1. #1
    Senior Member
    Join Date
    Jan 2014
    Posts
    392
    Member #
    38172
    Liked
    4 times

    css3 button angle question

    Free Facebook Buttons

    how are the angles on the buttons to the left done? i googled but didnt find anything i could understand lol.

    also anyone know if thats a reputable site? i woul have downloaded something but its asking for my fb password

  2.  

  3. #2
    Member djitsz's Avatar
    Join Date
    Jan 2014
    Posts
    67
    Member #
    38199
    Liked
    17 times
    They are images (easy to check using Chrome's developer tools).

    Never give away your Facebook password to anything other than Facebook. Any website that asks you for a password that is not their own is by definition not reputable.

  4. #3
    Senior Member
    Join Date
    Jan 2014
    Posts
    392
    Member #
    38172
    Liked
    4 times
    i noticed after they are images, but can that be done with css? i think i remember using more than one box and angling one, then set to overflow transparent or something, that right?

  5. #4
    Member djitsz's Avatar
    Join Date
    Jan 2014
    Posts
    67
    Member #
    38199
    Liked
    17 times
    One way of doing it:

    Code:
    <!DOCTYPE html>
    <html>
    <head>
    <style>
    .container {
    box-sizing: border-box;
    padding: 5px;
    position: relative;
    background-color: #ff0000;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    height: 60px;
    width: 160px;
    }
    .container:after {
    content: "";
    position: absolute;
    right: -30px;
    top:0;
    border-left: 30px solid #ff0000;
    border-top: 30px solid transparent;
    border-bottom: 30px solid transparent;
    }
    </style>
    </head>
    <body>
    <div class="container">
    Testing
    </div>
    </body>
    css-arrow-test.PNG
    Ronald Roe likes this.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:49 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com