| Vytfla |
02-12-2013 06:17 PM |
Quote:
Originally Posted by LearningCoder
(Post 1312698)
It should work, I had it working exactly like the site.
Can you post all of your updated code?
Regards,
LC.
|
HTML section
Code:
<div id="contact">
<h2>Contact</h2>
<div id="contact-info">
<h3>LET’S TALK!</h3>
<p>Let’s talk about soup! Let’s talk about cooking! Let’s talk about the weather! Let’s talk about» anything! I love chatting, so please contact me via the form on the right to ask any questions about my soups or any general inqueries, or even to request something special. Don’t by shy! I’ll have my assistant (aka ME!) get back to you as soon as possible. Also, I am crazy about social media so don't forget to follow me on the social sites below for news and updates. I look forward to hearing from you!</p>
<p>-MAMA Z</p>
</div>
<form class="contact-form" action="" method="post" name="contact-form">
<ul>
<li>
<input type="text" name="name" placeholder="NAME" class="test"/>
</li>
<li>
<input type="email" name="email" placeholder="EMAIL" />
</li>
<li>
<textarea name="message" name="message" placeholder="MESSAGE"></textarea>
</li>
<li>
<button class="submit" type="submit">Send</button>
</li>
</ul>
</form>
</div>
CSS
Code:
/*=================================== BODY ================================*/
body {
background-color: #e96151;
font-size: 62.5%; /* 1em = 10px */
font-family: Georgia, serif;
min-width: 1000px;
}
::-moz-selection {
background-color: #fbbdb6;
color: #fff;
}
::selection {
background-color: #fbbdb6;
color: #fff;
}
*:focus {
outline: none; /*Removes focus on forms*/
}
/*=================================== HEADER ================================*/
#header {
width: 960px;
margin: 0 auto;
position: relative;
overflow: hidden;
z-index: 1;
}
#header img {
float: left;
display: inline;
}
#logo-home {
position: absolute;
display: block;
background: url("images/logo.png") left;
left: 75px;
width: 51px;
height: 74px;
}
#logo-home:hover {
background-position: right;
}
#nav li {
list-style: none;
display: inline;
margin: 0 5px 0 0;
padding: 0 0 10px 80px;
/*border-bottom: 1px solid white;*/
}
#nav a {
text-decoration: none;
color: #ffffff;
font-family: 'josefin_slabregular';
font-size: 1.8em;
letter-spacing: .3em;
}
#nav a:hover {
border-bottom: 1px solid white;
}
#nav ul {
float:right;
margin: 30px 0 0 0;
}
/*=================================== HEADER ================================*/
#intro {
height: 294px;
background-image: url(images/banner-bg.png);
max-width: 2048px;
border-bottom: 2px solid #fff;
margin: -80px auto 0;
-o-box-shadow: 0px 6px 10px rgba(50, 50, 50, 0.75);
-webkit-box-shadow: 0px 6px 10px rgba(50, 50, 50, 0.75);
-moz-box-shadow: 0px 6px 10px rgba(50, 50, 50, 0.75);
box-shadow: 0px 6px 10px rgba(50, 50, 50, 0.75);
}
#heading {
width: 960px;
margin: 0 auto;
}
h1 {
padding: 2px 0 2px 5px;
font-size: 3.6em;
font-family: 'vollkornregular';
line-height: .9;
letter-spacing: .06em;
background-color: #fff;
text-transform: uppercase;
text-decoration: none;
color: #366774;
position: relative;
top: 50px;
left: 180px;
border-bottom: 4px solid #fbbdb6;
width: 310px;
}
h1:nth-child(2) {
width: 600px;
}
h1 + h1 {
width: 600px;
}
h1:nth-child(3) {
width: 700px;
}
h1 + h1 + h1 {
width: 700px;
}
span {
font-family: 'vollkornbold';
}
/*=================================== MAIN ================================*/
#main {
width: 960px;
margin: 40px auto 0;
}
h2 {
font-family: 'vollkornregular';
font-size: 2.4em;
text-decoration: underline;
text-transform: uppercase;
text-align: center;
letter-spacing: 0.2em;
color: #fff;
background: url(images/header-bg.png);
padding: 10px;
margin: 0 auto;
width: 300px;
}
h3 {
font-family: 'vollkornregular';
color: #366774;
font-size: 1.8em;
margin: 20 auto;
letter-spacing: 0.1em;
}
#content {
overflow: hidden;
text-align: center;
}
#content p {
font-family: 'josefin_slabregular';
font-size: 1.6em;
color: #366774;
font-weight: 100;
}
#content a,
#about a {
text-decoration: none;
color: #e96151;
}
#content a:hover,
#about a:hover {
text-decoration: underline;
}
.featured {
float: left;
width: 310px;
height: 280px;
background-color: #fff;
background: url(images/washi.png);
border-bottom: 8px solid #fbbdb6;
margin: 40px 5px 0;
position: relative;
}
.featured-images {
display: block;
margin: 6px auto 0;
-o-box-shadow: 3px 3px 10px rgba(50, 50, 50, 0.75);
-webkit-box-shadow: 3px 3px 10px rgba(50, 50, 50, 0.75);
-moz-box-shadow: 3px 3px 10px rgba(50, 50, 50, 0.75);
box-shadow: 3px 3px 10px rgba(50, 50, 50, 0.75);
}
.featured p + p {
position: absolute;
bottom: 0;
left: 120px;
}
/*=================================== ABOUT ================================*/
#about {
background: url(images/washi.png);
margin: 40px 0;
padding: 0 0 80px 0;
}
#about-info {
width: 960px;
overflow: hidden;
margin: 0 auto;animation:
}
#about h2 {
position: relative;
top: 40px;
}
#about img {
float: left;
margin: 100px 0 0 60px;
}
#about p {
float: right;
width: 480px;
margin: 110px 0 0 0;
line-height: 1.8em;
font-family: 'josefin_slabregular';
font-size: 1.8em;
color: #366774;
}
/*=================================== ABOUT ================================*/
#contact {
width: 960px;
margin: 0 auto;
overflow: auto;
}
#contact-info {
float: left;
width: 500px;
}
#contact-info h3 {
font-size: 3.6em;
}
#contact-info p {
color: #fff;
font-family: 'josefin_slabregular';
font-size: 1.8em;
line-height: 1.8;
}
#contact-info p:nth-child(3) {
text-align: right;
}
.contact-form {
float: right;
margin: 40px 0;
width: 380px;
}
.contact-form ul {
list-style: none;
}
.contact-form li {
padding: 15px;
}
.contact-form input {
padding: 10px 168px 10px 10px ;
}
.contact-form textarea {
padding: 10px 160px 100px 10px;
}
.contact-form button {
float: right;
margin: 0 40px 0 0;
}
input,
textarea {
background-color: #366774;
border: none;
border-bottom: 1px solid white;
border-right: 1px solid white;
-webkit-box-shadow: 4px 4px 15px rgba(50, 50, 50, 0.75);
-moz-box-shadow: 4px 4px 15px rgba(50, 50, 50, 0.75);
box-shadow: 4px 4px 15px rgba(50, 50, 50, 0.75);
}
|