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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

            
              <h1>WebDesignerDepot Pagination</h1>
<nav class="pagination-container">
		<div class="pagination">
				<a class="pagination-newer" href="#">PREV</a>
				<span class="pagination-inner">
					<a href="#">1</a>
					<a class="pagination-active" href="#">2</a>
					<a href="#">3</a>
					<a href="#">4</a>
					<a href="#">5</a>
					<a href="#">6</a>
				</span>
				<a class="pagination-older" href="#">NEXT</a>
		</div>
</nav>
            
          
!

CSS

            
              @import url(https://fonts.googleapis.com/css?family=Roboto:400,300)

body
	color #2c3e50
	font-family 'Roboto', sans-serif
	font-weight 400
		
h1
	text-align center
	font-size 2.5rem
	font-weight 300
		
.pagination-container
	margin 100px auto
	text-align center
        
.pagination
	position relative
	a
		position relative
		display inline-block
		color #2c3e50
		text-decoration none
		font-size 1.2rem
		padding 8px 16px 10px						
		&:before
			z-index -1
			position absolute
			height 100%
			width 100%
			content ""
			top 0
			left 0
			background-color #2c3e50
			border-radius 24px
			transform scale(0)					
			transition all 0.2s
		&:hover,
		.pagination-active
			color #fff
			&:before
				transform scale(1)            
	.pagination-active
		color #fff
		&:before
			transform scale(1)

.pagination-newer
	margin-right 50px
    
.pagination-older
	margin-left 50px
		
            
          
!

JS

            
              $('.pagination-inner a').on('click', function() {
		$(this).siblings().removeClass('pagination-active');
		$(this).addClass('pagination-active');
})
            
          
!
999px

Console