Jump to content
php.lv forumi

div ar tabulu probza


ebw

Recommended Posts

varbuut kaads var izliidzeet. meegjinu te uztaisiit te taadu lietu, kaa klikojot uz bildes atveras div. viss itkaa buutu labi liidz briidim kad divaa ieliek iekshaa tabulu.

tad uzreiz viss dizains tiek izstaipiits.

 

pats vinjsh apmeeram shaads (normal raadaas):

<div id="someDiv" class="floater">
some text in div
</div>

 

klase vinjam:

.floater {
position:absolute;
background-color: #CCC;
left:216px;
top:256px;
height: 28px;
width:98px;
}

 

es nez. varbuut tai tabulai kas divaa ir kautkas css janoraada atseviski?

kur vareetu buut tas triks?

jau ieprieksh pateicos!

Link to comment
Share on other sites

nu teiksim divs ir nopozicioneets peec left un top. vinjsh arii atrodas tur kur vinjam jaabuut..

 

divs

<div id="someDiv" class="floater">
some text in div
</div>

 

css

.floater {
position:absolute;
background-color: #CCC;
left:216px;
top:256px;
height: 28px;
width:98px;
}

 

bet kad ieliek tai pashaa divaa tabulu

 

<div id="someDiv" class="floater">
<table>
<tr>
<td>some text in div table</td>
</tr>
</table>
</div>

 

tad tas divs paraadaas pavisam kautkur malaa, nevis tur kur vinjam ir jaatrodas (peec top un left)..

kapeec divs ar tabulu neraadaas tajaa pashaa vietaa kur div bez tabulas, bet kaukur malaa?

Link to comment
Share on other sites

iznem laukaa class="floater" no otraa div

 

class="floater" atkaarojas tapeec vinsh paraadaas citur top left noraadiitajos attaalumos

<div id="someDiv" class="floater">
<table>
<tr>
<td>some text in div table</td>
</tr>
</table>
</div>

kapeec divs ar tabulu neraadaas tajaa pashaa vietaa kur div bez tabulas, bet kaukur malaa?
Edited by Ā§°ģčļ€’’
Link to comment
Share on other sites

×
×
  • Create New...