Myspace challenge (emo layout)

Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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="master-container">

  <!-- Main Header Begins -->
  <header class="main-header">
    <nav class="search-bar">

      <ul class="topnav home">
        <li><a href="#">MySpace.com</a></li>
        <li><a href="#">Home</a></li>
      </ul>

      <form>
        <label>
          The Web
          <input type="radio" name="search-type" value="the-web">
        </label>

        <label>
          MySpace
          <input type="radio" name="search-type" value="myspace">
        </label>

        <label>
          <input type="text" name="search">
        </label>

        <input class="submit-btn" type="submit" name="submit-button" value="Search">
      </form>

      <ul class="topnav signup">
        <li><a href="#">Help</a></li>
        <li><a href="#">SignUp</a></li>
      </ul>
    </nav>

    <nav class="navbar">
      <ul>
        <li><a href="#">Home</a></li>
        <li><a href="#">Browse</a></li>
        <li><a href="#">Search</a></li>
        <li><a href="#">Invite</a></li>
        <li><a href="#">Film</a></li>
        <li><a href="#">Mail</a></li>
        <li><a href="#">Blog</a></li>
        <li><a href="#">Favorites</a></li>
        <li><a href="#">Forum</a></li>
        <li><a href="#">Groups</a></li>
        <li><a href="#">Events</a></li>
        <li><a href="#">Videos</a></li>
        <li><a href="#">Music</a></li>
        <li><a href="#">Classifieds</a></li>
      </ul>
    </nav>

  </header>
  <!-- Main Header Ends -->

  <div class="page-content-container">

    <!-- Profile Sidebar Begins -->
    <aside class="profile-sidebar">

      <header>
        <h1><strike>xxlilcrysxx</strike></h1>
      </header>

      <!-- Profile Picture -->
      <div class="profile-picture-container">
        <img class="profile-pic" src="http://placekitten.com/170/150" alt="A profile picture of Tom, the creator of MySpace.">

        <p class="personal-msg"><b>"Just me &hearts; &hearts; &hearts;"</b></p>

        <ul class="gender-age">
          <li>Female</li>
          <li>15 years old</li>
          <li>United Kingdom</li>
        </ul>

        <ul class="last-login">
          <li>Last Login:</li>
          <li>4/22/2006</li>
        </ul>

        <p class="pics-videos">View My: <a href="#"><b>Pics</b></a> | <a href="#"><b>Videos</b></a></p>
      </div>

      <!-- Contact Box -->
      <section class="contact-box">
        <h2>Contacting Tom</h2>

        <figure class="contact-images">
          <p>Message me</p>
          <p>Forward</p>
          <p>Add Friend</p>
          <p>Favourite</p>
          <p>Instant Message</p>
          <p>Block</p>
          <p>Add to Group</p>
          <p>Rank User</p>
        </figure>
      </section>

      <!-- MySpace URL -->
      <section class="myspace-url-box">
        <h3><b>MySpace URL:</b></h3>
        <p>http://www.myspace.com/xxlilcrysxx</p>
      </section>

      <!-- Interests Section -->
      <section class="interests">
        <table class="sidebar-table">

          <caption>
            <h2 class="sidebar-table-h2">Tom's Interests</h2>
          </caption>

          <tbody>
            <tr>
              <th class="sidebar-table-header" scope="row">General</th>
              <td class="sidebar-table-data">
                <p>tv, films, my friends &hearts; &hearts; &hearts; </p>
              </td>
            </tr>

            <tr>
              <th class="sidebar-table-header" scope="row">Music</th>
              <td class="sidebar-table-data">
                <p>
                  fall out boy, P!ATD, a7x, tenacious d, paramore
                </p>
              </td>
            </tr>

            <tr>
              <th class="sidebar-table-header" scope="row">Movies</th>
              <td class="sidebar-table-data">
                <p>
                  casino royale, hot fuzz, forrest gump, mean girls
                </p>
              </td>
            </tr>

            <tr>
              <th class="sidebar-table-header" scope="row">Television</th>
              <td class="sidebar-table-data">
                <p>family guy, mighty boosh, 24, CSI, friends, scrubs, the oc</p>
              </td>
            </tr>

          </tbody>
        </table>
      </section>

      <!-- Tom's Details Section -->
      <section class="details">
        <table class="sidebar-table">

          <caption>
            <h2 class="sidebar-table-h2">Tom's Details</h2>
          </caption>

          <tbody>
            <tr>
              <th class="sidebar-table-header" scope="row">Status:</th>
              <td class="sidebar-table-data">Single</td>
            </tr>

            <th class="sidebar-table-header" scope="row">Zodiac Sign:</th>
            <td class="sidebar-table-data">Libra</td>
            </tr>

          </tbody>
        </table>
      </section>
    </aside>
    <!-- Profile Side Bar Ends -->

    <!-- Main Section -->
    <main>

      <section class="user-network">
        <header>
          <h2>xxlilcrysxx is in your extended network</h2>
        </header>
      </section>

      <section class="blurbs">
        <header class="main-section-header">
          <h2 class="main-section-h2">Tom's Blurbs</h2>
        </header>

        <h3><strike>About me</strike></h3>
        <p>
          <em>It just takes some time little girl, you're in the middle of the ride.<br /> <br />
            Everything, everything will be just fine
            everything, everything will be alright, alright <br /> <br /> &hearts;</em>
        </p>
        <iframe width="410" height="230" src="https://www.youtube.com/embed/FV-HPOHu8mY" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
        <br />
        <br />
        <h3><strike>Who I'd like to meet:</strike></h3>
        <em>everyone and Noel Fielding</em>
      </section>

      <section class="friends">
        <header class="main-section-header">
          <h2 class="main-section-h2">xxlilcrysxx's Friend Space</h2>
        </header>

        <p><b>xxlilcrysxx has <span class="focus-highlight">98</span> Friends.</b></p>

        <div class="friend-pic-container">
          <figure>
            <figcaption><a href="#">Mia</a></figcaption>
            <img src="http://placekitten.com/100/100">
          </figure>

          <figure>
            <figcaption><a href="#">Kat</a></figcaption>
            <img src="http://placekitten.com/90/120">
          </figure>

          <figure>
            <figcaption><a href="#">Mat</a></figcaption>
            <img src="http://placekitten.com/120/80">
          </figure>

          <figure>
            <figcaption><a href="#">Tommm</a></figcaption>
            <img src="http://placekitten.com/80/110">
          </figure>

          <figure>
            <figcaption><a href="#">Tim</a></figcaption>
            <img src="http://placekitten.com/100/170">
          </figure>

          <figure>
            <figcaption><a href="#">James</a></figcaption>
            <img src="http://placekitten.com/80/100">
          </figure>

          <figure>
            <figcaption><a href="#">Jamiii &hearts;</a></figcaption>
            <img src="http://placekitten.com/105/100">
          </figure>

          <figure>
            <figcaption><a href="#">Aaron</a></figcaption>
            <img src="http://placekitten.com/100/108">
          </figure>
        </div>

        <p class="friends-list-link"><a href="#">View All of xxlilcrysxx's Friends</a></p>
      </section>

      <section class="comment-wall">
        <header class="main-section-header">
          <h2 class="main-section-h2">Tom's Friends Comments</h2>
        </header>

        <p id="comment-counter"><b>Displaying <span class="focus-highlight">5</span> of <span class="focus-highlight">220</span> comments (<a href="#">View/Edit All Comments</a>)</b></p>

        <table>
          <tr>
            <th scope="row">
              <figure>
                <figcaption><a href="#">Todd</a></figcaption>
                <img src="http://placekitten.com/100/90">
              </figure>
            </th>
            <td>
              <h3>4/22/2006 6:54 PM</h3>
              <p>pc4pc?</p>
            </td>
          </tr>

          <tr>
            <th scope="row">
              <figure>
                <figcaption><a href="#">Laura</a></figcaption>
                <img src="http://placekitten.com/100/150">
              </figure>
            </th>
            <td>
              <h3>4/22/2006 6:51 PM</h3>
              <p>thanx 4 the add!!!</p>
            </td>
          </tr>

          <tr>
            <th scope="row">
              <figure>
                <figcaption><a href="#">ASH</a></figcaption>
                <img src="http://placekitten.com/50/50">
              </figure>
            </th>
            <td>
              <h3>4/22/2006 5:30 PM</h3>
              <p>hiiiii :)</p>
            </td>
          </tr>

          <tr>
            <th scope="row">
              <figure>
                <figcaption><a href="#">Sammy</a></figcaption>
                <img src="http://placekitten.com/120/120">
              </figure>
            </th>
            <td>
              <h3>4/22/2006 12:37 PM</h3>
              <p>omg I luv that song</p>
            </td>
          </tr>

          <tr>
            <th scope="row">
              <figure>
                <figcaption><a href="#">Danny</a></figcaption>
                <img src="http://placekitten.com/90/100">
              </figure>
            </th>
            <td>
              <h3>4/22/2006 12:13 PM</h3>
              <p>Hey add me I accept everyone</p>
            </td>
          </tr>

          <tr>
            <th scope="row">
              <figure>
                <figcaption><a href="#">The Truckstop Fighters</a></figcaption>
                <img src="http://placekitten.com/100/300">
              </figure>
            </th>
            <td>
              <h3>4/22/2006 12:08 PM</h3>
              <p>Hey! cool music taste! check out our band! Our new song is on our page! FFO Green day, Blink 182, NOFX etc.</p>
            </td>
          </tr>

        </table>

        <p id="add-comment"><a href="#">Add Comment</a></p>

      </section>
    </main>

  </div>
  <!-- Footer -->
  <footer class="footer">

    <nav>
      <ul>
        <li><a href="#">About</a></li>
        <li><a href="#">FAQ</a></li>
        <li><a href="#">Terms</a></li>
        <li><a href="#">Privacy</a></li>
        <li><a href="#">Safety Tips</a></li>
        <li><a href="#">Contact Myspace</a></li>
        <li><a href="#">Report Inappropriate Content</a></li>
        <li><a href="#">Promote!</a></li>
        <li><a href="#">Advertise</a></li>
        <li id="last"><a href="#">MySpace International</a></li>
      </ul>
    </nav>

    <small>©2003-2006 MySpace.com. All Rights Reserved.</small>
  </footer>
