Apologies for posing this question, but I am curious about customizing the width of a Parent Div
that is currently set to 100px
for both height and width, creating a square shape. Is it possible to adjust the width separately, such as top-width
and bottom-width
?
For instance, if we consider width
as representing left to right
and height
as representing top to bottom
, could we achieve a triangle
shape by setting top-width
to zero and bottom-width
to 100, while keeping the height
at 100? You can view an example of this concept in action on FIDDLE. I am interested in exploring similar custom shapes using CSS. Any suggestions or guidance on how to achieve this would be greatly appreciated.