otóż mam diva na cała szerokość okna przegladarki(a zaraz pod nim drugi taki sam)
i w tym divie jest slider
jednak nie potrafie tak zmanipulowac obrazkiem żeby ten byl rozciagniety na calego diva
robi sie albo
-scrool w tym divie
-albo rozciaga sie div na wysokosc obrazka
Kod
<!DOCTYPE html>
<html>
<head>
<style>
html,body{
margin:0;
padding:0;
}
.content{
width:100%;
height:100%;
background-color:red;
margin:auto;
}
.content img{
width:100%;
max-width:100%;
height:100%;
max-height:100%;
}
</style>
</head>
<body>
<div class="content">
<img src="test.jpg" />
</div>
</body>
</html>
<html>
<head>
<style>
html,body{
margin:0;
padding:0;
}
.content{
width:100%;
height:100%;
background-color:red;
margin:auto;
}
.content img{
width:100%;
max-width:100%;
height:100%;
max-height:100%;
}
</style>
</head>
<body>
<div class="content">
<img src="test.jpg" />
</div>
</body>
</html>