</div>
              
            
!

CSS

              
                html {
  box-sizing: border-box;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  font-family: verdana, arial, sans-serif, helvetica;
  background-color: #e5e5e5;
  font-size: 8pt;
  margin: 0;
}

a {
  font-weight: bold;
  text-decoration: none;
}

a:link {
  color: #003399;
}

a:visited {
  color: #003399;
}

a:hover {
  text-decoration: underline;
  color: #cc0000;
}

h2 {
  font-size: 9pt;
  margin: 0;
  font-weight: bold;
}

p {
  line-height: 1.3;
}

/*
========================================
Master Container
========================================
*/
.master-container {
  margin: auto;
  width: 800px;
  background-color: white;
}

/*
========================================
Main Header
========================================
*/
.main-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 151px;
  background-color: rgb(0, 51, 153);
  color: #ffffff;
}

.main-header ul {
  list-style-type: none;
}

.main-header a:link {
  color: #ffffff;
  font-weight: normal;
}

.main-header a:visited {
  color: #ffffff;
}

/*
========================================
Search Bar
========================================
*/
.search-bar {
  display: grid;
  grid-template-columns: 0.25fr 1fr 0.25fr;
}

.search-bar form {
  justify-self: center;
  margin: 0;
}

.search-bar form [type="text"] {
  width: 160px;
}

