How to implement two sets of CSS Tabs on one page? - html

I am trying to implement two sets of CSS-only tab groups on one page. However, when I click on certain tabs in one group, other tabs become active also. Here is my code below. I want to be able to put as many css tab groups on a page.
The html
<div class="row">
<article class="tabs">
<section id="tab2" class="tab_block">
<h2>Tab 2</h2>
<div>
<p>This content appears on tab 2.</p>
</div>
</section>
<section id="tab3" class="tab_block">
<h2>Tab 3</h2>
<div>
<p>This content appears on tab 3.</p>
<p>Some more content...</p>
</div>
</section>
<section id="tab1" class="tab_block">
<h2>Tab 1</h2>
<div>
<p>This content appears on tab 1.</p>
<p>This tab is <b>last</b> in the markup so that it can be styled as active tab on page load.</p>
<p>Some more content...</p>
</div>
</section>
</article>
</div>
<div class="row">
<article class="tabs">
<section id="tab5" class="tab_block">
<h2>Tab 2</h2>
<div>
<p>This content appears on tab 2.</p>
</div>
</section>
<section id="tab6" class="tab_block">
<h2>Tab 3</h2>
<div>
<p>This content appears on tab 3.</p>
<p>Some more content...</p>
</div>
</section>
<section id="tab4" class="tab_block">
<h2>Tab 1</h2>
<div>
<p>This content appears on tab 1.</p>
<p>This tab is <b>last</b> in the markup so that it can be styled as active tab on page load.</p>
<p>Some more content...</p>
</div>
</section>
</article>
</div>
The css
body {
font: 62.5%/1.5 Georgia,serif;
margin: 10em 0 0;
}
h2 {
font-size: 2em;
}
p {
font-size: 1.6em;
}
.row {
width: 100%;
float: left;
position: relative;
height: 256px;
}
.tabs {
display: block;
margin: 0 auto;
position: relative;
width: 40em;
}
.tab_block {
position: absolute;
}
.tab_block h2 {
background-color: #DDD;
border-radius: 5px 5px 0 0;
line-height: 2em;
left: -1em;
margin: 0;
padding: 0;
position: relative;
top: -2.7em;
width: 6em;
}
.tab_block:first-child h2 {
left: 5.3em;
}
.tab_block:nth-child(2) h2 {
left: 11.6em;
}
.tab_block h2 a {
color: #000;
display: inline-block;
text-align: center;
text-decoration: none;
vertical-align: middle;
width: 100%;
}
.tab_block div {
box-sizing: border-box;
margin: -5.4em 0 0 -2.1em;
height: 0;
overflow: hidden;
visibilty: hidden;
width: 0;
}
/* last in HTML markup, but visually shown first */
.tab_block:last-child {
background: #FFF;
}
.tab_block:last-child h2 {
background: #FFF;
border: 1px solid #DDD;
border-bottom-color: #FFF;
box-shadow: 0px 0 3px rgba(0,0,0,0.1);
left: -1.05em;
}
.tab_block:last-child h2:after {
border-bottom: 4px solid #FFF;
content: '';
display: block;
position: absolute;
width: 100%;
}
.tab_block:last-child div {
border: 1px solid #DDD;
border-radius: 0 0 5px 5px;
box-shadow: 0 3px 3px rgba(0,0,0,0.1);
padding: 1em 2em;height: auto;
overflow: visible;
visibilty: visible;
width: 40em;
}
.tab_block:target,
.tab_block:target h2 {
background-color: #FFF;
}
.tab_block:target h2 {
border: 1px solid #DDD;
border-bottom-color: #FFF;
box-shadow: 0px 0 3px rgba(0,0,0,0.1);
}
.tab_block:target h2:after {
border-bottom: 4px solid #FFF;
content: '';
display: block;
position: absolute;
width: 100%;
}
.tab_block:target ~ .tab_block:last-child h2 {
background: #DDD;
border: 0;
box-shadow: none;
left: -1em;
}
.tab_block:target ~ .tab_block:last-child h2:after {
border-bottom: 0;
}
.tab_block:target div {
border: 1px solid #DDD;
border-radius: 0 0 5px 5px;
box-shadow: 0 3px 3px rgba(0,0,0,0.1);
padding: 1em 2em;
height: auto;
visibilty: visible;
width: 40em;
}
.tab_block:target ~ .tab_block div {
border: 0;
box-shadow: none;
height: 0;
overflow: hidden;
padding: 0;
visibilty: hidden;
width: 0;
}
.tab_block h2 {
transition: all 500ms ease;
}

