Witam, jak ustawić elementy w następujący sposób?
Mam na myśli to co dzieje się w divie header.
Próbowałem już margin: auto, pozycjonowania za pomocą atrybutu position, ale zawsze mi się to wszystko rozjeżdża.
Z góry dzięki za pomoc i podrzucam kod:
<div id="content">
<div id="header">
<div id="photo"> <img src="photos/gimnazjum_logo.png" height="250px" width="250px"></div>
<div id="title">Szkoła Podstawowa imienia <br> bł. ks. Józefa Kowalskiego w Siedliskach
<div id="quotation">"Bogactwo i siłę zdobywa się usilną nauką i pracą.<br>
Nie dość chcieć trzeba czynić."<br>~Goethe</div>
</div>
</div>
#content
{
width: 1100px;
margin-top: 30px;
margin-bottom: 0;
margin-left: auto;
margin-right: auto;
postion: relative;
}
#header
{
height: 230px;
width: 1080px;
margin-top: 0;
margin-bottom: 0;
margin-left: auto;
margin-right: auto;
padding: 10px;
background-color: #53A5E5;
position: relative;
}
#photo
{
float: left;
}
#title
{
font-size: 48px;
font-family: 'Bebas Neue';
font-weight: 700;
letter-spacing: 3px;
color: white;
position: relative;
top: 50%;
margin: 0;
padding: 0;
}
#quotation
{
font-size: 20px;
color: black;
font-style: italic;
font-family: New Times Roman;
text-align: right;
letter-spacing: 0;
font-weight: 400;
text-align: right;
}