(06-05-2010, 03:40)razorskate napisał(a): Poczytaj sobie troszkę o float w CSSCałość można by zamknąć w jednym divie obejmującym wszystko i nadać pływanie dla elementów, a szerokość ustawiać procentowo
Kod:
<html>
<head><title>tst</title></head>
<body>
<div style="min-width: 400px; background-color:lime;">
<div style="width: 30%; background-color:red; float:left;">
img
</div>
<div style="width:70%px; background-color: gray; float:right;">
<div style="width:100%; background-color:brown;">
tytuł
</div>
<div style="width:100%; background-color:brown;">
opis
</div>
<div style="width:100%; background-color:brown;">
<div style="float:left; width: 50%; background-color: blue;">
cena
</div>
<div style="float: right; width:50%; background-color: aqua;">
cos tam
</div>
</div>
</div>
</div>
</body>
</html>
niestety, ciągle się rozjeżdża