Instead of using :target selector, use :checked selector and wrap your section elements in label of radio elements.
JSFIDDLE (Updated example)
Doing like this, you can have as many individual groups as possible and also without using javascript.
HTML Structure
-- row
-- tabs
-- input (same group)
-- label
-- section
-- input (same group)
-- label
-- section
-- input (same group)
-- label
-- section
CSS
body, html {
margin: 0px;
padding: 0px;
}
body {
font: 62.5%/1.5 Georgia, serif;
margin: 10em 0 0;
}
h2 {
font-size: 2em;
}
p {
font-size: 1.6em;
}
input[type=radio] {
position: absolute;
visibility: hidden;
pointer-events: none;
z-index: 1;
}
.clear-float {
clear: both;
}
.tab_block ~ .tab_block h2 {
left: 50%;
transform: translate(-50%, -100%);
}
.tab_block ~ .tab_block ~ .tab_block h2 {
left: auto;
right: 0px;
transform: translate(0%, -100%);
}
.row {
width: 40em;
margin: 0 auto;
position: relative;
margin-top: 5em;
}
.tab_block div {
display: none;
background-color: white;
box-sizing: border-box;
overflow: hidden;
border: 1px solid #DDD;
border-radius: 0 0 5px 5px;
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.1);
padding: 1em 2em;
width: 40em;
}
.tab_block h2 {
position: absolute;
top: 1px;
transform: translateY(-100%);
background-color: #DDD;
border-radius: 5px 5px 0 0;
line-height: 2em;
margin: 0;
padding: 0;
width: 6em;
border: 1px solid #DDD;
border-bottom-color: #FFF;
box-shadow: 0px 0 3px rgba(0, 0, 0, 0.1);
transition: all 500ms ease;
text-align: center;
cursor: pointer;
border-bottom: none;
}
.tab_block:last-child div {
border: 1px solid #DDD;
border-radius: 0 0 5px 5px;
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.1);
padding: 1em 2em;
height: auto;
overflow: visible;
visibilty: visible;
width: 40em;
}
input[type=radio]:checked + label h2 {
background-color: white;
}
:checked + label div {
display: block;
}

Related

How to align text inside link to bottom corner?

I have a card that needs to be covered by link and have text at the bottom corner. Currently text is located at the top, how can I move it to the bottom while keeping link covering card?
.card{
background-color: #fff;
border-radius: 4px;
box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
width: 200px;
height: 250px;
padding: 10px;
position: relative;
}
.card a {
color: red;
text-decoration: none;
padding: 10px;
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
}
.card a:hover {
cursor: pointer;
text-decoration: underline;
}
<div class='card'>
<p>Some description goes here</p>
<a href='#'>Read more</a>
</div>
It is usually called stretched link (for example in Bootstrap) and it uses pseudo (before/after) elements which are absolute while the original element can be somewhere else.
To place link at the bottom of the card (without using absolute position) I've set flex to .card and margin-top: auto to a.
Something like this:
.card {
display: flex;
flex-flow: column;
background-color: #fff;
border-radius: 4px;
box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
width: 200px;
height: 250px;
padding: 10px;
position: relative;
}
.card a {
color: red;
text-decoration: none;
margin-top: auto;
}
/* ↓↓ this is it ↓↓ */
.card a:after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1;
content: "";
}
.card a:hover {
cursor: pointer;
text-decoration: underline;
}
<div class='card'>
<p>Some description goes here</p>
<a href='#'>Read more</a>
</div>

Shadowed underlined text with perspective

