-
Notifications
You must be signed in to change notification settings - Fork 195
Utility elements and classes
Luke Harris edited this page May 16, 2023
·
3 revisions
Add the current
class to the a
element to highlight it as the active navigation item.
<nav>
<ul>
<li><a class="current" href="#">Nav item</a></li>
</ul>
</nav>
Add the button
class to the a
element to make it look like a button instead of a link.
<a class="button" href="#">Click me</a>
Add the notice
class to the p
element to create a notice box, similar to the one on the Simple.css homepage.
<p class="notice">Important information</p>
Wrap elements with a figure
element to prevent tables and other fixed-width elements from overflowing their parent container.
<figure>
<table>
...
</table>
</figure>