Nie wiem jak wyświetlić czerwone elementy obok zielonych i nie wiem jak to zrobić. (po lewej zielony po prawej zielony w jednej lini)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl">
<div style="width:450px"> <div style="float:left;width:450px;height:50px;background-color: #666666;margin: 0 1px 0 0"></div> <div style="float:left;width:150px;height:50px;background-color: green;margin: 0 1px 0 0"></div> <div style="float:left;width:300px;height:50px;background-color: red"></div> <div style="float:left;width:150px;height:50px;background-color: green;margin: 0px 1px 0 0"></div> <div style="float:left;width:300px;height:50px;background-color: red; margin: 0px 1px 0 0"></div> <div style="float:left;width:450px;height:50px;background-color: yellow;margin: 1px 0 0 0"></div>
rozwiązanie mam ale pod IE się nie sprawdza :/
<div style="width:450px">
<div style="float:left;width:450px; height:50px;background-color: #666666; margin: 0 0px 1px 0"></div>
<div style="float:left;width:150px; height:50px;background-color: green; margin: 0px 0px 0px 0px"></div> <div style="float:left;width:300px; height:50px;background-color: red; margin: -50px 0px 1px 150px"></div>
<div style="float:left;width:150px; height:50px;background-color: green; margin: 0px 0px 0px 0px"></div> <div style="float:left;width:300px; height:50px;background-color: red; margin: -50px 0px 1px 150px"></div>
<div style="float:left;width:150px; height:50px;background-color: green; margin: 0px 0px 0px 0px"></div> <div style="float:left;width:300px; height:50px;background-color: red; margin: -50px 0px 1px 150px"></div>
kod działa poprawnie tylko w ff jak to poprawić ? Podejrzewam że chodzi o ujemny margines