I have the following html structure where I style my titles with an underline and a shadow.
.title {
font-size: 28px;
line-height: 1;
letter-spacing: 0px;
text-shadow: 2px 2px #32c8ff;
text-decoration: underline;
text-underline-position: under;
}
<div class="container">
<div class="content">
<div class="title">MY TITLE
</div>
</div>
</div>
I tried to apply a perspective effect with the following css
.container {
-webkit-perspective: 150px;
perspective: 150px;
}
.content {
-webkit-transform: rotateX(25deg);
transform: rotateX(25deg);
}
<div class="container">
<div class="content">
<div class="title">MY TITLE
</div>
</div>
</div>
As you can see, it works fine on the text but on the underline the shadow is not displayed and the distance from the text (text-underline-position: under;) is ignored.
Is there a way to display the shadow and keep the correct distance of the underline from the text when using the perspective?
You can simulate the underline with the pseudo element before:
.title {
display: inline-block;
font-size: 28px;
line-height: 1;
letter-spacing: 0px;
position: relative;
text-shadow: 2px 2px #32c8ff;
text-decoration: none;
}
.title::before {
border-bottom: 2px solid #000;
bottom: 0;
content: "";
position: absolute;
left: 0;
right: 0;
box-shadow: 2px 2px #32c8ff;
}
See the example here
Another possibility: Fiddle
.title, .subtitle {
font-size: 28px;
line-height: 1;
letter-spacing: 0px;
text-shadow: 2px 2px #32c8ff;
text-align: center;
}
.title {
border-bottom: 2px solid;
box-shadow: 2px 2px #32c8ff;
}
.container {
display: table-cell;
-webkit-transform: rotateX(45deg);
transform: rotateX(25deg);
}
.content {
-webkit-transform: rotateX(45deg);
transform: rotateX(25deg);
}
<div class="container">
<div class="content">
<div class="title">GREENPEACE</div>
<div class="subtitle">THE SURFER</div>
</div>
</div>
Check this out:
https://jsfiddle.net/zzhn5gh7/
.container {
width: 200px;
height: 200px;
border: 1px solid #CCC;
margin: 0 auto 60px;
position: relative;
-webkit-perspective: 600px;
-moz-perspective: 600px;
-o-perspective: 600px;
perspective: 600px;
}
.title {
width: 100%;
height: 100%;
position: absolute;
background: green;
font-size: 35px;
line-height: 1;
letter-spacing: 0px;
text-shadow: 2px 2px #32c8ff;
text-decoration: underline;
text-underline-position: under;
}
#rotate-x .title {
-webkit-transform: rotateX( 45deg);
-moz-transform: rotateX( 45deg);
-o-transform: rotateX( 45deg);
transform: rotateX( 45deg);
}
<div id="rotate-x" class="container">
<div class="title">MY TITLE
</div>
The right solution for me was the following:
.title {
display: inline-block;
position: relative;
font-size: 28px;
line-height: 2.5;
letter-spacing: 0px;
text-shadow: 2px 2px #32c8ff;
text-decoration: none;
}
.title::before {
border-bottom: 4px solid #ffffff;
bottom: 0;
content: "";
position: absolute;
left: 0;
right: 0;
box-shadow: 2px 2px #32c8ff;
margin: 11px 0px;
}
.subtitle {
font-size: 28px;
line-height: 0.7;
letter-spacing: 0px;
text-shadow: 2px 2px #32c8ff;
}

Flexbox creates a lot of whitespace and moves down the object it is affecting

