<style>
.divSquare {
width: 30%;
height: auto;
margin: 3px;
border: 2px solid black;
float: left;
padding: 3px;
border-radius: 0.75em;
background: #faedef;
display:inline;
}
#textobody mark {
font-family: lovely;
font-size: 1.5em;
border: 1px dashed black;
background-color: #f7c0d6;
text-shadow: -1px 0 #fff, 0 1px #000, 1px 0 #000, 0 -1px #fff, 0 0;
color: #b84154;
border-radius: 100%;
padding: 0 1px 0 1px;
}
#yay {
overflow: scroll;
width: auto;
height: 70px;
overflow-x: hidden;
text-align: left;
font-family: "Bai Jamjuree", sans-serif;
font-size: 1em;
line-height: 0.875;
font-weight: 500;
color: #000;
}
#yay a {
color: inherit;
text-decoration: dotted;
transition: color 0.25s ease;
}
#yay a:hover {
filter: blur(0.1rem);
transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
transition: all 0.5s ease-in-out;
transition: all 0.3s ease-in-out;
text-decoration: dotted;
color: #636363;
font-style: italic;
}
::scrollbar {
width: 0; /* remove scrollbar space */
background: transparent; /* to make scrollbar invisible */
}
::scrollbar-thumb {
background: transparent;
}
@font-face {
font-family: lovely;
src: url(https://dl.dropbox.com/s/xde2bkhiie1bm8r/LovelyRegular.ttf);
}
</style>
i figured out the code here https://stackoverflow.com/questions/24977634/css-float-4-divs-in-a-square-order-float-left-only-2-and-4-does-not-work
<br>
<link href="https://fonts.googleapis.com/css?family=Bai+Jamjuree:500,500italic" rel="stylesheet" type="text/css"/>
<div id="first" class="divSquare">
<div id="yay">
<div id="textobody"><br><mark>title 1 ✿</mark> you can adjust the height of box in #yay styles. . . first scrollable box <br><br /> <mark>links</mark> <a href="http://web.archive.org/web/20220409145042/https://youtube.com/c/naocrrds">youtube</a> <a href="https://twitter.com/naocrrds">naocrrds </a><br><br /> </div>
</div>
</div>
<div id="second" class="divSquare">
<div id="yay">
<div id="textobody"><br><mark>title 2</mark> second scrollable box <br><br /> </div>
</div>
</div>
<div style="clear:both"></div>
<div id="third" class="divSquare">
<div id="yay">
<div id="textobody"><br><mark>title 3</mark> third scrollable box<br><br /> </div>
</div>
</div>
<div id="fourth" class="divSquare">
<div id="yay">
<div id="textobody"><br><mark>title 4</mark> fourth scrollable box <br><br /> </div>
Output
300px
You can jump to the latest bin by adding /latest
to your URL
Keyboard Shortcuts
Shortcut | Action |
---|---|
ctrl + [num] | Toggle nth panel |
ctrl + 0 | Close focused panel |
ctrl + enter | Re-render output. If console visible: run JS in console |
Ctrl + l | Clear the console |
ctrl + / | Toggle comment on selected lines |
ctrl + ] | Indents selected lines |
ctrl + [ | Unindents selected lines |
tab | Code complete & Emmet expand |
ctrl + shift + L | Beautify code in active panel |
ctrl + s | Save & lock current Bin from further changes |
ctrl + shift + s | Open the share options |
ctrl + y | Archive Bin |
Complete list of JS Bin shortcuts |
JS Bin URLs
URL | Action |
---|---|
/ | Show the full rendered output. This content will update in real time as it's updated from the /edit url. |
/edit | Edit the current bin |
/watch | Follow a Code Casting session |
/embed | Create an embeddable version of the bin |
/latest | Load the very latest bin (/latest goes in place of the revision) |
/[username]/last | View the last edited bin for this user |
/[username]/last/edit | Edit the last edited bin for this user |
/[username]/last/watch | Follow the Code Casting session for the latest bin for this user |
/quiet | Remove analytics and edit button from rendered output |
.js | Load only the JavaScript for a bin |
.css | Load only the CSS for a bin |
Except for username prefixed urls, the url may start with http://jsbin.com/abc and the url fragments can be added to the url to view it differently. |