php - text not breaking from column -
i have script simular see below:
#header2 { align:center; text-align:center; font-size: 24px; color:red; } #column { width:100%; } .lcol1 { float:left; width:16.5%; } .lcol2 { float:left; position: relative; width:16.5%; } .lcol3 { float:left; position: relative; width:16.5%; } .lcol4 { float:left; position: relative; width:16.5%; } .lcol5 { float:left; position: relative; width:16.5%; } .lcol6 { float:left; position: relative; width: } <div id="columns"> <span class="col1"> <?php $i=1; while ($i<$other) { echo "text1"; } ?> </span> <span class="col2"> <?php $i=1; while ($i<2) { echo "text2"; } ?> </span> <span class="col3"> <?php $i=1; while ($i<2) { echo "text3"; } ?> </span> <span class="col4"> <?php $i=1; while ($i<2) { echo "text4"; } ?> </span> <span class="col5"> <?php $i=1; while ($i<2) { echo "text5"; } ?> </span> <span class="col6"> <?php $i=1; while ($i<2) { echo "text6"; } ?> </span> </div> <div id="header2"> header2 </div>`enter code here` the problem "header2" still printing in column. if remove column 1 @ time header still printing in column? why? without php code works fine need php echo data. why php mess html here?
did use css property "float" columns ? if try put between "columns" div , "header2" div :
<div style="clear:both"></div> but without css it's difficult see problem...
Comments
Post a Comment