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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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="test wordwrap">

				<div class="box">
					<h3 class="box_title">word-wrap:normal</h3>

					<div class="text" style="word-wrap:normal">
						<p class="txt">
							<strong class="point">non-CJK</strong> The snow glows white on the mountain <strong class="long"><em class="badge">[1]</em>dddddddddddddddddd</strong> tonight Not a footprint to be seen A kingdom of isolation and it looks like I'm the queen <strong class="long"><em class="badge">[2]</em>ddddddddLetitgoletitgoCan'tholditbackanymoreLetitgoletitgo</strong> The wind is howling like this swirling storm inside	Couldn't keep it in, heaven knows I've tried Don't let them in <strong class="long"><em class="badge">[3]</em>wwwhtat?is!this(HELLO)Number-123456789123456789123456789112345678912345678923456789</strong>
							tonight Not a footprint to be seen A kingdom of isolation and it looks like I'm the quee
						</p>

						<p class="txt">
							<strong class="long"><em class="badge">[4]</em>############# ########### #######################################################</strong><br>
							<strong class="long"><em class="badge">[4]</em>!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</strong><br>
							<strong class="long"><em class="badge">[4]</em>................. .............. ..................................................................................................................................</strong>
						</p>

						<p class="txt syllable">
							<strong class="point">CJK</strong> 얼굴 찌푸리지 말아요 모두가 힘들잖아요. 기쁨의 그 날 위해 함께 할 친구들이 있잖아요. 혼자라고 <strong class="long"><em class="badge">[1]</em>가나다라가가가가가가가가가가가가가가</strong> 느껴질 때면 주위를 둘러보세요.이렇게 많은 이들 모두가 나의 친구랍니다.
							<strong class="long"><em class="badge">[2]</em>가나다라한글자가공백도없이엄청나게길어서박스영역의가로 값보다길다길다길다</strong> 우리 가는 길이 결코 쉽지 않을꺼에요.
							때로는 모진 시련에 좌절도 하겠지만 우리의 친구들과 함께라면 두렵지 않아 <strong class="long"><em class="badge">[3]</em>가가단어가엄청길어서?그길이가!박스영역의@가로 값보다긴데문자열에(기호)가있다면어떻게될까</strong> 우리 모두 함께 손을 잡고 원 투 원투 쓰리포
							<strong class="long"><em class="badge">[3]</em>*일일일본어-次の単語グレートブリテンおよび北アイルランド連合王国で本当に大国で本当に大</strong> <strong class="long"><em class="badge">[3]</em>*중중중국어-可可可可可可可可可可可可可可可可可可可可可能会受到会员资格限制。</strong>持续进行不当活动的用户,可能会受到会员资格限制。持续进行不当活动的用户,可能会受到会员资格限制。持续进行不当活动的用户,可能会受到会员资格限制。
						</p>
					</div>
				</div>

				<div class="box">
					<h3 class="box_title">word-wrap:break-word</h3>

					<div class="text" style="word-wrap:break-word;border-color: #ef1a45">
						<p class="txt">
							<strong class="point">non-CJK</strong> The snow glows white on the mountain <strong class="long"><em class="badge">[1]</em>dddddddddddddddddd</strong> tonight Not a footprint to be seen A kingdom of isolation and it looks like I'm the queen <strong class="long"><em class="badge">[2]</em>ddddddddLetitgoletitgoCan'tholditbackanymoreLetitgoletitgo</strong> The wind is howling like this swirling storm inside	Couldn't keep it in, heaven knows I've tried Don't let them in <strong class="long"><em class="badge">[3]</em>wwwhtat?is!this(HELLO)Number-123456789123456789123456789112345678912345678923456789</strong>
							tonight Not a footprint to be seen A kingdom of isolation and it looks like I'm the quee
						</p>

						<p class="txt">
							<strong class="long"><em class="badge">[4]</em>############# ########### #######################################################</strong><br>
							<strong class="long"><em class="badge">[4]</em>!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</strong><br>
							<strong class="long"><em class="badge">[4]</em>................. .............. ..................................................................................................................................</strong>
						</p>

						<p class="txt syllable">
							<strong class="point">CJK</strong> 얼굴 찌푸리지 말아요 모두가 힘들잖아요. 기쁨의 그 날 위해 함께 할 친구들이 있잖아요. 혼자라고 <strong class="long"><em class="badge">[1]</em>가나다라가가가가가가가가가가가가가가</strong> 느껴질 때면 주위를 둘러보세요.이렇게 많은 이들 모두가 나의 친구랍니다.
							<strong class="long"><em class="badge">[2]</em>가나다라한글자가공백도없이엄청나게길어서박스영역의가로 값보다길다길다길다</strong> 우리 가는 길이 결코 쉽지 않을꺼에요.
							때로는 모진 시련에 좌절도 하겠지만 우리의 친구들과 함께라면 두렵지 않아 <strong class="long"><em class="badge">[3]</em>가가단어가엄청길어서?그길이가!박스영역의@가로 값보다긴데문자열에(기호)가있다면어떻게될까</strong> 우리 모두 함께 손을 잡고 원 투 원투 쓰리포
							<strong class="long"><em class="badge">[3]</em>*일일일본어-次の単語グレートブリテンおよび北アイルランド連合王国で本当に大国で本当に大</strong> <strong class="long"><em class="badge">[3]</em>*중중중국어-可可可可可可可可可可可可可可可可可可可可可能会受到会员资格限制。</strong>持续进行不当活动的用户,可能会受到会员资格限制。持续进行不当活动的用户,可能会受到会员资格限制。持续进行不当活动的用户,可能会受到会员资格限制。
						</p>
					</div>
				</div>
			</div>
              
            
