This is my css triangle. When the size of the parent container, which has a height percentage setting, is resized, then the triangle must also resize.
How to change the following definition that may work?
If it does not work with general CSS, I am also open to CSS3.
.segmentTriangle{ width: 0px; height: 0px; position: relative; left: 0; top: 0; border-style: solid; border-width: 20px 20px 0 0; border-color: #000 transparent transparent transparent; }
UPDATE
This is part of my layout:
<div style="height: 100%;"> <div style="float: left; height: 100%;" id="triangleWrapper"> <div style="height: 100%;" class="segmentTriangle"></div> </div> <div class="fontsize" data-bind="text: replies, style: { height: heightFormatted, background: background }" style="width: 90%;padding-right:20px; height: 100%; text-align: right; float: left;"></div> </div>
css css3
Elisabeth
source share