Jeg har fundet ud af det tak men hvordan rykker jeg den pink firkant op på min side så den sidder ved siden af de andre firkanter file:///C:/Users/elev1/Documents/NetBeansProjects/Tester/Mappe1/folder/Test2.xhtml koden er:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Experience</title>
<link rel="stylesheet" href="CSS.css" type="text/css"/>
</head>
<body>
<style type="text/css">
img {
display: block;
margin: 0 auto;
}
#hoved {
width: 1300px;
height: 1000px;
margin-left: auto;
margin-right: auto;
border-style: solid;
border-width: thin;
background-color:black;
}
#top {
width: 1300px;
height: 100px;
margin-left: auto;
margin-right: auto;
border-style: solid;
border-width: thin;
text-align: center;
background-color:black;
}
#menu {
width: 200px;
height: 200px;
border-style: groove;
border-width: thick;
border-color: green;
margin-left: 0px;
float: left;
background-color:red;
}
#midt {
width: 870px;
height: 1000px;
margin-top: auto;
margin-right: auto;
margin-left: auto;
border-style: solid;
border-width: thin;
background-color:pink;
}
#indhold {
width: 200px;
height: 200px;
border-style: groove;
border-width: thick;
border-color: green;
margin-left: auto;
background-color:red;
}
</style>
<div id="hoved">
<div id="top"><img src="banner.png" alt="banner" /> </div>
<div id="menu"><marquee behavior="scroll" direction="up" scrollamount="1">Test Max</marquee></div>
<div id="indhold"><marquee behavior="scroll" direction="up" scrollamount="1">Test Max</marquee></div>
<div id="midt">Midt</div>
</div>
</body>
</html>
Indlæg senest redigeret d. 21.11.2013 10:56 af Bruger #17776