HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<h1>How many ways can you put a box to the right</h1>
<p>Html used is as follows: <code><div class="wrap wrap1"><br>
<div class="box">1</div><br>
</div><br>
</code></p>
<hr>
<p>Example 1: <code>.wrap1 .box{margin:0 0 0 auto;}</code></p>
<div class="wrap wrap1">
<div class="box">1</div>
</div>
<p>Example 2: <code>.wrap2 .box{float:right;}</code></p>
<div class="wrap wrap2">
<div class="box">2</div>
</div>
<p>Example 3: <code>.wrap3 .box{margin-left:calc(100% - 50px)}</code></p>
<div class="wrap wrap3">
<div class="box">3</div>
</div>
<p>Example 4: <code>.wrap4{text-align:right}<br>
.wrap4 .box{display:inline-block}<br>
</code></p>
<div class="wrap wrap4">
<div class="box">4</div>
</div>
<p>Example 5: <code>.wrap5{position:relative;height:70px;}<br>
.wrap5 .box{position:absolute;right:10px;top:10px}<br>
</code></p>
<div class="wrap wrap5">
<div class="box">5</div>
</div>
<p>Example 6: <code>.wrap6 .box{position:relative;left:calc(100% - 50px);}<br>
</code></p>
<div class="wrap wrap6">
<div class="box">6</div>
</div>
<p>Example 7: <code>.wrap7 .box{margin:0 0 0 100%;transform:translateX(-100%);}<br>
</code></p>
<div class="wrap wrap7">
<div class="box">7</div>
</div>
<p>Example 8: <code>.wrap8 {transform:rotate(180deg);}<br>
.wrap8 .box {transform:rotate(180deg);}<br>
</code></p>
<div class="wrap wrap8">
<div class="box">8</div>
</div>
<p>Example 9: <code>.wrap9{text-align:right}<br>
.wrap9 .box{display:inline-table}<br>
</code></p>
<div class="wrap wrap9">
<div class="box">9</div>
</div>
<p>Example 10: <code>.wrap10{display:table;width:100%}<br>
.wrap10 .box{display:table-cell}<br>
.wrap10:before{content:"";display:table-cell}<br>
</code></p>
<div class="wrap wrap10">
<div class="box">10</div>
</div>
<p>Example 11: <code>.wrap11{display:flex;justify-content:flex-end}<br>
</code></p>
<div class="wrap wrap11">
<div class="box">11</div>
</div>
<p>Example 12: <code>.wrap12{display:flex;flex-direction:column}<br>
.wrap12 .box{align-self:flex-end}<br>
</code></p>
<div class="wrap wrap12">
<div class="box">12</div>
</div>
<p>Example 13: <code>.wrap13{direction:rtl}<br>
</code></p>
<div class="wrap wrap13">
<div class="box">13</div>
</div>
<p>Example 14 (Not working in IE and buggy in Chrome):<br> <code>.wrap14{text-indent:calc(100% - 50px);display:table;width:100%}<br>
.wrap14 .box{display:inline-block;text-indent:0;}<br>
</code></p>
<div class="wrap wrap14">
<div class="box">14</div>
</div>
<p>Example 15: <code>.wrap15:before {content: "";float: left;height: 50px;margin: 0 -50px 0 100%;}<br>
.wrap15 .box{overflow:hidden}<br>
</code></p>
<div class="wrap wrap15">
<div class="box">15</div>
</div>
<p>Example 16:<br>(Erik.J) <code>.wrap16{ display:table; width:100%; text-align:justify; line-height:0}<br>
.wrap16:before{ content:"\a0"}<br>
.wrap16:after{ display:inline-block; margin-right:100%; content:"\a0"}<br>
.wrap16 .box{ display:inline-block}
</code></p>
<div class="wrap wrap16">
<div class="box">16</div>
</div>
<p>Example 17:<br>(Erik.J) <code>.wrap17{ display:table; width:100%; text-align:center; word-spacing:-.5em}<br>
.wrap17:after{ display:inline-block; margin-right:-100%; content:"\a0"}<br>
.wrap17 .box{ display:inline-block; margin-right:50px}
</code></p>
<div class="wrap wrap17">
<div class="box">17</div>
</div>
<p>Example 18:<br>(Erik.J) <code>.wrap18{ display:table; width:100%; word-spacing:-.5em}<br>
.wrap18:before{ display:inline-block; margin-right:-50px; width:100%; content:""}<br>
.wrap18 .box{ display:inline-block}
</code></p>
<div class="wrap wrap18">
<div class="box">18</div>
</div>
<p>Example 19: Not working in IE11<br> <code>
.wrap19{position:relative;height:70px;text-align:right;}<br>
.wrap19:after{content:"";margin-right:50px;}<br>
.wrap19 .box{position:absolute;display:inline;}
</code></p>
<div class="wrap wrap19">
<div class="box">19</div>
</div>
<p>Example 20: Rain Lover<br> <code>
.wrap20 {display:flex; flex-direction:row-reverse;}
</code></p>
<div class="wrap wrap20">
<div class="box">20</div>
</div>
<p>Example 21: Rain Lover (only works at viewport widths)<br> <code>
.wrap21 {padding-left:calc(100% - 60px);max-width:none;}
</code></p>
<div class="wrap wrap21">
<div class="box">21</div>
</div>
<p>Example 22: Rain Lover<br> <code>
.wrap22 {text-align:right;}<br>
.wrap22 .box {display:inline-flex;justify-content:center;}
</code></p>
<div class="wrap wrap22">
<div class="box">22</div>
</div>
<p>Example 23: Erik J<br> <code>
.wrap23{ direction:rtl; white-space:nowrap}<br>
.wrap23:before{ float:left; margin-right:999em; content:"\a0"}<br>
.wrap23 .box{ display:inline-block}
</code></p>
<div class="wrap wrap23">
<div class="box">23</div>
</div>
<p>Example 24: Rain Lover<br> <code>
.wrap24 {display:flex;}<br>
.wrap24:before {content:""; flex:1;}
</code></p>
<div class="wrap wrap24">
<div class="box">24</div>
</div>
<p>Example 25: Grid layout (Chrome and Firefox only)<br> <code>
.wrap25{display:grid;justify-items:end}
</code></p>
<div class="wrap wrap25">
<div class="box">25</div>
</div>
<p>Example 26: Rain Lover<br> <code>
.wrap26:before {content:" "; margin: 0 -50px 0 100%;}<br>
.wrap26 .box {display:inline-block;}<br>
</code></p>
<div class="wrap wrap26">
<div class="box">26</div>
</div>
<p>Example 27: Rain Lover<br> <code>
.wrap27 {display:flex; justify-content:space-between;}<br>
.wrap27:before {content:"";}<br>
</code></p>
<div class="wrap wrap27">
<div class="box">27</div>
</div>
<p>Example 28: Rain Lover<br> <code>
.wrap28 {display:flex;}<br>
.wrap28:after {content:""; flex:1; order:-1;}<br>
</code></p>
<div class="wrap wrap28">
<div class="box">28</div>
</div>
<p>Example 29: Rain Lover (Not working in EDGE)<br> <code>
.wrap29 .box {position:-webkit-sticky; position:sticky; left:100%;}<br>
</code></p>
<div class="wrap wrap29">
<div class="box">29</div>
</div>
<p>Example 30: (Erik.J) <br><code>
.wrap30{ font-size:0}<br>
.wrap30:first-letter{ margin:0 -50px 0 100%}<br>
.wrap30:before{ content:"x"}<br>
.wrap30 .box{ display:inline-block}<br>
</code></p>
<div class="wrap wrap30">
<div class="box">30</div>
</div>
<p>Example 31: Rain Lover (viewport width only - 50px will need to increase to accommodate padding)<br> <code>
.wrap31 {border-left:calc(100vw - 50px) solid transparent;}
</code></p>
<div class="wrap wrap31">
<div class="box">31</div>
</div>
<p>Example 32: Rain Lover <br> <code>
.wrap32 {display:flex; flex-flow:column wrap-reverse;}
</code></p>
<div class="wrap wrap32">
<div class="box">32</div>
</div>
<p>Example 33: Erik_J <br> <code>
.wrap33{ columns:2 50vw; text-align:right;}<br>
.wrap33:before{ display:inline-block; content:"\a0"}<br>
.wrap33 .box{ display:inline-block}<br>
</code></p>
<div class="wrap wrap33">
<div class="box">33</div>
</div>
<p>Example 34: Rain Lover <br> <code>
.wrap34 {height:50px; display:flex; flex-flow:column wrap; align-content:flex-end;}<br>
.wrap34:before {content:"\00A0";}<br>
</code></p>
<div class="wrap wrap34">
<div class="box">34</div>
</div>
<p>Example 35: Rain Lover <br> <code>
.wrap35 {display:table;}<br>
.wrap35:before {content:""; display:table-cell; width:100%;}</br>
</code></p>
<div class="wrap wrap35">
<div class="box">35</div>
</div>
<p>Example 36: Erik_J <br> <code>
.wrap36{ text-align:center}<br>
.wrap36 .box{ margin-right:calc(-100% + 50px); display:inline-block}<br>
</code></p>
<div class="wrap wrap36">
<div class="box">36</div>
</div>
<p>Example 37: Erik_J <br> <code>
.wrap37:after{ float:left; margin:0 -50px 0 calc(100% - 1em); width:1em; content:"\a0"}<br>
.wrap37 .box{ display:inline-block}<br>
</code></p>
<div class="wrap wrap37">
<div class="box">37</div>
</div>
<p>Example 38: Rain Lover <br> <code>
.wrap38:after {content:"\00A0"; float:left; width:calc(100% - 50px);}<br>
.wrap38 .box {display:inline-block;}<br>
</code></p>
<div class="wrap wrap38">
<div class="box">38</div>
</div>
<p>Example 39: Rain Lover <br> <code>
.wrap39 {display:flex;}<br>
.wrap39:before {content:""; margin-right:auto;}<br>
</code></p>
<div class="wrap wrap39">
<div class="box">39</div>
</div>
<p>Example 40: Rain Lover (Not working in IE11) <br> <code>
.wrap40 {height:70px; text-align:right;}<br>
.wrap40 .box {position:absolute; display:inline;margin-left:-50px;}<br>
</code></p>
<div class="wrap wrap40">
<div class="box">40</div>
</div>
<p>Example 41: Rain Lover <br> <code>
.wrap41 {text-align:justify; text-align-last:right;}<br>
.wrap41 .box {display:inline-block;}<br>
</code></p>
<div class="wrap wrap41">
<div class="box">41</div>
</div>
<p>Example 42: Rain Lover <br> <code>
.wrap42 {display:flex;}<br>
.wrap42:before {content:""; margin: 0 -50px 0 100%;}<br>
</code></p>
<div class="wrap wrap42">
<div class="box">42</div>
</div>
<p>Example 43: Rain Lover <br> <code>
.wrap43 {display:flex;}<br>
.wrap43:before {content:""; width:100%;}<br>
.wrap43 .box {flex-shrink:0;}<br>
</code></p>
<div class="wrap wrap43">
<div class="box">43</div>
</div>
<p>Example 44: Rain Lover <br> <code>
.wrap44 {text-align:justify; text-align-last:justify;}<br>
.wrap44:before {content:"\00A0";}<br>
.wrap44 .box {display:inline-block;}<br>
</code></p>
<div class="wrap wrap44">
<div class="box">44</div>
</div>
<p>Example 45: Rain Lover (similar to #43) <br> <code>
.wrap45 {display:flex;}<br>
.wrap45:before {content:""; flex-basis:100%;}<br>
.wrap45 .box {flex-shrink:0;}<br>
</code></p>
<div class="wrap wrap45">
<div class="box">45</div>
</div>
<p>Example 46: Rain Lover (Not working MS Edge) <br> <code>
.wrap46 {text-align:end;}<br>
.wrap46 .box {display:inline-block;}<br>
</code></p>
<div class="wrap wrap46">
<div class="box">46</div>
</div>
<p>Example 47: ME (Just for fun) <br> <code>
.wrap47 .box {display:none}<br>
.wrap47:after { content:"47";display:block; width:50px; height:50px; line-height:50px; background:red; text-align:center; font-size:20px; font-weight:bold;color:#fff; margin-left:auto;}<br>
</code></p>
<div class="wrap wrap47">
<div class="box">47</div>
</div>
<p>Example 48: Erik_J (Just for fun) <br> <code>
.wrap48{ max-width:none}<br>
.wrap48 .box{ visibility:hidden; position:relative}<br>
.wrap48 .box:after{ visibility:visible; position:absolute; top:0; bottom:0; left:calc(100vw - 100% - 37px); width:100%; background:inherit; content:"48"}<br>
</code></p>
<div class="wrap wrap48">
<div class="box">48</div>
</div>
<p>Example 49: Erik_J ( Chrome 42 and Firefox 53) <br> <code>
.wrap49{ display:table; width:100%; max-width:none; white-space:nowrap; tab-size:calc(100vw - 87px);}<br>
.wrap49:before{ white-space:pre; content:"\09"}<br>
.wrap49 .box{ display:inline-block}</br>
</code></p>
<div class="wrap wrap49">
<div class="box">49</div>
</div>
<p>Example 50: Erik_J (Just because he can) <br> <code>
.wrap50{ max-width:none; word-spacing:calc(100vw - 87px); font-size:0}<br>
.wrap50:before{ display:inline-block; content:""}<br< .wrap50 .box{ display:inline-block}<br>
</code></p>
<div class="wrap wrap50">
<div class="box">50</div>
</div>
<p>Example 51: Rain Lover <br> <code>
.wrap51 {display:flex;}<br>
.wrap51:before {content:"\00A0"; text-indent:99999ch; overflow:hidden;}<br>
.wrap51 .box {min-width:50px;}
<br>
</code></p>
<div class="wrap wrap51">
<div class="box">51</div>
</div>
<p>Example 52: Rain Lover (Just for fun) <br> <code>
.wrap52 .box {visibility:hidden; width:inherit;}<br>
.wrap52 .box:after {visibility:visible; content:"52"; float:right; width:50px; height:inherit; background:inherit;}
<br>
</code></p>
<div class="wrap wrap52">
<div class="box">52</div>
</div>
<p>Example 53: RalphM : Grid<br>
<code>.wrap53 {display: grid; grid-template-columns: 1fr 50px; grid-template-areas: ". box";}<br>
.wrap53 .box {grid-area: box;}</code>
</p>
<div class="wrap wrap53">
<div class="box">53</div>
</div>
<p>Example 54: RalphM : Grid<br>
<code>.wrap54 {display: grid; grid-template-columns: 1fr;}<br>
.wrap54 .box {grid-column: -1;}</code>
</p>
<div class="wrap wrap54">
<div class="box">54</div>
</div>
<p>Example 55: RalphM : Grid<br>
<code>.wrap55 {display: grid; grid-template-columns: 1fr;}<br>
.wrap55 .box {margin-left: auto;}</code>
</p>
<div class="wrap wrap55">
<div class="box">55</div>
</div>
<p>Example 56: RalphM : (simpler version of 39): Flex<br>
<code>.wrap56 {display: flex;}<br>
.wrap56 .box {margin-left: auto;}</code>
</p>
<div class="wrap wrap56">
<div class="box">56</div>
</div>
<p>Example 57: List-item<br>
<code>.wrap57 {display: list-item;}<br>
.wrap57 .box {margin-left: auto;}</code>
</p>
<div class="wrap wrap57">
<div class="box">57</div>
</div>
<p>Example 58: flow-root<br>
<code>.wrap58 {display: flow-root;}<br>
.wrap58 .box {margin-left: auto;}</code>
</p>
<div class="wrap wrap58">
<div class="box">58</div>
</div>
<p>Can you think of any more? </p>
html,
body {
margin: 0;
padding: 0;
}
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
p,
h1 {
margin: 20px auto 0;
max-width: 940px;
font-weight: bold;
}
h1 {
text-align: center;
}
code {
display: inline-block;
vertical-align: top;
font-weight: normal;
}
hr {
max-width: 980px;
margin: 20px auto;
border: none;
border-top: 1px dotted #000;
background: transparent;
}
/* demo begins */
.wrap {
max-width: 960px;
background: #f9f9f9;
padding: 10px;
margin: 10px auto;
overflow: hidden;
}
.box {
width: 50px;
height: 50px;
line-height: 50px;
background: red;
text-align: center;
font-size: 20px;
font-weight: bold;
color: #fff;
}
/* magic happens here */
.wrap1 .box {
margin: 0 0 0 auto;
}
.wrap2 .box {
float: right;
}
.wrap3 .box {
margin-left: calc(100% - 50px);
}
.wrap4 {
text-align: right;
}
.wrap4 .box {
display: inline-block;
}
.wrap5 {
position: relative;
height: 70px;
}
.wrap5 .box {
position: absolute;
right: 10px;
top: 10px;
}
.wrap6 .box {
position: relative;
left: calc(100% - 50px);
}
.wrap7 .box {
margin: 0 0 0 100%;
transform: translateX(-100%);
}
.wrap8 {
transform: rotate(180deg);
}
.wrap8 .box {
transform: rotate(180deg);
}
.wrap9 {
text-align: right;
}
.wrap9 .box {
display: inline-table;
}
.wrap10 {
display: table;
width: 100%;
}
.wrap10 .box {
display: table-cell;
}
.wrap10:before {
content: "";
display: table-cell;
}
.wrap11 {
display: flex;
justify-content: flex-end;
}
.wrap12 {
display: flex;
flex-direction: column;
}
.wrap12 .box {
align-self: flex-end;
}
.wrap13 {
direction: rtl;
}
.wrap14 {
text-indent: calc(100% - 50px);
display: table;
width: 100%;
}
.wrap14 .box {
display: inline-block;
text-indent: 0;
}
.wrap15:before {
content: "";
float: left;
height: 50px;
margin: 0 -50px 0 100%;
}
.wrap15 .box {
overflow: hidden;
}
/* Erik.J examples 16 - 18 */
.wrap16 {
display: table;
width: 100%;
text-align: justify;
line-height: 0;
}
.wrap16:before {
content: "\a0";
}
.wrap16:after {
display: inline-block;
margin-right: 100%;
content: "\a0";
}
.wrap16 .box {
display: inline-block;
}
.wrap17 {
display: table;
width: 100%;
text-align: center;
word-spacing: -0.5em;
}
.wrap17:after {
display: inline-block;
margin-right: -100%;
content: "\a0";
}
.wrap17 .box {
display: inline-block;
margin-right: 50px;
}
.wrap18 {
display: table;
width: 100%;
word-spacing: -0.5em;
}
.wrap18:before {
display: inline-block;
margin-right: -50px;
width: 100%;
content: "";
}
.wrap18 .box {
display: inline-block;
}
/* extra one from me */
.wrap19 {
position: relative;
height: 70px;
text-align: right;
}
.wrap19:after {
content: "";
margin-right: 50px;
}
.wrap19 .box {
position: absolute;
display: inline;
}
/* end magic */
/* from rain lover */
.wrap20 {
display: flex;
flex-direction: row-reverse;
}
.wrap21 {
padding-left: calc(100% - 60px);
max-width: none;
}
.wrap22 {
text-align: right;
}
.wrap22 .box {
display: inline-flex;
justify-content: center;
}
/* from Erik J again */
/* reversed CSS Quiz solution */
.wrap23 {
direction: rtl;
white-space: nowrap;
}
.wrap23:before {
float: left;
margin-right: 999em;
content: "\a0";
}
.wrap23 .box {
display: inline-block;
}
.wrap24 {
display: flex;
}
.wrap24:before {
content: "";
flex: 1;
}
/* from rain lover */
/* CSS grid layout */
.wrap25 {
display: grid;
justify-items: end;
}
/* Rain lover */
.wrap26:before {
content: " ";
margin: 0 -50px 0 100%;
}
.wrap26 .box {
display: inline-block;
}
.wrap27 {
display: flex;
justify-content: space-between;
}
.wrap27:before {
content: "";
}
.wrap28 {
display: flex;
}
.wrap28:after {
content: "";
flex: 1;
order: -1;
}
.wrap29 {
overflow: visible;
}
.wrap29 .box {
position: -webkit-sticky;
position: sticky;
left: 100%;
}
/* Erik J */
.wrap30 {
font-size: 0;
}
.wrap30:first-letter {
margin: 0 -50px 0 100%;
}
.wrap30:before {
content: "x";
}
.wrap30 .box {
display: inline-block;
}
/* Rain Lover */
.wrap31 {
border-left: calc(100vw - 87px) solid transparent;
max-width: none;
}
.wrap32 {
display: flex;
flex-flow: column wrap-reverse;
}
/* Erik J */
.wrap33 {
columns: 2 50vw;
text-align: right;
}
.wrap33:before {
display: inline-block;
content: "\a0";
}
.wrap33 .box {
display: inline-block;
}
/* rain lover */
.wrap34 {
height: 70px;
display: flex;
flex-flow: column wrap;
align-content: flex-end;
}
.wrap34:before {
content: "\00A0";
}
.wrap35 {
display: table;
}
.wrap35:before {
content: "";
display: table-cell;
width: 100%;
}
/* erik_J */
.wrap36 {
text-align: center;
}
.wrap36 .box {
margin-right: calc(-100% + 50px);
display: inline-block;
}
.wrap37:after {
float: left;
margin: 0 -50px 0 calc(100% - 1em);
width: 1em;
content: "\a0";
}
.wrap37 .box {
display: inline-block;
}
/* rain lover */
.wrap38:after {
content: "\00A0";
float: left;
width: calc(100% - 50px);
}
.wrap38 .box {
display: inline-block;
}
.wrap39 {
display: flex;
}
.wrap39:before {
content: "";
margin-right: auto;
}
.wrap40 {
height: 70px;
text-align: right;
}
.wrap40 .box {
position: absolute;
display: inline;
margin-left: -50px;
}
.wrap41 {
text-align: justify;
text-align-last: right;
}
.wrap41 .box {
display: inline-block;
text-align-last: center;
}
.wrap42 {
display: flex;
}
.wrap42:before {
content: "";
margin: 0 -50px 0 100%;
}
.wrap43 {
display: flex;
}
.wrap43:before {
content: "";
width: 100%;
}
.wrap43 .box {
flex-shrink: 0;
}
.wrap44 {
text-align: justify;
text-align-last: justify;
}
.wrap44:before {
content: "\00A0";
}
.wrap44 .box {
display: inline-block;
text-align-last: center;
}
.wrap45 {
display: flex;
}
.wrap45:before {
content: "";
flex-basis: 100%;
}
.wrap45 .box {
flex-shrink: 0;
}
.wrap46 {
text-align: end;
}
.wrap46 .box {
display: inline-block;
}
/* me */
.wrap47 .box {
display: none;
}
.wrap47:after {
content: "47";
display: block;
width: 50px;
height: 50px;
line-height: 50px;
background: red;
text-align: center;
font-size: 20px;
font-weight: bold;
color: #fff;
margin-left: auto;
}
/* Erik J */
.wrap48 {
max-width: none;
}
.wrap48 .box {
visibility: hidden;
position: relative;
}
.wrap48 .box:after {
visibility: visible;
position: absolute;
top: 0;
bottom: 0;
left: calc(100vw - 100% - 37px);
width: 100%;
background: inherit;
content: "48";
}
/* Chrome 42 and Firefox 53 */
.wrap49 {
display: table;
width: 100%;
max-width: none;
white-space: nowrap;
tab-size: calc(100vw - 87px);
}
.wrap49:before {
white-space: pre;
content: "\09";
}
.wrap49 .box {
display: inline-block;
}
.wrap50 {
max-width: none;
word-spacing: calc(100vw - 87px);
font-size: 0;
}
.wrap50:before {
display: inline-block;
content: "";
}
.wrap50 .box {
display: inline-block;
}
/* Rain Lover */
.wrap51 {
display: flex;
}
.wrap51:before {
content: "\00A0";
text-indent: 99999ch;
overflow: hidden;
}
.wrap51 .box {
min-width: 50px;
}
.wrap52 .box {
visibility: hidden;
width: inherit;
}
.wrap52 .box:after {
visibility: visible;
content: "52";
float: right;
width: 50px;
height: inherit;
background: inherit;
}
.wrap53 {
display: grid;
grid-template-columns: 1fr 50px;
grid-template-areas: ". box";
}
.wrap53 .box {
grid-area: box;
}
.wrap54 {
display: grid;
grid-template-columns: 1fr;
}
.wrap54 .box {
grid-column: -1;
}
.wrap55 {
display: grid;
grid-template-columns: 1fr;
}
.wrap55 .box {
margin-left: auto;
}
.wrap56 {
display: flex;
}
.wrap56 .box {
margin-left: auto;
}
.wrap57 {
display: list-item;
}
.wrap57 .box {
margin-left: auto;
}
.wrap57 {
display: flow-root;
}
.wrap58 .box {
margin-left: auto;
}
Also see: Tab Triggers