Hello, I am seeking a way to vertically center a CSS triangle/arrow on the right side of a div using pure CSS. Unfortunately, I can't include images due to my low reputation.
Currently, my code is not functioning properly and lacks cross-browser compatibility (e.g. Chrome displays the arrow at the top right, while Firefox squishes it outside the bounds).
This is my code:
HTML:
<div class="main-panel">
<nav class="left-panel">
<ul class="page-nav">
<li class="page-tab active"><a class="page-nav-link">Dashboard</a></li>
...truncated for brevity...
<li class="page-tab"><a class="page-nav-link">Very long element abcdefghijklmno</a></li>
</ul>
</nav>
<div class="right-panel">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit...truncated for brevity...
</p>
</div>
</div>
CSS:
* {
margin: 0;
padding: 0;
font-family: "Helvetica Neue",Helvetica,sans-serif;
...truncated for brevity...
}
JSFiddle link: http://jsfiddle.net/LvG2C/