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="main-content">
	<div class="container">
     <div id="opening-hours">
			<div>
				<table>
					<thead>
						<tr>
							<th>Monday</th>
							<th>Tuesday</th>
							<th>Wednesday</th>
							<th>Thursday</th>
							<th>Friday</th>
							<th>Saturday</th>
							<th>Sunday</th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td><span>Open gym</span><br>07.00-10.00</td>
							<td><span>PT</span><br>07.00-18.30</td>
							<td><span>Open gym</span><br>07.00-10.00</td>
							<td><span>PT</span><br>07.00-18.00</td>
							<td><span>Open Gym</span><br>07.00-10.00</td>
							<td><span>Open Gym</span><br>10.00-12.00</td>
							<td class="closed"></td>
						</tr>
						<tr>
							<td><span>PT</span><br>10.00-17.00</td>
							<td><span>Circuits</span><br>18.30-19.30</td>
							<td><span>PT</span><br>10.00-16.30</td>
							<td><span>Circuits</span><br>18.00-19.00</td>
							<td><span>PT</span><br>10.00-18.00</td>
							<td class="closed"></td>
							<td class="closed"></td>
						</tr>
						<tr>
							<td><span>Open gym</span><br>17.00-20.30</td>
							<td><span>Open gym</span><br>19.30-20.30</td>
							<td><span>Open gym</span><br>17.30-20.30</td>
							<td><span>Open gym</span><br>19.00-20.30</td>
							<td class="closed"></td>
							<td class="closed"></td>
							<td class="closed"></td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
  </div>
</div>
              
            
!

CSS

              
                @import bourbon

$primary-color: #4444FF
$link-color: #0E5BE2

html, body
  position: relative
  display: table
  height: 100%
  width: 100%

body
  font-size: 14px

.container
  max-width: 1200px
  margin-left: auto
  margin-right: auto
  padding: 0 15px

#opening-hours
  position: relative
  padding: 40px 15px

  div

    @media only screen and (max-width: 775px)
      overflow-x: scroll
  
    table
      width: 100%
      margin: 0
      min-width: 745px
      border-collapse: collapse
      border-spacing: 0 !important

      thead tr th, tbody tr td
        padding: 0 7px
        text-align: center

      thead tr th
        background: $primary-color
        border: 1px solid $primary-color
        color: #FFF
        height: 60px
        width: 14.28571428571429%
        text-transform: uppercase
        font-weight: 900
        letter-spacing: .1em

      tbody tr td
        background: #FFF
        border: 1px solid #DFDFDF
        height: 80px
        width: 14.28571428571429%

      td span
        color: $link-color
        font-weight: 500

      .closed
        background: #AAA
        border: none

      tbody tr:nth-of-type(3) td:nth-of-type(5), tbody tr:nth-of-type(3) td:nth-of-type(6), tbody tr:nth-of-type(3) td:last-of-type
        border-bottom: 1px solid #999

      tbody tr:first-of-type td:last-of-type, tbody tr:nth-of-type(2) td:last-of-type, tbody tr:nth-of-type(3) td:last-of-type
        border-right: 1px solid #999
              
            
!

JS

              
                
              
            
!
999px

Console