Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's 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 it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

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.

+ add another resource

Packages

Add Packages

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.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="televizia">
                <div class="bok1"></div>
                <div class="bok2"></div>
                <div class="ciapka">
                    <div class="stlp1"><div class="in"></div></div>
                    <div class="stlpLom2"></div>
                    <div class="stlp2"><div class="in"></div></div>
                    <div class="stlpLom3"></div>
                    <div class="stlp3"><div class="in"></div></div>
                    <div class="stlpLom4"></div>
                    <div class="stlp4"><div class="in"></div></div>
                    <div class="stlpLom5"></div>
                    <div class="stlp5"><div class="in"></div></div>
                </div>
                <div class="teloHore">
                    <table>
                        <tr class="poschodie1"><td class="okno1"></td><td class="okno2"></td><td class="okno3"></td><td class="okno4"></td><td class="okno5"></td><td class="okno6"></td><td class="okno7"></td><td class="okno8"></td><td class="okno9"></td><td class="okno10"></td><td class="okno11"></td><td class="okno12"></td><td class="okno13"></td><td class="okno14"></td><td class="okno15"></td><td class="okno16"></td><td class="okno17"></td><td class="okno18"></td><td class="okno19"></td><td class="okno20"></td></tr>
                        <tr class="poschodie2"><td class="okno1"></td><td class="okno2"></td><td class="okno3"></td><td class="okno4"></td><td class="okno5"></td><td class="okno6"></td><td class="okno7"></td><td class="okno8"></td><td class="okno9"></td><td class="okno10"></td><td class="okno11"></td><td class="okno12"></td><td class="okno13"></td><td class="okno14"></td><td class="okno15"></td><td class="okno16"></td><td class="okno17"></td><td class="okno18"></td><td class="okno19"></td><td class="okno20"></td></tr>
                        <tr class="poschodie3"><td class="okno1"></td><td class="okno2"></td><td class="okno3"></td><td class="okno4"></td><td class="okno5"></td><td class="okno6"></td><td class="okno7"></td><td class="okno8"></td><td class="okno9"></td><td class="okno10"></td><td class="okno11"></td><td class="okno12"></td><td class="okno13"></td><td class="okno14"></td><td class="okno15"></td><td class="okno16"></td><td class="okno17"></td><td class="okno18"></td><td class="okno19"></td><td class="okno20"></td></tr>
                        <tr class="poschodie4"><td class="okno1"></td><td class="okno2"></td><td class="okno3"></td><td class="okno4"></td><td class="okno5"></td><td class="okno6"></td><td class="okno7"></td><td class="okno8"></td><td class="okno9"></td><td class="okno10"></td><td class="okno11"></td><td class="okno12"></td><td class="okno13"></td><td class="okno14"></td><td class="okno15"></td><td class="okno16"></td><td class="okno17"></td><td class="okno18"></td><td class="okno19"></td><td class="okno20"></td></tr>
                        <tr class="poschodie5"><td class="okno1"></td><td class="okno2"></td><td class="okno3"></td><td class="okno4"></td><td class="okno5"></td><td class="okno6"></td><td class="okno7"></td><td class="okno8"></td><td class="okno9"></td><td class="okno10"></td><td class="okno11"></td><td class="okno12"></td><td class="okno13"></td><td class="okno14"></td><td class="okno15"></td><td class="okno16"></td><td class="okno17"></td><td class="okno18"></td><td class="okno19"></td><td class="okno20"></td></tr>

                        <tr class="poschodie6"><td class="okno1"></td><td class="okno2"></td><td class="okno3"></td><td class="okno4"></td><td class="okno5"></td><td class="okno6"></td><td class="okno7"></td><td class="okno8"></td><td class="okno9"></td><td class="okno10"></td><td class="okno11"></td><td class="okno12"></td><td class="okno13"></td><td class="okno14"></td><td class="okno15"></td><td class="okno16"></td><td class="okno17"></td><td class="okno18"></td><td class="okno19"></td><td class="okno20"></td></tr>
                        <tr class="poschodie7"><td class="okno1"></td><td class="okno2"></td><td class="okno3"></td><td class="okno4"></td><td class="okno5"></td><td class="okno6"></td><td class="okno7"></td><td class="okno8"></td><td class="okno9"></td><td class="okno10"></td><td class="okno11"></td><td class="okno12"></td><td class="okno13"></td><td class="okno14"></td><td class="okno15"></td><td class="okno16"></td><td class="okno17"></td><td class="okno18"></td><td class="okno19"></td><td class="okno20"></td></tr>
                        <tr class="poschodie8"><td class="okno1"></td><td class="okno2"></td><td class="okno3"></td><td class="okno4"></td><td class="okno5"></td><td class="okno6"></td><td class="okno7"></td><td class="okno8"></td><td class="okno9"></td><td class="okno10"></td><td class="okno11"></td><td class="okno12"></td><td class="okno13"></td><td class="okno14"></td><td class="okno15"></td><td class="okno16"></td><td class="okno17"></td><td class="okno18"></td><td class="okno19"></td><td class="okno20"></td></tr>
                        <tr class="poschodie9"><td class="okno1"></td><td class="okno2"></td><td class="okno3"></td><td class="okno4"></td><td class="okno5"></td><td class="okno6"></td><td class="okno7"></td><td class="okno8"></td><td class="okno9"></td><td class="okno10"></td><td class="okno11"></td><td class="okno12"></td><td class="okno13"></td><td class="okno14"></td><td class="okno15"></td><td class="okno16"></td><td class="okno17"></td><td class="okno18"></td><td class="okno19"></td><td class="okno20"></td></tr>
                        <tr class="poschodie10"><td class="okno1"></td><td class="okno2"></td><td class="okno3"></td><td class="okno4"></td><td class="okno5"></td><td class="okno6"></td><td class="okno7"></td><td class="okno8"></td><td class="okno9"></td><td class="okno10"></td><td class="okno11"></td><td class="okno12"></td><td class="okno13"></td><td class="okno14"></td><td class="okno15"></td><td class="okno16"></td><td class="okno17"></td><td class="okno18"></td><td class="okno19"></td><td class="okno20"></td></tr>

                        <tr class="poschodie11"><td class="okno1"></td><td class="okno2"></td><td class="okno3"></td><td class="okno4"></td><td class="okno5"></td><td class="okno6"></td><td class="okno7"></td><td class="okno8"></td><td class="okno9"></td><td class="okno10"></td><td class="okno11"></td><td class="okno12"></td><td class="okno13"></td><td class="okno14"></td><td class="okno15"></td><td class="okno16"></td><td class="okno17"></td><td class="okno18"></td><td class="okno19"></td><td class="okno20"></td></tr>
                        <tr class="poschodie12"><td class="okno1"></td><td class="okno2"></td><td class="okno3"></td><td class="okno4"></td><td class="okno5"></td><td class="okno6"></td><td class="okno7"></td><td class="okno8"></td><td class="okno9"></td><td class="okno10"></td><td class="okno11"></td><td class="okno12"></td><td class="okno13"></td><td class="okno14"></td><td class="okno15"></td><td class="okno16"></td><td class="okno17"></td><td class="okno18"></td><td class="okno19"></td><td class="okno20"></td></tr>
                        <tr class="poschodie13"><td class="okno1"></td><td class="okno2"></td><td class="okno3"></td><td class="okno4"></td><td class="okno5"></td><td class="okno6"></td><td class="okno7"></td><td class="okno8"></td><td class="okno9"></td><td class="okno10"></td><td class="okno11"></td><td class="okno12"></td><td class="okno13"></td><td class="okno14"></td><td class="okno15"></td><td class="okno16"></td><td class="okno17"></td><td class="okno18"></td><td class="okno19"></td><td class="okno20"></td></tr>
                        <tr class="poschodie14"><td class="okno1"></td><td class="okno2"></td><td class="okno3"></td><td class="okno4"></td><td class="okno5"></td><td class="okno6"></td><td class="okno7"></td><td class="okno8"></td><td class="okno9"></td><td class="okno10"></td><td class="okno11"></td><td class="okno12"></td><td class="okno13"></td><td class="okno14"></td><td class="okno15"></td><td class="okno16"></td><td class="okno17"></td><td class="okno18"></td><td class="okno19"></td><td class="okno20"></td></tr>
                    </table>
                </div>
                <div class="opasok"></div>
                <div class="teloDole">
                    <table>
                        <tr class="poschodie1"><td class="okno1"></td><td class="okno2"></td><td class="okno3"></td><td class="okno4"></td><td class="okno5"></td><td class="okno6"></td><td class="okno7"></td><td class="okno8"></td><td class="okno9"></td><td class="okno10"></td><td class="okno11"></td><td class="okno12"></td><td class="okno13"></td><td class="okno14"></td><td class="okno15"></td><td class="okno16"></td><td class="okno17"></td><td class="okno18"></td><td class="okno19"></td><td class="okno20"></td></tr>
                        <tr class="poschodie2"><td class="okno1"></td><td class="okno2"></td><td class="okno3"></td><td class="okno4"></td><td class="okno5"></td><td class="okno6"></td><td class="okno7"></td><td class="okno8"></td><td class="okno9"></td><td class="okno10"></td><td class="okno11"></td><td class="okno12"></td><td class="okno13"></td><td class="okno14"></td><td class="okno15"></td><td class="okno16"></td><td class="okno17"></td><td class="okno18"></td><td class="okno19"></td><td class="okno20"></td></tr>
                        <tr class="poschodie3"><td class="okno1"></td><td class="okno2"></td><td class="okno3"></td><td class="okno4"></td><td class="okno5"></td><td class="okno6"></td><td class="okno7"></td><td class="okno8"></td><td class="okno9"></td><td class="okno10"></td><td class="okno11"></td><td class="okno12"></td><td class="okno13"></td><td class="okno14"></td><td class="okno15"></td><td class="okno16"></td><td class="okno17"></td><td class="okno18"></td><td class="okno19"></td><td class="okno20"></td></tr>
                        <tr class="poschodie4"><td class="okno1"></td><td class="okno2"></td><td class="okno3"></td><td class="okno4"></td><td class="okno5"></td><td class="okno6"></td><td class="okno7"></td><td class="okno8"></td><td class="okno9"></td><td class="okno10"></td><td class="okno11"></td><td class="okno12"></td><td class="okno13"></td><td class="okno14"></td><td class="okno15"></td><td class="okno16"></td><td class="okno17"></td><td class="okno18"></td><td class="okno19"></td><td class="okno20"></td></tr>
                        <tr class="poschodie5"><td class="okno1"></td><td class="okno2"></td><td class="okno3"></td><td class="okno4"></td><td class="okno5"></td><td class="okno6"></td><td class="okno7"></td><td class="okno8"></td><td class="okno9"></td><td class="okno10"></td><td class="okno11"></td><td class="okno12"></td><td class="okno13"></td><td class="okno14"></td><td class="okno15"></td><td class="okno16"></td><td class="okno17"></td><td class="okno18"></td><td class="okno19"></td><td class="okno20"></td></tr>

                        <tr class="poschodie6"><td class="okno1"></td><td class="okno2"></td><td class="okno3"></td><td class="okno4"></td><td class="okno5"></td><td class="okno6"></td><td class="okno7"></td><td class="okno8"></td><td class="okno9"></td><td class="okno10"></td><td class="okno11"></td><td class="okno12"></td><td class="okno13"></td><td class="okno14"></td><td class="okno15"></td><td class="okno16"></td><td class="okno17"></td><td class="okno18"></td><td class="okno19"></td><td class="okno20"></td></tr>
                        <tr class="poschodie7"><td class="okno1"></td><td class="okno2"></td><td class="okno3"></td><td class="okno4"></td><td class="okno5"></td><td class="okno6"></td><td class="okno7"></td><td class="okno8"></td><td class="okno9"></td><td class="okno10"></td><td class="okno11"></td><td class="okno12"></td><td class="okno13"></td><td class="okno14"></td><td class="okno15"></td><td class="okno16"></td><td class="okno17"></td><td class="okno18"></td><td class="okno19"></td><td class="okno20"></td></tr>
                        <tr class="poschodie8"><td class="okno1"></td><td class="okno2"></td><td class="okno3"></td><td class="okno4"></td><td class="okno5"></td><td class="okno6"></td><td class="okno7"></td><td class="okno8"></td><td class="okno9"></td><td class="okno10"></td><td class="okno11"></td><td class="okno12"></td><td class="okno13"></td><td class="okno14"></td><td class="okno15"></td><td class="okno16"></td><td class="okno17"></td><td class="okno18"></td><td class="okno19"></td><td class="okno20"></td></tr>
                        <tr class="poschodie9"><td class="okno1"></td><td class="okno2"></td><td class="okno3"></td><td class="okno4"></td><td class="okno5"></td><td class="okno6"></td><td class="okno7"></td><td class="okno8"></td><td class="okno9"></td><td class="okno10"></td><td class="okno11"></td><td class="okno12"></td><td class="okno13"></td><td class="okno14"></td><td class="okno15"></td><td class="okno16"></td><td class="okno17"></td><td class="okno18"></td><td class="okno19"></td><td class="okno20"></td></tr>
                        <tr class="poschodie10"><td class="okno1"></td><td class="okno2"></td><td class="okno3"></td><td class="okno4"></td><td class="okno5"></td><td class="okno6"></td><td class="okno7"></td><td class="okno8"></td><td class="okno9"></td><td class="okno10"></td><td class="okno11"></td><td class="okno12"></td><td class="okno13"></td><td class="okno14"></td><td class="okno15"></td><td class="okno16"></td><td class="okno17"></td><td class="okno18"></td><td class="okno19"></td><td class="okno20"></td></tr>
                    </table>
                </div>
                <div class="spodok"></div>
            </div>
              
            
