Jump to content
php.lv forumi

div tagu centreshana


matx

Recommended Posts

Lieta taada, ka nesanaak iecentret <div></div> tagus!

 

Kods

<html>

<body style="text-align:center; background-color:#CCCCCC;">

<div style="width:100px; text-align:center; height:80px; background-color:#999999; color:#0000FF;">kkas</div>

<div style="width:100px; height:80px; background-color:#999999; color:#0000FF;">kkas</div>

<div style="width:100px; height:80px; background-color:#999999; color:#0000FF;">kkas</div>

<div style="width:100px; height:80px; background-color:#999999; color:#0000FF;">kkas</div>

</body>

</html>

 

problema: visam vajadzeetu iecentreeties (?!) tachu taa tas nenotiek, ne uz Opera un FireFox...

 

kaa risinaat sho probleemu? paldies

Link to comment
Share on other sites

<html>
<body>

<div style="width: 100%; text-align: center;">
<div width="100px">viss cits</div>
<div width="100px">un veeel</div>
<div width="100px">galugalaa shitais</div>
</div>

</body>
</html>

Edited by kaszu
Link to comment
Share on other sites

×
×
  • Create New...