richardbakker
Gebruiker
- Lid geworden
- 9 mrt 2010
- Berichten
- 44
Hallo,
Ik moet voor mijn opleiding een website maken dit lukt aardig, alleen nu heb ik een probleem. Ik heb tekst ingevoerd en alles uitgelijnd zodat alles goed staat in mijn lay-out. Nu wou ik de tekst aanpassen, maar toen verschoven delen op mijn web site. De tekst koppen schoven naar onder en ook mijn coppy right tekst.
Ik heb voorbeeld
dit is hoe het goed uitgelijnd is:
en hier heb ik alleen het woordje test toegevoegd en het andere schuift mee
:
dit zijn mijn code's ho het goed uitgelijnd staat:
HTML:
CSS:
Ik moet voor mijn opleiding een website maken dit lukt aardig, alleen nu heb ik een probleem. Ik heb tekst ingevoerd en alles uitgelijnd zodat alles goed staat in mijn lay-out. Nu wou ik de tekst aanpassen, maar toen verschoven delen op mijn web site. De tekst koppen schoven naar onder en ook mijn coppy right tekst.
Ik heb voorbeeld
dit is hoe het goed uitgelijnd is:
en hier heb ik alleen het woordje test toegevoegd en het andere schuift mee
dit zijn mijn code's ho het goed uitgelijnd staat:
HTML:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Index</title>
<link href="stylesheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="image">
</div>
<div class="container">
<div class="button1">
<a href="index.html">Home</a>
</div>
<div class="button2">
<a href="portfolio.html">Portfolio</a>
</div>
<div class="button3">
<a href="about.html">About</a>
</div>
<div class="button4">
<a href="music.html">Music</a>
</div>
<div class="button5">
<a href="music.html">Contact</a>
</div>
<div class="midden">
Welkom op mijn portfolio website. deze<br>
website heb ik gemaakt in opdracht van <br>
school. Ik doe de opleiding media vormgeving<br>
op het friesland college in Heerenveen.
<br>
<br>
Veel plezier op mijn website, en voor vragen<br>
en/of opmerkingen kunt u contact met mij opnemen.
</div>
<div class="midden2">
Welcome..
</div>
<div class="midden3">
27th januari: site in ontwikkeling
</div>
<div class="midden4">
News..
</div>
<div class="midden5">
®Richard Bakker<br>
All rights reserved
</div>
</div>
</body>
</html>
CSS:
Code:
body
{
position:relative;
background-color:#000;
margin-left:auto;
margin-right:auto;
}
.container{
width:1024px;
height:768px;
margin: 0 auto;
text-align:left;
}
.image
{
width:1000px;
height:900px;
background-image: url(website.png);
margin-left:auto;
margin-right:auto;
}
a{
color:#FFF;
text-decoration: none;
}
p {
color:#FFF;
margin:0;
}
a:hover
{
color:#fff;
text-decoration:underline;
}
.button1
{
position: relative;
margin-top:-780px;
left:165px;
font-family:Tahoma, Geneva, sans-serif;
font-size:18px;
color:#FFF;
margin-left:auto;
margin-right:auto;
text-decoration: none;
}
.button2
{
position: relative;
margin-top:-21px;
left:263px;
font-family:Tahoma, Geneva, sans-serif;
font-size:18px;
color:#FFF;
margin-left:auto;
margin-right:auto;
text-decoration: none;
}
.button3
{
position: relative;
margin-top:-21px;
left:395px;
font-family:Tahoma, Geneva, sans-serif;
font-size:18px;
color:#FFF;
margin-left:auto;
margin-right:auto;
text-decoration: none;
}
.button4
{
position: relative;
margin-top:-21px;
left:505px;
font-family:Tahoma, Geneva, sans-serif;
font-size:18px;
color:#FFF;
margin-left:auto;
margin-right:auto;
text-decoration: none;
}
.button5
{
position: relative;
margin-top:-21px;
left:612px;
font-family:Tahoma, Geneva, sans-serif;
font-size:18px;
color:#FFF;
margin-left:auto;
margin-right:auto;
text-decoration: none;
}
.logo
{
position: relative;
margin-top:-21px;
left:612px;
width:40px;
height:40px;
image: url: (hyves_logo.png)
margin-left:auto;
margin-right:auto;
}
.midden {
position: relative;
margin-left: auto;
margin-right: auto;
left: 77px;
top: 190px;
border: 0px solid gray;
background-color: transparant;
color: Dark-Grey;
font-family: Arial, Helvetica, sans-serif;
font-style:normal;
font-weight:300;
font-size: 11pt;
padding: 5px;
text-align: left;
width: 700px;
}
.midden2 {
position: relative;
margin-left: auto;
margin-right: auto;
left: 73px;
top: 5px;
border: 0px solid gray;
background-color: transparant;
color: 343434;
font-family: Arial, Helvetica, sans-serif;
font-style:normal;
font-weight:bold;
font-size: 22pt;
padding: 5px;
text-align: left;
width: 700px;
}
.midden3 {
position: relative;
margin-left: auto;
margin-right: auto;
left: 555px;
top: 30px;
border: 0px solid gray;
background-color: transparant;
color: 343434;
font-family: Arial, Helvetica, sans-serif;
font-style:normal;
font-weight:300;
font-size: 8pt;
padding: 5px;
text-align: left;
width: 700px;
}
.midden4 {
position: relative;
margin-left: auto;
margin-right: auto;
left: 550px;
top:-55px;
border: 0px solid gray;
background-color: transparant;
color:343434;
font-family: Arial, Helvetica, sans-serif;
font-style:normal;
font-weight:bold;
font-size: 22pt;
padding: 5px;
text-align: left;
width: 700px;
}
.midden5 {
position: relative;
margin-left: auto;
margin-right: auto;
left: 315px;
top: 350px;
border: 0px solid gray;
background-color: transparant;
color:white;
font-family: Arial, Helvetica, sans-serif;
font-style:normal;
font-weight:bold;
font-size: 11pt;
padding: 5px;
text-align: left;
width: 700px;
}
Laatst bewerkt: