Hi, I’m Brian Dys — a photographer from the inside looking out · a composer entangled in electronic music · a UX designer · a spouse, a parent, & everything in between.
Imagine this ombre cake:
It looks yummy and it has layers.
It is similar with active elements – they must have three levels for the purpose of CSS.
The first level is the textual element itself. The second level holds the function of the active element (e.g., <a> or <button>). The third level is for positioning. Initially, it appears that the default way to put it is this way:
And since this is for the purpose of CSS, we must impement Framing for the textual element and for positioning. These frames will act as hooks for CSS. Look at this example:
<div> <!– Frame for positioning –>
<span> <!– Frame for textual element –>
Here’s a demo to show a floated button:
[codepen_embed height=”266″ theme_id=”1820″ slug_hash=”VvyxJJ” default_tab=”result” user=”BrianSahagun”]See the Pen 3 Layers of an Active Element Article Entry Admin Actions by Brian Dys Sahagun (@BrianSahagun) on CodePen.[/codepen_embed]
Oh and by the way, here’s an ombre potato: