Hej alle
Sidder med 2 irriternde problemer som jeg godt kunne tænke mig løst.
Pkt 1 når jeg validerer css får jeg denne besked :
No error or warning found
To work as intended, your CSS style sheet needs a correct document parse
tree. This means you should use valid HTML.
Valid CSS information
a.. body {
a.. height : 100%;
b.. width : 100%;
c.. margin : 0;
d.. padding : 0;
e.. color : #000000;
f.. background-color : #ffffff;
}
b.. #logo {
a.. position : absolute;
b.. left : 0;
c.. top : 0;
d.. z-index : 1;
e.. border-width : 1px;
f.. border-style : solid;
g.. border-color : #000000;
h.. border-top : medium none inherit;
i.. border-left : medium none inherit;
j.. border-bottom : medium none inherit;
}
c.. #left {
a.. background-color : silver;
b.. position : absolute;
c.. left : 0;
d.. top : 71px;
e.. width : 150px;
f.. height : 100%;
g.. border-width : 1px;
h.. border-style : solid;
i.. border-color : #000000;
j.. border-left : medium none inherit;
}
d.. #content {
a.. padding-top : 0;
b.. margin-top : 55px;
c.. margin-left : 185px;
d.. margin-right : 50px;
e.. background-color : #ffffff;
}
e.. p {
a.. color : #000000;
}
f.. p.produkt {
a.. color : #000000;
b.. text-align : justify;
}
g.. h1 {
a.. color : #00309d;
b.. padding-bottom : 10px;
c.. background-color : #ffffff;
}
h.. #varebil {
a.. float : right;
b.. border-width : 1px;
c.. border-style : solid;
d.. border-color : #000000;
}
i.. #menu {
a.. background : green;
b.. height : 22px;
c.. width : 100%;
d.. position : absolute;
e.. left : 0;
f.. top : 0;
}
j.. .menuforside {
a.. position : absolute;
b.. top : 0;
c.. left : 175px;
}
k.. .menuprodukt {
a.. position : absolute;
b.. top : 0;
c.. left : 265px;
}
l.. .menuprofil {
a.. position : absolute;
b.. top : 0;
c.. left : 375px;
}
m.. .menucontainersalg {
a.. position : absolute;
b.. top : 0;
c.. left : 540px;
}
n.. .menukontakt {
a.. position : absolute;
b.. top : 0;
c.. left : 675px;
}
o.. a:link {
a.. font-family : arial, verdana, sans-serif;
b.. font-size : 0.8em;
c.. font-weight : bold;
d.. color : #ffffff;
e.. text-decoration : none;
}
p.. a:visited {
a.. font-family : arial, verdana, sans-serif;
b.. font-weight : bold;
c.. font-size : 0.8em;
d.. color : #ffffff;
e.. text-decoration : none;
}
q.. a:active {
a.. font-family : arial, verdana, sans-serif;
b.. font-size : 0.8em;
c.. font-weight : bold;
d.. color : #ffffff;
e.. text-decoration : none;
}
r.. a:hover {
a.. font-family : arial, verdana, sans-serif;
b.. font-size : 0.8em;
c.. font-weight : bold;
d.. color : #ffffff;
e.. text-decoration : none;
}
Det andet problemer er når jeg vil validere index. html får jeg så denne
besked :
Sorry, I am unable to validate this document because its content type is
text/plain, which is not currently supported by this service.
The Content-Type field is sent by your web server (or web browser if you use
the file upload interface) and depends on its configuration. Commonly, web
servers will have a mapping of filename extensions (such as ".html") to MIME
Content-Type values (such as text/html).
That you recieved this message can mean that your server is not configured
correctly, that your file does not have the correct filename extension, or
that you are attempting to validate a file type that we do not support yet.
In the latter case you should let us know that you need us to support that
content type (please include all relevant details, including the URL to the
standards document defining the content type) using the instructions on the
Feedback Page.
Html`en i index filen :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<TITLE>Computergrossisten - forside</TITLE>
<link rel="stylesheet" type="text/css" href="style.css">
<META name="description" content="">
<META name="keywords" content="">
<META name="generator" content="CuteHTML">
</HEAD>
<BODY>
<div id="logo"><img src="../logo.gif">
</div>
<div id="left">
</div>
<div id="content">
<h1>Velkommen</h1>
<br>
<p>bla bla bla.</p>
<p>bla bla bla</p>
<p>bla bla bla.</p>
</div>
<div id="menu">
<a class="menuforside" href=" ../html/index.html">Forside</a>
<a class="menuprodukt" href="../html/produkt.html">Produkter</a>
<a class="menuprofil" href="../html/profil.html">Virksomhedsprofil</a>
<a class="menucontainersalg"
href="../html/containersalg.html">Containersalg</a>
<a class="menukontakt" href="../html/kontakt.html">Kontakt</a>
</div>
</BODY>
</HTML>
Håber i kan overskue al den text, ellers bær over med mig hvis smøren er for
stor.
Pkt. 2 Jeg får en lodret scrollbar, som jeg også har lidt problemer med at
få væk.
Håber på feedback
/TheCrow