Wszystko oprócz tego działa robiłem jak w filmiku https://www.youtube.com/watch?v=2nWSCxIpHfc
Niestety zdjęcie w rubryce reklamy (ad) nie chce zmienić proporcji, zdjęcie jest dużo większe niż autor użył na filmiku. Zdjęcie jest w tym samym folderze co kod i ma nazwę ad1.jpg
Załączam kod:
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="utf-8"/>
<title>Najlepsze seriale!</title>
<meta name="description" content="Przed Tobą spis najlepszych seriali"/>
<meta name="keywords"content="top 5, series, best, watch, movies" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<style>
#container
{
width: 1000px;
margin-left: auto;
margin-right: auto;
}
#logo
{
background-color: black;
color: white;
text-align: center;
padding: 15px;
}
#nav
{
float: left;
background-color: lightgray;
width: 120px;
min-height: 620px;
padding: 10px;
}
#content
{
float: left;
padding: 30 px;
width: 600px
}
#ad
{
float: left;
width: 160px;
max-height: 620px;
padding: 10px;
background-color: lightgray;
}
#footer
{
clear: both;
background-color: black;
color: white;
text-align: center;
padding: 20px;l
}
</style>
</head>
<body>
<div id="container">
<div id="logo">
<h1>Najlepsze seriale - subiektywne TOP 5</h1>
</div>
<div id="nav">
Games of Thrones <br/>
Dexter<br/>
Fargo<br/>
Berserk<br/>
House of Cards<br/>
</div>
<div id="content">
<h2>Game of Thrones</h2> is an American fantasy drama television series created by showrunners David Benioff and D. B. Weiss. It is an adaptation of A Song of Ice and Fire, George R. R. Martin's series of fantasy novels, the first of which is titled A Game of Thrones. It is filmed in a Belfast studio and on location elsewhere in Croatia, Iceland, Malta, Morocco, Northern Ireland, Spain, Scotland, and the United States, and premiered on HBO in the United States on April 17, 2011. The series has been renewed for a sixth season,[5] which will premiere on April 24, 2016.[6]
The series is set on the fictional continents of Westeros and Essos, and interweaves several plot lines with a large ensemble cast. The first narrative arc follows a civil war among several noble houses for the Iron Throne of the Seven Kingdoms; the second covers the attempts to reclaim the throne by the exiled last scion of the realm's deposed ruling dynasty; the third chronicles the rising threat of the impending winter and the legendary creatures and fierce peoples of the North.
</div>
<div id="ad">
<img src="ad1.jpg"/>
</div>
<div id="footer">
Best series TOP 5 © All rights reserved
</div>
</div>
</body>
</html>