So I am learning to use flexbox and it was working fine untill I tried to use it on a some items that wrapped. When that happened the whole block moved down by the amount of the wrapped object.Just to be clear the top part here above the cars and below the lorem ipsum is the part that has been moved.
As you can see there's a lot of whitespace there and that is not supposed to be there and it wasn't untill I used flexbox. But my goal is to make it wrap just using flexbox (so no float: left trickery). Here's my code. http://jsfiddle.net/0eccdumy
#import url(https://fonts.googleapis.com/css?family=Roboto);
* {
margin: 0;
padding: 0;
}
#media screen and (min-width: 604px) {
#menu {
height: 50px;
width: 99.8%-1px;
display: flex;
-webkit-flex-direction: row;
-moz-flex-direction: row;
position: relative;
z-index: 99;
background: linear-gradient(#CC0, #EE0);
padding: 5px 0px 5px 0px;
border: 1px solid #566;
}
body {
margin: 0px;
height: 100%;
background-color: #444;
font-family: Roboto, sans-serif;
}
#ida {
border-right: 1px solid #111;
padding: 10px;
display: block;
}
a {
color: black;
padding: 10px;
text-decoration: none;
font-size: 1.3em;
}
div.top {
height: 100%;
width: 75%;
background-color: #F1F1F1;
margin: 0px auto;
display: block;
position: relative;
border: 5px solid #1F1F1F;
}
p {
display: inline-block;
font-size: 0.7em;
margin: 1px;
color: black;
}
.desc {
display: block;
top: -31.5%;
height: 50px;
width: 100%;
position: relative;
background-color: #F5F3F3;
border-radius: 0px 0px 9px 9px;
}
.image {
height: 110%;
width: 100%;
position: relative;
border-radius: 9px;
}
.foot {
border-top: 1px solid black;
height: 20px;
width: 100%;
top: 38.5%;
position: relative;
}
#footext {
margin: auto;
position: relative;
left: 28%;
font-size: 0.8em;
color: grey;
}
#Vaerksted {
height: 110%;
width: 100%;
position: relative;
display: block;
}
.Overflow {
height: 240px;
width: 99.8%-1px;
overflow: hidden;
margin: auto;
}
.header {
border-top: 1px solid black;
border-bottom: 1px solid black;
}
h3 {
margin: 0px
}
h4 {
margin: 0px
}
.New {
width: 90%;
height: 90%;
margin: auto;
margin-top: 10px;
margin-bottom: 15px;
position: relative;
background-color: white;
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .16);
box-shadow: 0 1px 1px rgba(0, 0, 0, .16);
padding: 5px;
display: flex;
flex-wrap: wrap;
flex-direction: row;
}
.carfs {
height: 250px;
width: 250px;
border: 1px solid black;
border-radius: 9px;
position: relative;
top: 20px;
left: 0px;
margin-left: 10px;
margin-bottom: 15px;
display: inline-block;
overflow: hidden;
}
.men0img {
height: 60px;
position: relative;
top: -5px;
}
.del3 {
width: 38%;
height: 318px;
float: right;
position: relative;
top: -322px;
left: -12px;
overflow: hidden;
border: 1px solid #EAEAEA;
-webkit-box-shadow: 0 2px 2px rgba(0, 0, 0, .16);
box-shadow: 0 2px 2px rgba(0, 0, 0, .16);
}
.3delt {
height: 500px;
width: 100%;
position: relative;
}
.del1 {
width: 60%;
border: 1px solid #C6C8C8;
}
.velkommen {
font-size: 1em;
}
.aabningstider {
height: 100px;
width: 100px;
}
.googlemaps {
height: 159px;
width: 345px;
overflow: hidden;
top: 20px;
position: relative;
}
.google_maps {
top: 25px;
margin-top: auto;
position: relative;
overflow: hidden;
}
.randlogo {
height: 56px;
width: 140px;
position: relative;
top: -2px;
margin-left: auto;
margin-right: auto;
}
#Mc {
margin-bottom: auto;
height: 110%;
position: relative;
top: -20px;
}
.op {
}
}
Now for my html
<div class="op">
<div class="New">
<div class="header">
<h3>Nyeste Biler</h3>
</div>
<div class="flexit">
<div class="carfs">
<img src="Car.jpg" class="image">
<div class="desc">
<p>
- Kilometer: 147000 KM
<br> - Geartype: Automatgear
<br> - Brænsstoftype: Benzin
</p>
<p>
- Farve: Sølv metal
<br> - Antal døre: 5 Døre
<br> - Type: Stationcar
</p>
</div>
</div>
<div class="carfs">
<img src="Car1.jpg" class="image">
<div class="desc">
<p>
- Kilometer: 153000 KM
<br> - Geartype: Manuel
<br> - Brænsstoftype: Benzin
</p>
<p>
- Farve: Sort metal
<br> - Antal døre: 5 Døre
<br> - Type: Stationcar
</p>
</div>
</div>
<div class="carfs">
<img src="MC.jpg" class="image" id="Mc">
<div class="desc">
<p>
- Kilometer: 72000 KM
<br> - Hestekræfter: 96Hk
<br> - Brænsstoftype: Benzin
</p>
<p>
- Farve: Rød
<br> - Antal døre: 0 Døre
<br> - Type: Standard
</p>
</div>
</div>
<div class="carfs">
<img src="AC.jpg" class="image">
<div class="desc">
<p>
- Kilometer: 220000 KM
<br> - Geartype: Automatgear
<br> - Brænsstoftype: Benzin
</p>
<p>
- Farve: Hvid
<br> - Antal døre: 4 Døre
<br> - Type: Autocamper
</p>
</div>
</div>
</div>
</div>
</div>
Revised Answer
The problem isn't the flexbox.
The problem is that you have a div – .del3 – which is relatively positioned upward.
Because .del3 is relatively positioned, adjacent elements will respect its original place in the layout.
The large white space represents the location of del3 before you moved it up with top: -322px.
Here's your layout with top: -322px commented out:
DEMO
There are many better ways to accomplish this layout.
There's flexbox, of course.
Or you could take del3 out of the flow with absolute positioning, so adjacent boxes ignore its existence. (Make sure to set the parent – .3delt – to position: relative.)
Or you could simply apply float: left to the first div in the row:
.del1 {
width: 60%;
border: 1px solid #C6C8C8;
float: left; /* NEW */
}
.del3 {
width: 38%;
height: 318px;
/* float: right; */
/* position: relative; */
/* top: -322px; */
/* left: -12px; */
overflow: hidden;
border: 1px solid #EAEAEA;
-webkit-box-shadow: 0 2px 2px rgba(0, 0, 0, .16);
box-shadow: 0 2px 2px rgba(0, 0, 0, .16);
}
DEMO
Original Answer
Try removing or adjusting height: 240px from:
#media screen and (min-width: 1px)
.Overflow {
height: 240px;
width: 99.8%-1px;
overflow: hidden;
margin: auto;
}
Also, the width rule has a syntax error. Try this: width: calc(98.8% - 1px);
DEMO

