wie weet hoe je slider moet centreren? ik heb geprobeerd center top 100px
maar dat werkt niet
maar dat werkt niet
06:
body {
margin-top: 0px;
background-color: #cccfd4;
font-family: arial;
}
.container {
width: 100%;
height: auto;
margin: 0px auto;
}
.background {
background-image: url("img/background.png");
height: 800px;
width: 100%;
}
.header {
background-image: url("img/header.png");
width: 100%;
height: 125px;
float: left;
}
.logo {
width: 300px;
height: 100px;
float: left;
margin-top: 10px;
margin-left: 40px;
}
.menu {
height: 30px;
width: 630px;
float: left;
margin-left: 20px;
margin-top: 32px;
}
.slider {
width: 800px;
height: auto;
margin-top: 20px;
margin-left: 100px;
float: left;
}
.content {
float: left;
width: 800px;
height: auto;
margin:0 auto;
}
.contentbox {
float: left;
width: 260px;
height: auto;
margin-left: 5px;
color: #191919;
font-size: 12px;
}
.groot_content {
height: 520px;
width: 800px;
float: left;
margin-left: 100px;
margin-top: 20px;
}
.content h2 {
color: #191919;
}
.footer {
float: left;
width: 100%;
height: 71px;
background-image: url("img/footer.png");
margin-top: 15px;
text-align: center;
padding-top: 25px;
color: #959595;
}
Afbeelding niet beschikbaarDe bron kon niet worden geladen (hambouwvof.nl).Bron openen ↗
47:Thommity schreef:heb hem gegevenKan je wat code geven? (HTML én CSS)
Thommity schreef:nee hij moet klein blijven.slider {
margin-left: auto;
margin-right: auto;
}
zoiets?
Sharpfmm schreef:toevoeging op 8 april 2013, 16:40:26:Laat eens online voorbeeld zien a.u.b
astu
Sharpfmm schreef:heb gestuurdLaat eens online voorbeeld zien a.u.b
Eleky schreef:hoe doek dit kan je het me uitleggen?Gooi om je slider een div heen met margin-left:auto; margin-right:auto; en een fixed width en je probleem is opgelost
Thommity schreef:weet jij oplossingKan je wat code geven? (HTML én CSS)
.slider {
width: 800px;
height: auto;
margin-top: 20px;
margin-left: 100px;
float: left;
} .slider {
width: 100%;
height: auto;
float: left;
}
.slider img {
margin:0 auto;
} <center></center> Maartenf schreef:Doe gewoon met center anders snapt ie het niet.
<center></center> Jordymen schreef:Heb je het geprobeerd?margin-left: auto;Eerdere citaten tonen
Thommity schreef:.slider {
margin-right: auto;
}
zoiets?
nee hij moet klein blijven