0 Users appreciate this thread.
HELP! CSS ERROR
TheAlexRider (2014-10-22 08:42:26)Solved: I forgot <!DOCTYPE HTML> and I also forgot to make the header directory
Stupid me
This topic is closed, so you can not post a comment.
Back to forum: Web Programming (HTML, JS, CSS, PHP, MySQL)
New registered users today: 7
Newest registered user: ElegantVulpes
Okay so basically Im coding a site, for my youth group. I converted my html page to php checked it and all CSS went away?
<div style="width: 800px; margin: 0px auto 0px auto;">
<table>
<tr>
<td width="60%" valign="top">
<h2>Welcome to CreedBook!</h2>
</td>
<td width="40%" valign="top">
<h2>Creed members sign up</h2>
<form action="#" method="POST">
<input type="text" name="fname" size="25" placeholder="First name" /> <br /><br />
<input type="text" name="lname" size="25" placeholder="Last Name" /> <br /><br />
<input type="text" name="uname" size="25" placeholder="Username" /> <br /><br />
<input type="text" name="email" size="25" placeholder="Email" /> <br /><br />
<input type="text" name="cemail" size="25" placeholder="Confirm Email" /> <br /><br />
<input type="password" name="pass" size="25" placeholder="Password" /> <br /><br />
<input type="password" name="cpass" size="25" placeholder="Confirm password" /> <br /><br />
<input type="submit" name="submit" placeholder="Join Creed!" /> <br /><br />
</form>
</td>
</tr>
</table>
</div>
</body>
</html>
<html>
<head>
<title>CreedBook</title>
<link rel="stylesheet" type="text/css" href="./css/style.css" />
</head>
<body>
<div class="headerMenu">
<div id="wrapper">
<div class= "logo">
<img src="./img/logo.png" />
</div>
<div class="search_box">
<FORM action="search.php" method "GET" id="search">
<input type="text" name="q" size="60" placeholder="Click to search!"
</FORM>
</div>
<div id="menu">
<a href="#" />Home</a>
<a href="#" />About</a>
<a href="#" />Sign Up</a>
<a href="#" />Log in</a>
</div>
</div>
</div>
* {
margin: 0px;
padding: 0px;
font-family: Arial, Helvetica, Sans-serif;
font-size: 12px;
background-color: #eff5f9;
}
.headerMenu {
background-image: url(../img/header_bar.png);
height: 56px;
border-bottom: 0px;
padding-left: auto;
padding-right: auto;
width: 100%;
}
#wrapper {
background-image: url(../img/header_bar.png);
margin-left: auto;
margin-right: auto;
width: 1000px;
padding-top: 0px;
}
.logo {
background-image: url(../img/header_bar.png);
width: 125px;
}
.logo img {
background-image: url(../img/header_bar.png);
width: 158px;
height: 38px;
padding-top: 5px;
}
.search_box {
background-image: url(../img/header_bar.png);
position: absolute;
top: 14px;
margin-left: 135px;
padding-top: 5px;
padding-bottom: 5px;
}
#search input[type="text"] {
background-color: #368dcf;
outline:none;
border: 0 none;
font: bold 12px Arial,Helvetica,Sans-serif;
width: 350px;
padding: 9px 15px 9px 35px;
margin: 0px;
text-shadow: 0 2px 2px rgba(0, 0, 0, 3.3);
-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
-webkit-transition: all 0.7s ease 0s;
-moz-transition: all 0.7s ease 0s;
-o-transition: all 0.7s ease 0s;
transition: all 0.7 ease 0s;
border-color: #368dcf;
padding-top: 5px;
padding-bottom: 5px;
}
#search input[type="text"]:focus {
background-color: #368fcb;
color: #6a6f75;
width: 350px;
-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) 0 1px 0 rgba(0, 0, 0, 0.9) inset;
-moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) 0 1px 0 rgba(0, 0, 0, 0.9) inset;
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) 0 1px 0 rgba(0, 0, 0, 0.9) inset;
text-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}
@media screen and (max-width: 1280px) {
#menu {
background-image: url(../img/header_bar.png);
position: absolute;
top:0px;
right: 0px;
height: 37px;
padding-top: 19px;
margin-right: 4%;
}
}
@media screen and (min-width: 1280px) {
#menu {
background-image: url(../img/header_bar.png);
position: absolute;
top:0px;
right: 0px;
height: 37px;
padding-top: 19px;
margin-right: 6%;
}
}
#menu a {
color: #FFFFFF;
text-decoration: none;
font-size: 14px;
background-image: url(../img/header_bar.png);
background-repeat: repeat;
padding-top: 19px;
padding-bottom: 33px;
padding-left: 10px;
padding-right: 10px;
padding-bottom: 10px;
}
#menu a hover{
color: #FFFFFF;
background-image: url(../img/hover_bar.png);
}
@media screen and (min-width: 1290px) {
#menu {
background-image: url(../img/header_bar.png);
position: absolute;
top:0px;
right: 0px;
height: 37px;
padding-top: 19px;
margin-right: 25%;
bottom: 0px;
}
h2 {
font-family: Arial, Helvetica, Sans-serif;
font-size: 18px;
padding: 8px;
color: #0084C6;
}
input[type="text"] {
background-color: #FFFFFF;
border: 1px solid #E2E2E2;
font-size: 15px;
padding: 5px;
width: 300px;
margin-bottom: 3px;
margin-top: 3px;
}
input[type="password"] {
background-color: #FFFFFF;
border: 1px solid #E2E2E2;
font-size: 15px;
padding: 5px;
width: 300px;
margin-bottom: 3px;
margin-top: 3px;
}
input[type="submit"] {
background-color: #FFFFFF;
border: 1px solid #E2E2E2;
font-size: 15px;
padding: 5px;
width: 300px;
margin-bottom: 3px;
margin-top: 3px;
}
input[type="text"]:hover {
border: 1px solid #006FC4;
}
input[type="password"]:hover {
border: 1px solid #006FC4;
}