!

CSS

              
                @import compass

$w: 520px
$h: 3/4*$w

$bokColor: #D8C8B5
$okrajColor: #e4e4e4
$oknoColor: #a8a8a8
$podkladColor: #9E9888
$opasokColor: #9Fa0a2
$spodokColor: darken($bokColor,5)
$ciapkaColor: $opasokColor
$ciapkaStredColor: #738B85

$wTelo: 0.3*$h
$hTeloHore: 0.46*$h
$wTeloHore: $wTelo
$hTeloDole: $hTeloHore * 10/14
$wTeloDole: $wTelo
$minHOkna : 10
$minWOkna : 8
$wCiapka: $wTelo
$hCiapka: 0.10*$h
$hOpasok: 0.05*$h
$wBok: 0.03*$w
$hBok: $hCiapka + $hTeloHore + $hOpasok +$hTeloDole
$hSpodok: $h - $hBok
$wSpodok: ($wTelo + 2*$wBok) * 1.1

.basic
	width: 0px
	height: 0px
	overflow: hidden
	position: absolute

.televizia
	width: $w
	height: $h
	overflow: hidden
	display: block
	position: absolute

	.bok1
		@extend .basic
		background: $bokColor
		height: $hBok
		width: $wBok
		top: 0
		left: ($w - $wTelo)/2 - $wBok
	.bok2 
		@extend .bok1
		right: ($w - $wTelo)/2 - $wBok
		left: auto
	.ciapka
		@extend .basic
		width: $wCiapka
		height: $hCiapka
		top: 0
		left: (($w - $wTelo)/2)

		@for $i from 1 through 5 
			.stlpLom#{$i}
				@extend .basic
				width: 0.025*$wCiapka
				left: ($i - 1) * 0.205*$wCiapka - 0.025*$wCiapka
				display: block
				height: $hCiapka
				background: $okrajColor
			.stlp#{$i}
				@extend .basic
				top: 0
				left: ($i - 1)*0.205*$wCiapka  
				width: 0.18*$wCiapka
				height: $hCiapka
				background: $ciapkaColor
				.in
					@extend .basic
					top: 0.4*$hCiapka
					height: 0.2*$hCiapka
					background: $ciapkaStredColor
					width: 0.18*$wCiapka
	.teloHore, .teloDole
		@extend .basic
		left: ($w - $wTelo)/2
		top: $hCiapka
		height: $hTeloHore
		width: $wTeloHore		
		table
			@extend .basic
			background: $podkladColor
			width: 100%
			height: $hTeloHore
		@for $j from 1 through 14 
			tr.poschodie#{$j}
				@if ($j*$minHOkna >= ($hTeloHore*2) )
					display: none
			@for $i from 1 through 20 
				tr.poschodie#{$j} td.okno#{$i}
					@if ($i*$minWOkna< ($wTeloHore*2) )
						background: lighten($oknoColor, random(12))
					@else 
						display: none
	.opasok
		@extend .basic
		height: $hOpasok
		width: $wTelo
		background: $opasokColor
		top: $hCiapka+$hTeloHore
		left: ($w - $wTelo)/2
	.teloDole
		@extend .basic
		top: $hCiapka + $hTeloHore + $hOpasok
		height: $hTeloDole
		table
			height: $hTeloDole
	.spodok
		@extend .basic
		height: $hSpodok
		width: $wSpodok
		bottom: 0
		left: ($w - $wSpodok)/2
		background: $spodokColor

              
            
!

JS

              
                
              
            
!
999px

Console