EdgarsK Posted October 6, 2009 Report Share Posted October 6, 2009 Sveiki, tātad mans HTML <div id="fit"> <div id="panel">Panela saturs<br>Bla<br>brla<br>bla<br>bla</div> <div id="content">Lapa</div> </div> un css #fit { margin:0 auto; width: 1000px; } #content { width:700px; } #panel { float:right; width:290px; } problema tagad ir tur, ka labais panelis iet pari fuuterim, jo tas ir "float" ka lai izdara, lai kods kurs ir float:right vilktu visu saturu uz leju tapat ka kods kuram nebutu float:right ? Quote Link to comment Share on other sites More sharing options...
marcis Posted October 6, 2009 Report Share Posted October 6, 2009 http://web.hc.lv/kods/css/raksti/css-float/ Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted October 25, 2009 Report Share Posted October 25, 2009 iekš css uztaisi: #fix{ clear:both; } pēc tam tur kur tu vēlies lai nav float tad apakšā ieliec šo: <div id='fix'></div> es vismaz tā daru un man strādā Quote Link to comment Share on other sites More sharing options...
nemakuphp Posted November 3, 2009 Report Share Posted November 3, 2009 Labāk gan lietot klases, nevis id, jo id taču ir tikai viens visā dokumentā ;) Quote Link to comment Share on other sites More sharing options...
nemec Posted November 6, 2009 Report Share Posted November 6, 2009 var arī iztikt bez lieka elementa <div style="width:100%;overflow:hidden;"> <div style="float:left;"> kreisais </div> <div style="float:right;"> labais </div> </div> Quote Link to comment Share on other sites More sharing options...
mefisto Posted November 6, 2009 Report Share Posted November 6, 2009 nemec, tas ir tikai daļējs risinājums ^^ autor: lasi http://www.positioniseverything.net/easyclearing.html Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.