|
Categorieën >
HTML & CSS
images (Opgelost)
|
|
|
offline
|
Onbekend
|
heey sm,
ik ben bezig met een site,
en daar staat een plaatje in die ik heb gecentreerd,
alleen hij staat in plaats van in het midden, teveel naar rechts.
iemand enig idee hoe ik die tog in het midden kan krijgen? |
6 antwoorden
|
|
|
offline
|
Nieuw lid
|
centreren en niet in de midden staan? lekker wazig
width:xxxpx; /*verplicht ism onderstaande*/
margin:auto;
width:xxxpx; /*verplicht ism onderstaande*/ margin:auto;
|
joeyask – 13/04/2010 22:19 (Laatst gewijzigd op 13/04/2010 22:20)
|
|
offline
|
Onbekend
|
|
larssy1 – 13/04/2010 22:19 (Laatst gewijzigd op 13/04/2010 22:21)
|
|
offline
|
MySQL beginner
|
hoi joey,
Iets meer details zou zeer van pas komen.
Bijv. Gebruik je <table> of <div> codering.
En zou je aub je css + index + plaatje kunnen posten?
Lange codes aub op plaatscode.be
------------------
margin-left: - (helft pixels van je afbeelding)
bijv:
afbeelding breedte: 200
margin-left: -100px;
|
|
|
|
offline
|
Onbekend
|
<!DOCTYPE html PUBLIC "NL">
<head>
<title>mijn scooter</title>
<link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>
<div class="container c3">
<h2>mijn scooter!</h2>
dit is mijn scooter.<br />
het is een keeway f-act 50.<br />
loopt 67 op de teller<br>
mooie kleur blauw<br>
bouwjaar 2008.<br /><br />
<img src="C:\Users\joey\Desktop\webdesign\web\scooter.jfif" width="350" height="230"/>
<table class="c1" border="1" style="float:left;" >
<tr>
<td>
• <a href="1e.htm">mijn scooter</a></tr>
<tr>
<td>
• meer foto's</td>
<tr>
<td>
• <a href="3e.htm">over mij</a></td></tr>
</table><br>
<a href="mailto:joey_de_best1@hotmail.com">mail voor tips!</a>
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "NL"> <link rel="stylesheet" href="style.css" type="text/css" /> <div class="container c3"> dit is mijn scooter. <br />het is een keeway f-act 50. <br />loopt 67 op de teller <br>bouwjaar 2008. <br /><br /> <img src="C:\Users\joey\Desktop\webdesign\web\scooter.jfif" width="350" height="230"/> <table class="c1" border="1" style="float:left;" > • <a href="1e.htm">mijn scooter </a></tr> • <a href="3e.htm">over mij </a></td></tr> <a href="mailto:joey_de_best1@hotmail.com">mail voor tips! </a>
body {color:white; font-family:verdana; background-color:#333333;}
h2 {color:#993333; font-family:times new roman; font-style:italic;}
div
a:link { color: red }
a:visited { color: gray}
a:hover { color: purple }
a:active { color: green }
.container {
margin: -19px auto;
border: 1px solid #white;
width: 920px;
height: 455px;
background-color:black;
position: center;
}
.rood {color:rood;}
div.c3 {text-align: center;}
.c1{background-color: black; text-align: left; margin: 30px;}
body {color:white; font-family:verdana; background-color:#333333;} h2 {color:#993333; font-family:times new roman; font-style:italic;} div a:link { color: red } a:visited { color: gray} a:hover { color: purple } a:active { color: green } .container { margin: -19px auto; border: 1px solid #white; width: 920px; height: 455px; background-color:black; position: center; } .rood {color:rood;} div.c3 {text-align: center;} .c1{background-color: black; text-align: left; margin: 30px;}
|
|
|
|
offline
|
MySQL beginner
|
Astu 
Zelf getest , werkt goed hier (zie http://83.119.181.103/asdf)
<!DOCTYPE html PUBLIC "NL">
<head>
<title>mijn scooter</title>
<link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>
<div class="container c3">
<h2>mijn scooter!</h2>
dit is mijn scooter.<br />
het is een keeway f-act 50.<br />
loopt 67 op de teller<br>
mooie kleur blauw<br>
bouwjaar 2008.<br /><br />
<img src="http://www.chesterfield.nl/images/meubel_normaal/Cornham4%20350x230.jpg" class="img_" />
<table class="c1" border="1" style="float:left;" >
<tr>
<td>
• <a href="1e.htm">mijn scooter</a></tr>
<tr>
<td>
• meer foto's</td>
<tr>
<td>
• <a href="3e.htm">over mij</a></td></tr>
</table><br>
<a href="mailto:joey_de_best1@hotmail.com">mail voor tips!</a>
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "NL"> <head> <title>mijn scooter</title> <link rel="stylesheet" href="style.css" type="text/css" /> </head> <body> <div class="container c3"> <h2>mijn scooter!</h2> dit is mijn scooter.<br /> het is een keeway f-act 50.<br /> loopt 67 op de teller<br> mooie kleur blauw<br> bouwjaar 2008.<br /><br /> <img src="http://www.chesterfield.nl/images/meubel_normaal/Cornham4%20350x230.jpg" class="img_" /> <table class="c1" border="1" style="float:left;" > <tr> <td> • <a href="1e.htm">mijn scooter</a></tr> <tr> <td> • meer foto's</td> <tr> <td> • <a href="3e.htm">over mij</a></td></tr> </table><br> <a href="mailto:joey_de_best1@hotmail.com">mail voor tips!</a> </div> </body> </html>
body {color:white; font-family:verdana; background-color:#333333;}
h2 {color:#993333; font-family:times new roman; font-style:italic;}
div
a:link { color: red }
a:visited { color: gray}
a:hover { color: purple }
a:active { color: green }
.container {
margin: -19px auto;
border: 1px solid #white;
width: 920px;
height: 455px;
background-color:black;
position: center;
}
.rood {color:rood;}
div.c3 {text-align: center;}
.c1{background-color: black; text-align: left; margin: 30px;}
.img_
{
width: 350px;
height: 230px;
margin-left: -175px;
}
body {color:white; font-family:verdana; background-color:#333333;} h2 {color:#993333; font-family:times new roman; font-style:italic;} div a:link { color: red } a:visited { color: gray} a:hover { color: purple } a:active { color: green } .container { margin: -19px auto; border: 1px solid #white; width: 920px; height: 455px; background-color:black; position: center; } .rood {color:rood;} div.c3 {text-align: center;} .c1{background-color: black; text-align: left; margin: 30px;} .img_ { width: 350px; height: 230px; margin-left: -175px; }
|
|
|
|
offline
|
Onbekend
|
super bedankt hij werkt!!
|
Dit onderwerp is gesloten.
|
|
|