.search-bar form [type="radio"] {
  margin-right: 0.33rem;
}

.search-bar ul {
  display: flex;
}

.submit-btn {
  margin: 8px;
  border: 1px solid black;
  padding: 2px 7px;
  background-color: #e0ffff;
  font-size: 10px;
  border-color: rgb(186, 186, 186);
}

.topnav {
  padding: 0;
  margin: 8px;
}

.topnav li:first-child::after {
  content: "|";
  margin: 0.33rem;
}

.home {
  justify-self: start;
}

.signup {
  justify-self: end;
}

/*
========================================
Navigation Bar
========================================
*/
.navbar {
  display: flex;
  align-items: center;
  margin-top: auto;
  background-color: rgb(102, 153, 204);
  height: 26px;
}

.navbar ul {
  display: flex;
  margin: 0 auto;
  padding: 0;
}

.navbar li::after {
  content: "|";
  margin: 0.33rem;
  color: black;
}

.navbar li:last-child::after {
  content: "";
}

.navbar a:hover {
  color: #003399;
}

/*
========================================
Page Content Container
========================================
*/
.page-content-container {
  display: grid;
  grid-template-columns: 325px 453px;
  grid-column-gap: 20px;
  grid-template-areas: "sidebar main";
}

/*
========================================
Profile Sidebar Column
========================================
*/
.profile-sidebar {
  grid-area: sidebar;
  margin-left: 27px;
  width: 300px;
}

h1 {
  font-size: 12.25pt;
  font-weight: bold;
  margin-top: 15px;
  margin-bottom: 0px;
}

.profile-sidebar ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/*
========================================
Profile Picture Container
========================================
*/
.profile-picture-container {
  display: grid;
  grid-template-columns: 170px 115px;
  grid-template-rows: 176px;
  grid-column-gap: 15px;
  margin-bottom: 12px;
}

.profile-picture-container p {
  margin: 0;
}

.profile-pic {
  grid-area: 1/1;
  margin-top: 10px;
  margin-bottom: 10px;
}

.personal-msg {
  grid-area: 1/2;
  margin: 0;
}

.gender-age {
  grid-area: 1/2;
}

.gender-age li:first-child {
  margin-top: 28px;
}

.last-login {
  grid-area: 1/2;
  align-self: end;
}

.last-login li:last-child {
  margin-bottom: 15px;
}

.pics-videos {
  grid-area: 1/1;
  justify-self: center;
  align-self: end;
}

/*
========================================
Contact Box
========================================
*/
.contact-box {
  border: 2px solid rgb(102, 153, 204);
  height: 149px;
  width: 300px;
  margin-bottom: 24px;
}

.contact-box h2 {
  color: white;
  background-color: rgb(102, 153, 204);
  height: 17px;
  padding-left: 10px;
}

.contact-images {
  display: grid;
  grid-template-columns: 150px 150px;
  margin: 0;
  margin-top: 5px;
  margin-left: 10px;
}

/*
========================================
MySpace URL
========================================
*/
.myspace-url-box {
  border: 1px solid rgb(102, 153, 204);
  height: 26px;
  margin-bottom: 24px;
}

.myspace-url-box h3,
.myspace-url-box p {
  margin: 0;
  padding: 0;
}

.myspace-url-box h3 {
  font-size: 8pt;
  padding-left: 2px;
}

.myspace-url-box p {
  padding-left: 6px;
}

/*
========================================
Sidebar Table Class
========================================
*/
.sidebar-table {
  border: 2px solid rgb(102, 153, 204);
  display: table;
  border-collapse: separate;
  border-spacing: 3px;
}

.sidebar-table-h2 {
  background-color: rgb(102, 153, 204);
  color: white;
  text-align: left;
  height: 17px;
  padding-left: 15px;
  padding-top: 2px;
}

.sidebar-table-header {
  vertical-align: top;
  text-align: left;
  width: 107px;
  background-color: rgb(177, 208, 240);
  color: #336699;
  padding: 3px;
  font-weight: bold;
  font-size: 8pt;
}

.sidebar-table-data {
  width: 184px;
  background-color: rgb(213, 232, 251);
  padding: 3px;
}

