<div class="cat-container">
<div class="cat-sidebar">
<div class="cat-tree">
<ul>
<li id='cat-2' class='cat-open'><span id='switch2'><i class="icon-" style="opacity:0.7"></i></span><a href="/index.php?r=site/categories&id=2"><span>Одежда, обувь и аксессуары</span></a>
<li id='cat-8' class=''><span id='switch8'><i class="icon-" style="opacity:0.2"></i></span><a href="/index.php?r=site/categories&id=8"><span>Косметика и парфюмерия</span></a>
<li id='cat-1' class=''><span id='switch1'><i class="icon-" style="opacity:0.7"></i></span><a href="/index.php?r=site/categories&id=1"><span>Товары для детей</span></a>
<li id='cat-3' class=''><span id='switch3'><i class="icon-" style="opacity:0.7"></i></span><a href="/index.php?r=site/categories&id=3"><span>Товары для дома</span></a>
<li id='cat-5' class=''><span id='switch5'><i class="icon-" style="opacity:0.2"></i></span><a href="/index.php?r=site/categories&id=5"><span>Продукты питания</span></a>
<li id='cat-7' class=''><span id='switch7'><i class="icon-" style="opacity:0.7"></i></span><a href="/index.php?r=site/categories&id=7"><span>Бытовая техника и электроника</span></a>
<li id='cat-4' class=''><span id='switch4'><i class="icon-" style="opacity:0.7"></i></span><a href="/index.php?r=site/categories&id=4"><span>Товары для туризма и отдыха</span></a>
<li id='cat-6' class=''><span id='switch6'><i class="icon-" style="opacity:0.2"></i></span><a href="/index.php?r=site/categories&id=6"><span>Автотовары</span></a>
<li id='cat-9' class=''><span id='switch9'><i class="icon-" style="opacity:0.2"></i></span><a href="/index.php?r=site/categories&id=9"><span>Товары для животных</span></a>
<li id='cat-11' class=''><span id='switch11'><i class="icon-" style="opacity:0.2"></i></span><a href="/index.php?r=site/categories&id=11"><span>Сувениры</span></a>
</ul>
</div>
</div>
<div id="cat-content">
<div class="purchase-item">
<h4><a href="http://www.ergerg.ru">erger</a></h4>
<div style="margin-right:10px;">
нет описания
</div>
<!-- если убрать следующий div, то блок имеет нормальную высоту -->
<div style="clear: both;margin-bottom: 10px;"></div>
</div>
<div class="purchase-item">
<h4><a href="http://www.off.ru">Тестовая1</a></h4>
<div style="margin-right:10px;">
нет описания
</div>
<div style="clear: both;margin-bottom: 10px;"></div>
</div>
<div class="purchase-item">
<h4><a href="http://www.off.ru/?t=159453">Тестовая 2</a></h4>
<div style="margin-right:10px;">
<img src="http://placehold.it/150x100" style="float: left;margin-right: 10px;"/>
описание описание описание описание описание описание
</div>
<!-- если убрать следующий div, то всё схлопывается и последующие блоки налезают на этот -->
<div style="clear: both;margin-bottom: 10px;"></div>
</div>
<div class="purchase-item">
<h4><a href="http://www.off.ru">Тестовая1</a></h4>
<div style="margin-right:10px;">
нет описания
</div>
<div style="clear: both;margin-bottom: 10px;"></div>
</div>
<div class="purchase-item">
<h4><a href="http://www.off.ru">Тестовая1</a></h4>
<div style="margin-right:10px;">
нет описания
</div>
<div style="clear: both;margin-bottom: 10px;"></div>
</div>
</div>
</div>
.cat-container {
clear: both;
margin: 0 auto;
}
.cat-sidebar {
margin-top: 12px;
float: left;
margin-right: 1.5%;
border: 1px solid #84f;
}
.cat-tree {
width: 250px;
overflow: auto;
}
#cat-content {
padding: 12px 0;
clear: right;
margin-right: 0 !important;
margin-left: 280px;
overflow:hidden;
}
.purchase-item {
margin-bottom:40px;
border: 1px solid #84f;
}
Output
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. |