Vertically Align <a> text inside a div

I am having trouble vertically aligning the 's text inside a div.
This is what I have. I need to center "Next" inside the blue box:
#import url(http://fonts.googleapis.com/css?family=Muli);
/*Makes the little side arrow*/
.open {
position: fixed;
width: 100px;
height: 40px;
left: 50%;
top: -1000px;
margin-left: -80px;
margin-top: -30px;
border: 1px solid #ccc;
background-color: #fff;
border-radius: 6px;
padding: 10px 30px;
color: #444;
transition: all ease-out 0.6s;
}
.open:hover {
border: 1px solid #aaa;
box-shadow: 0 0 8px #ccc inset;
transition: all ease-out 0.6s;
}
.tutorial-box {
position: fixed;
width: 400px;
height: 238px;
top: 75px;
background-color: #F3F3F3;
border-radius: 6px;
box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.4);
}
.slider-turn p, .tutorial-box h1{
margin-left: 10px;
}
.tutorial-box:before {
content: '';
position: absolute;
left: -14px;
top: 28px;
border-style: solid;
border-width: 10px 14px 10px 0;
border-color: rgba(0, 0, 0, 0) #f3f3f3 rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
}
.tutorial-box p {
width: 350px;
font-size: 16px;
color: #a8aab2;
font-weight: 400;
line-height: 28px;
float: left;
margin: 0;
}
.tutorial-box .bottom {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
width: 100%;
bottom: 0;
position: absolute;
}
.tutorial-box .bottom .btn-2 {
flex: 3;
-webkit-flex: 3;
-ms-flex: 3;
width: 100%;
height: 54px;
background-color: #373942;
border-bottom-left-radius: 6px;
display: flex;
}
.tutorial-box .bottom span {
flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
line-height: 54px;
color: #fff;
margin-left: 25px;
font-size: 18px;
}
.next {
text-decoration: none;
display: inline-block;
vertical-align: middle;
text-align: center;
flex: 1;
background-color: #6cb5f3;
border: 0;
margin: 0;
padding: 0;
text-transform: uppercase;
color: #fff;
font-weight: bold;
border-bottom-right-radius: 6px;
cursor: pointer;
transition: all .3s;
}
.next:hover {
text-decoration: none;
background-color: #6BA5D6;
transition: all .3s;
}
.next:active {
text-decoration: none;
background-color: #5F8AAF;
}
.slider-tutorial-box {
width: 350px;
margin: 0 25px;
overflow: hidden;
}
.slider-turn {
width: 10000px;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<!-- TUTORIAL -->
<div class="tutorial-box">
<h1>Welcome</h1>
<span class="close"></span>
<div class="slider-container">
<div class="slider-turn">
<p>
Here, under the Company tab, is where you will do most of the company managment.<br>
</p>
</div>
</div>
<div class="bottom">
<div class="btn-2">
<span>Step 2/?</span>
</div>
Next
</div>
</div>
Please let me know how I can center the text vertically to the center of the div.
Thank you very much. Let me know if I wasn't clear enough.
Seems like you already did that for .tutorial-box .bottom span so, do the same thing for .next
.next{
line-height: 54px;
}
the simplest and possibly most easy way would be to add the 'center' and '/center' tag before and after the text you want, and after each letter use '/br' to move to the next line. this will add some bulk, but would be considerably easier than other methods.
<center>
'letter'</br>'next letter'</br>'next letter'</br>
</center>
repeating the letter and break for all letters
alternatively, you could also add "div" tags around the "a" tag. you would have to modify the 'height' and 'width' to make it vertical for you. I would use px for this and not '%' or 'em'. add this to them:
<div style="height: /* modify this */100px; width: /* and this*/20px;">
Next
</div>
this may not be AS compatible cross platform though.
Like this:
.next {
position: relative;
top: 50%;
transform: translateY(-50%);
}
A nice trick that works both vertically and horizontally.

Form elements not clickable even with positive z-index and positioned. Form on animated card flip DIV

I am trying to get it so that the user can submit comments on the "back" of an element that does a 3d flip using css animate. However I cannot get the form clickable.
I have tried using z-index on the positioned element.
You can tab into the form and enter data and submit without issue. You just cannot click it.
What am I missing here?
Thank you for your help.
.entry_wrapper {
width: 50%;
margin: 1.5em auto;
}
.entry_wrapper {
-webkit-perspective: 2000;
}
.entry_wrapper:hover .face {
transform: rotateY(180deg);
}
.face {
box-shadow: 5px 5px 20px 5px #000000;
transform-style: preserve-3d;
transition: all 1.0s linear;
backface-visibility: hidden;
width: 100%;
height: 100%;
}
.face .back {
width: 100%;
height: 100%;
position: absolute;
top: 0;
transform: rotateY(180deg);
border: solid white 1px;
border-radius: 5px;
background: grey;
z-index: 30;
}
.entry {
display: block;
position: relative;
width: 100%;
height: auto;
}
.entry_img {
margin: 0 auto;
width: 100%;
height: auto;
}
.entry img {
Width: 100%;
height: auto;
margin-bottom: -5px;
}
.entry_img p {
display: inline;
position: absolute;
bottom: 0;
z-index: 10;
color: white;
text-align: center;
margin: 0;
width: 100%;
background: rgba(0, 0, 0, 0.6);
}
.entry_footer {
width: 100%;
height: 3em;
text-align: center;
margin: 0 auto;
background: rgba(256, 256, 256, 0.8);
}
.comment {
width: 66%;
background: #cccccc;
border: 2px solid #000000;
border-radius: 5px;
margin: 15px auto;
}
.comment p {
margin: 2px 5px;
}
.comment_name {
font-size: .8em;
}
.comment_name span {
display:block;
float:right;
width:50%;
margin-left:10px;
}
.add_comment {
width: 66%;
display: block;
margin: 15px auto;
background: #cccccc;
border: 2px solid #000000;
border-radius: 5px;
z-index: 50;
}
#comment_form {
z-index: 50;
}
<main>
<div class="entry_wrapper">
<div class="face">
<div class="entry">
<div class="entry_img">
<img src="img/family.jpg">
<p>Birth of first daughter Sophia.</p>
</div>
</div>
<div class="entry_footer">
<p>Like?</p>
</div>
<div class="back face">
<div class="comment">
<p> I really like this picture.</p>
<div >
<p class="comment_name">By: Matthew <span class="date">On: Nov 5th, 2014</span></p>
</div>
</div>
<form id="comment_form" action="comment_submit.php">
<input type="submit">
</form>
<textarea name="comment1" class="add_comment" form="comment_form" placeholder="test"></textarea>
</div>
</div>
</div>
<div class="entry_wrapper">
<div class="entry">
<div class="entry_img">
<img src="img/summit.jpg">
<p>I made it to the top!</p>
</div>
</div>
<div class="entry_footer">
<p>Like?</p>
</div>
</div>
</main>