/*
========================================
Interests
========================================
*/
.interests p {
  margin-top: 0;
}

.interests p:only-child,
.interests p:last-child {
  margin-bottom: 0;
}

.interests table {
  margin-bottom: 13px;
}

/*
========================================
Details
========================================
*/
.details table {
  margin-bottom: 22px;
}

/*
========================================
Schools
========================================
*/
.schools .sidebar-table-header {
  width: 228px;
  color: black;
  font-weight: normal;
}

.schools .sidebar-table-data {
  width: 63px;
  text-align: center;
  vertical-align: top;
}

.schools ul {
  margin-bottom: 2em;
}

/*
========================================
Main Column
========================================
*/
main {
  grid-area: main;
}

/*
========================================
User Network
========================================
*/
.user-network {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 433px;
  margin: auto;
  height: 75px;
  border: 2px solid black;
  margin-top: 13px;
}

.user-network h2 {
  font-size: 12pt;
}

/*
========================================
Blog
========================================
*/
.blog {
  display: grid;
  grid-auto-rows: 29px;
  flex-direction: column;
  margin-top: 13px;
  margin-left: 12px;
  margin-bottom: 16px;
}

.blog p {
  margin-top: 3px;
}

/*
========================================
Blurbs
========================================
*/
.main-section-header {
  background-color: #ffcc99;
  padding-top: 3px;
  padding-bottom: 3px;
  margin-bottom: 8px;
}

.main-section-h2 {
  color: #ff6600;
  margin-left: 20px;
}

.blurbs h3 {
  margin: 0;
  color: #ff6600;
  font-size: 9pt;
  margin-left: 15px;
}

.blurbs p:nth-of-type(5) {
  margin-bottom: 2em;
}

.blurbs p {
  margin: 0 10px 15px 15px;
}

.info {
  color: green;
  font-weight: bold;
}

/*
========================================
Friend Space
========================================
*/
.friends header {
  margin-bottom: 6px;
}

.friends p:nth-of-type(1) {
  margin-top: 0;
  margin-left: 15px;
}

.focus-highlight {
  color: #cc0000;
  font-weight: normal;
  font-size: 10pt;
}

.friend-pic-container {
  display: grid;
  grid-template-columns: repeat(4, 109px);
  grid-template-rows: 160px 193px;
}

.friend-pic-container figure {
  margin: 0;
}

.friend-pic-container figcaption {
  text-align: center;
}

.friend-pic-container img {
  display: block;
  margin: auto;
}

.friends-list-link {
  display: flex;
  justify-content: flex-end;
}

.friends-list-link {
  margin-top: 7px;
  margin-right: 8px;
  margin-bottom: 30px;
}

.friends-list-link a {
  color: #cc0000;
}

/*
========================================
Comment Wall
========================================
*/
.comment-wall .main-section-header {
  margin-bottom: 3px;
}

.comment-wall .main-section-h2 {
  margin-bottom: 0;
}

#comment-counter {
  margin-top: 0;
  margin-left: 15px;
  margin-bottom: 3px;
}

.comment-wall table {
  margin: auto;
  margin-bottom: 5px;
}

.comment-wall th {
  background-color: rgb(255, 153, 51);
  width: 158px;
  padding: 3px;
  vertical-align: top;
}

.comment-wall td {
  vertical-align: top;
  background-color: rgb(249, 214, 180);
  width: 269px;
  padding: 3px;
}

.comment-wall figcaption,
.comment-wall figure {
  margin: 0;
}

.comment-wall figcaption {
  margin-bottom: 1em;
}

.comment-wall figure {
  margin-bottom: 49.33px;
}

.comment-wall h3 {
  font-size: 10pt;
  margin: 0;
  margin-bottom: 1em;
}

.comment-wall p {
  font-weight: normal;
  text-align: left;
  margin: 0;
}

#add-comment {
  text-align: right;
  margin-right: 10px;
  margin-bottom: 5px;
}

