Hello!
I have a little problem with my html/css, It only works in Chrome, in Safari or IE the site looks completely different. In most similar questions the problem was the type="css", what needs to be type="tekst/css ". Unfortunately that was not the case. I hope someone can find something in my code!
Note: I am veeeeeery new to all of this (also new to this forum), so my html and style-sheet might (and probably will) be full of useless codes (correction of course appreciated!), but now I'm focusing on this - only works in Chrome - problem .
(My English might be rubbish, sorry for that in advance )
So here is the HTML
<! DOCTYPE html>
<html lang=nl>
<head>
<meta charset=utf-8>
<meta name=description content="pagina beschrijving">
<meta name=keywords content="key, words">
<title>Pagetitle</title>
<link rel="stylesheet" type="tekst/css" href="css/index.css" media="screen" />
<style type="text/css">
body </style>
</head>
<body>
<div id="pageframe">
<div id="header">
<img src="pics/header.gif" width="1440" height="1000">
</div>
<div id="menu">
<ul>
<li><a class="back" href="#"> BACK</a></li>
<li><a href="#">MENU1</a></li>
<li><a href="#">MENU2</a></li>
<li><a href="#">MENU3</a></li>
<li><a class="bprojects" href="#">bprojects</a></li>
</ul>
</div>
<div id="content">
<div id="text">
<h3>Lorem ipsum dolor sit amet </h3>
<hr>
<p>
Lorem ipsum dolor
</p>
<hr><p>
Lorem ipsum dolor
</p>
<p>
Lorem ipsum dolor
</p>
<p>
Lorem ipsum dolor
</p>
</div>
</div>
<div id="footer"> <p class="foot"> <a class="voeta" href="http://www.Baka.inmyclan.com">Bprojects</a> - Name ©Copyright 2013 - 2014 </p> </div>
</div>
</body>
</html>
And my stylesheet:
html, body {
height: 100%;
}
hr { height: 0; border-width: 2px 0 0 0; border-color:
black; border-radius: 3px; box-shadow: 0 4px 2px -2px rgba(0,0,0,0.4);
border: 0;
height: 2px;
background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
background-image: -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
background-image: -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
background-image: -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
}
body {
overflow-x:hidden;
background-image: url(../pics/bg.gif);
background-repeat: no-repeat;
background-attachment:fixed;
background-color: #00000;
}
h1, h2, h3, p {
font-family: ARIAL;
}
/* reset voor browser defaults */
body, form, fieldset, input, textarea {
margin: 0; padding: 0; border: 0; outline: none;
}
#fbbanner {
position: absolute;
top: 100px;
left: 1300px;
z-index: 2;
margin-left: 0px;
}
#soundcloud {
position: absolute;
top: 100px;
left: 1240px;
z-index: 2;
margin-left: 0px;
}
#pageframe {
width: 1440px;
margin-left: auto;
margin-right: auto;
position: relative;
max-width: 1440px;
}
#header {
height: 302px;
width: 1080px;
position: relative;
top: 0px;
z-index: 1;
margin-left: 0px;
}
li {
display:inline;
}
#menu {
text-align: center;
margin-left: 25px;
font-family: ARIAL;
font-size: 20px;
position: relative;
top: -5px;
left: 140px;
z-index: 3;
}
.bprojects {
opacity: 0.5;
color: black;
position: relative;
top: -130px;
right: 150px;
}
.back {
color: black;
position: relative;
top: 7px;
left: -200px;
}
ul {
padding:auto;
margin:0px;
}
a {
text-decoration:none;
color:white;
margin-right: 60px;
font-weight: bold;
}
a:hover {
color:#123456;
}
a:active {color:#123456;}
#fbbanner:hover {
opacity: 0.7;
}
#soundcloud:hover {
opacity: 0.7;
}
#content {
height: 660px;
width: 1040px;
position: relative;
top: -25px;
left: 200px;
z-index: 1000;
}
#text {
text-align: left;
position: relative;
left: 20px;
top: 50px;
margin-right: 40px;
z-index: 1001;
}
h3 {
text-align: center;
text-shadow: rgba(0, 0, 0, 0.199219) 1px 3px 2px, rgba(255, 255, 255, 0) 0px -4px 30px;
}
p {
font-family: ARIAL;
font-size: 11pt;
position: relative;
}
.welkom {
text-shadow: rgba(0, 0, 0, 0.199219) 1px 2px 2px, rgba(255, 255, 255, 0) 0px -2px 15px;
position: absolute;
top: 210px;
left: 115px;
font-size: 20pt;
}
#footer {
position: relative;
text-align: center;
color: black;
font-family: ARIAL;
font-size: 12pt;
position: relative;
bottom: 10px;
}
p.foot {
text-align: center;
text-shadow: rgba(0, 0, 0, 0.199219) 2px 6px 5px, rgba(255, 255, 255, 0.398438) 0px -4px 30px;
color: black;
text-decoration: none;
}
.voeta {color: black;}
Thanks,
Martaizoku