!

CSS

              
                
	/*
#d40000	(212,0,0)
#dcc7aa	(220,199,170)
#05407a	(5,64,122)
#03A9F4	(6,116,173)
#ef1a45	(239,26,69)
*/
	body, div, h1, h2, h3, p, table{
		margin: 0;
		padding: 0;
	}

	body{
		padding: 20px;
		font-size: 14px;
		line-height: 20px;
		font-family: '돋움', dotum, sans-serif;
	}

	table{
		border-collapse: collapse;
		text-align: center;
	}

	th,td{
		padding: 2px 0;
		border: 1px solid #000;
	}

	th{
		font-size: 14px;
	}

	em{
		font-style: normal;
	}
	.blind {
		visibility: hidden;
		overflow: hidden;
		position: absolute;
		top: 0;
		left: 0;
		width: 0;
		height: 0;
		font-size: 0;
		line-height: 0
	}
	.type_blank{
		font-weight: bold;
		color: #05407a;
	}
	.type_syllable{
		font-weight: bold;
		color: #03A9F4;
	}

	.info_box{
		margin:10px 0 0;
		padding: 10px;
		border: 1px dashed;
		color: #141414;
	}

	.info_box p{
		margin-top: 7px;
		line-height: 18px;
	}

	.frame_title{
		margin: 10px 0;
		padding: 20px 10px 15px;
		font-size: 20px;
		background-color: #05407a;
		color: #fff;
	}

	.frame_title .sub_txt{
		font-size: 14px;
		font-weight: normal;
	}

	.frame_sub_title{
		margin: 10px 0;
		padding: 10px 10px 7px;
		font-size: 16px;
		background-color: #ccc;
	}

	.tag{
		font-family: monospace;
		padding: 0 2px;
		background-color: #fbf0e0;
	}

	.text{
		border: 1px solid #ccc
	}

	.txt_point{
		font-weight: bold;
		background-color: yellow;
	}

	.txt_sub{
		padding: 10px;
		font-size: 12px;
		line-height: 1.25em;
		color: #999;
		background-color: #f1f1f1;
	}

	.point{
		color: #ef1a45;
	}

	.area{
		margin: 10px 0;
		padding: 10px;
		border: 1px dashed #000;
	}

	.area_title{
		margin: 10px 0;
		font-size: 14px;
	}

	.table_property{
		width: 100%;
	}

	.badge{
		display: inline-block;
		width: 18px;
		height: 18px;
		background-color: #05407a;
		color: #fff;
		text-align: center;
		font-style: normal;
	}

	.badge.case5{
		background-color: #ef1a45 !important;
	}

	.test{
		margin-top: 10px;;
	}

	.test:after{
		display: block;
		clear: both;
		content: '';
	}

	.test.wordwrap .badge{
		display: none;
	}

	.box{
		float: left;
		width: 300px;
		margin-right: 150px;
		margin-bottom: 10px;
		background-color: #f1f1f1;
	}

	.box .point{
		background-color: #fff;
		color: #FF9800;
	}

	.box_title{
		padding: 10px;
		text-align: left;
	}

	.long{
		position: relative;
		color: #d40000;
		font-weight: normal;
	}

	.long .badge{
		position: absolute;
		top: 0;
		left: 0;
	}

	.syllable .badge{
		background-color: #03A9F4;
	}

	.help{
		display: block;
		margin: 10px 0;
	}

	/* Examples */
	.example {
		margin: 1em 0;
		position: relative;
		clear: both;
		border-color: #E0CB52;
		background: #FCFAEE;
		padding: .5em;
		border-left-width: .5em;
		border-left-style: solid;
	}
	.example {
		counter-increment: exampleno;
	}
	.example:before {
		color: #B9AB2D;
		font-family: sans-serif;
	}
	.example:before {
		content: "Example";
		content: "Example " counter(exampleno);
		min-width: 7.5em;
		text-transform: uppercase;
		display: block;
	}

	.example p{
		margin-top: 1em;
		margin-bottom: 1em;
	}

	.example .figure{
		text-align: center;
		margin: 2.5em 0;
	}

	.example .css{
		color: #005a9c;
		font-family: inherit;
		font-size: 100%;
	}

	xmp{
		white-space: normal;
		font-size: 9px;
		border: 1px dotted #000;
	}

              
            
!

JS

              
                
              
            
!
999px

Console