<section>
<button
type="button"
class="cs-btn"
onclick="document.querySelector('.cs-dialog').showModal();"
>
Open dialog
</button>
<dialog class="cs-dialog">
<form method="dialog">
<div class="heading">
<div class="wrapper">
<div class="icon"></div>
<p class="text">Options</p>
</div>
<button class="cs-btn close"></button>
</div>
<div class="content">
Lorem ipsum dolor sit amet consectetur adipisicing elit.
Distinctio ad suscipit aut asperiores laudantium error amet
sapiente et tempora numquam voluptates, velit sint quos
exercitationem unde obcaecati deleniti maiores officia natus
ipsa rem fuga commodi esse. Sunt repellendus ipsa illo a
accusantium consequuntur nihil dicta necessitatibus porro,
saepe, sed repudiandae!
</div>
<menu class="footer-btns">
<button class="cs-btn">OK</button>
<button class="cs-btn">Cancel</button>
<button class="cs-btn">Apply</button>
</menu>
</form>
</dialog>
</section>
Tooltip
Right
Tooltip text
Left
Tooltip text
Top
Tooltip text
Bottom
Tooltip text
<div class="cs-tooltip">
Right
<span style="left: 125%" class="text">Tooltip text</span>
</div>
<br />
<div class="cs-tooltip">
Left
<span style="right: 125%" class="text">Tooltip text</span>
</div>
<br />
<div class="cs-tooltip">
Top
<span
style="bottom: 100%; width: 100px; left: 50%; margin-left: -50px"
class="text"
>Tooltip text</span
>
<!-- set some width, and then set margin-left to be half of the width -->
</div>
<br />
<div class="cs-tooltip">
Bottom
<span
style="top: 100%; width: 100px; left: 50%; margin-left: -50px"
class="text"
>Tooltip text</span
>
<!-- set some width, and then set margin-left to be half of the width -->
</div>