I’m trying to make this arrow bigger, but when I added width and height, it seemed to crop it horizontally, any help will be appreciated.
border-top: 7px solid #ff6339;
border-left: 7px solid transparent;
border-right: 7px solid transparent;
Do away with the width and height you added.
Then just change the border sizes to suit your needs.
Borders are laid out with mitered corners, that’s what is making the arrow. Along with the side borders being transparent.
border-top: 12px solid #ff6339;
border-left: 12px solid transparent;
border-right: 12px solid transparent;
To show you how this is really working take a look at this following example.
The .arrow div is 1px wide and 40px tall, it has 30px borders that are different colors. (for the sharp pointed arrow in your case you need 0px width and height)
border-top: 30px solid red;
border-left: 30px solid yellow;
border-right: 30px solid lime;
border-bottom: 30px solid blue;
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.