How to draw a triangle in CSS ?

Answer Posted / hrpynux@gmail.com

Set a width and height of 0.
Set the border color to transparent.
Set the top border to 0.
Set the side borders to half the width.
Set the bottom border to have the full height.
Set a color for the bottom border.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is css flexbox?

291


Call an external style sheet and an external script located in the root folder called style.css and main.js with html.

301


What is grouping ?

339


What is box sizing in css3?

302


What is mixins in css?

267






What are the advantages of using css?

404


What is css code?

272


What is css selector?

316


What is margin collapse in css?

309


Explain the elements of css box model?

279


What is rule set in css?

247


Can you have a negative z index?

277


What are the advantages external style sheets?

300


Explain the concept of pseudo-elements in css.

267


What are the different ways to position a certain element in css?

298