/*
========================================
Footer
========================================
*/
footer {
  display: grid;
  grid-template-rows: 16px 39px;
  background-color: #e5e5e5;
  padding-top: 10px;
  height: 65px;
}

footer a {
  text-decoration: underline;
  font-weight: normal;
  font-size: 8pt;
}

footer ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

footer li:after {
  content: " | ";
  font-weight: normal;
}

#last:after {
  content: none;
}

footer small {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
  font-size: 8pt;
  font-weight: normal;
}

/* Custom */

body {
  background: #0e0e0e;
  /*background-image: linear-gradient(
    180deg,
    transparent 50%,
    rgba(255, 113, 167, 0.5) 50%
  );*/
  background-image: url("http://4.bp.blogspot.com/-LUG4PNEUpTU/UFSmgngMEwI/AAAAAAAAKBw/tlXpnGDAv_M/s1600/3D+Stars+Wallpapers+7.jpg");
  background-size: 50%;
  background-attachment: fixed;
  font-family: sans-serif, helvetica;
  letter-spacing: 1px;
  line-height: 1.5;
}

.master-container {
  background-color: transparent;
}

section,
.profile-picture-container {
  background-color: #ffaeb1;
  padding: 1rem;
  margin-bottom: 1rem;
}

.profile-sidebar header {
  background-color: #ffaeb1;
  padding: 1rem 1rem 0;
}

.profile-sidebar header h1 {
  margin: 0;
}

.main-header {
  background-color: transparent;
  height: auto;
}

.main-header a {
  color: #ffaeb1 !important;
}

.navbar {
  background-color: transparent;
  margin-top: 2rem;
}

.navbar li::after {
  color: #fff;
}

.footer {
  background-color: transparent;
  margin: 2rem 0;
  padding: 1rem;
}

.footer a,
.footer small {
  color: #ffaeb1 !important;
}

footer li:after {
  color: #fff;
}

.page-content-container {
  margin-top: 2rem;
}

.user-network {
  margin: 0;
  width: auto;
}

.blog {
  margin-left: 0;
}

.contact-box,
.myspace-url-box {
  border: 0;
  height: auto;
  width: auto;
}

.contact-box h2,
.sidebar-table-h2 {
  background-color: transparent;
  color: black;
  padding: 0;
  display: none;
}

.pics-videos a {
  color: #fff;
  text-decoration: underline;
}

.sidebar-table {
  border: 0;
}

.sidebar-table-header,
.sidebar-table-data {
  color: black;
  background-color: transparent;
}

.main-section-header {
  background-color: transparent;
}

.main-section-h2 {
  display: none;
}

.blurbs h3 {
  margin: 0;
  color: black;
}

.blurbs p {
  margin: 10px 0;
}

.comment-wall th,
.comment-wall td {
  background-color: transparent;
}

.comment-wall table {
  margin-top: 1rem;
}

section a {
  color: #fff !important;
  text-decoration: underline;
}

.profile-pic {
  margin: 0;
  filter: grayscale(100%);
}

.profile-pic:hover {
  filter: grayscale(0%);
  cursor: pointer;
}

.schools {
  display: none;
}

.profile-sidebar {
  width: 100%;
  margin-left: 0;
}

.details table {
  margin-bottom: 0px;
}

.user-network {
  margin-bottom: 1rem;
  border: 0;
}

.friend-pic-container img,
.comment-wall img {
  filter: grayscale(100%);
}

.friend-pic-container img:hover {
  filter: grayscale(0%);
}

.contact-box {
  background: url("http://4.bp.blogspot.com/-LUG4PNEUpTU/UFSmgngMEwI/AAAAAAAAKBw/tlXpnGDAv_M/s1600/3D+Stars+Wallpapers+7.jpg")
    top black;
  border: 5px solid #ffaeb1;
}

.contact-images p {
  color: #ffaeb1;
  font-weight: bold;
  font-size: 12px;
}

.contact-images p:hover {
  cursor: pointer;
  text-decoration: underline;
}

              
            
!

JS

              
                
              
            
!
999px

Console