Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Center

Parašė Narysx· 2008 Bir. 19 23:06:57
#1

Tarkim turiu tokį kodą:

<table style="margin:5px; border:1px solid #8888AA;" align="left" cellpadding="3" cellspacing="3" width="279">
<tr align="center" bgcolor="#00004D">
<td colspan="2"><font color="#C41E3A"><b>Table Name</b></font></td>
</tr>
<tr align="center">
<td colspan="2"><a
 class="image" title="asd"><img alt="asd" src="asdas" width="200" height="107" border="0" /></a></td>
</tr>
<center>
<tr bgcolor="#EEEEEE">
<td><b>asdas:</b></td>
<td>adsasn).</td>
</tr>
<tr bgcolor="#EEEEEE">
<td><b>asdas</b></td>
<td>Pasdasa.</td>
</tr>
<tr bgcolor="#EEEEEE">
<td><b>Ndasas</b></td>
<td>0adsas</td>
</tr>
<tr bgcolor="#EEEEEE">
<td><b>sdaas</b></td>
</td>
<td>asdas</td>
</tr>
</center>
</td>
</table>




<table style="margin:5px; border:1px solid #8888AA;" align="left" cellpadding="3" cellspacing="3" width="279">
<tr align="center" bgcolor="#008040">
<td colspan="2"><font color="#ffffff"><b>Basdas</b></font></td>
</tr>
<tr align="center">
<td colspan="2"><a
 class="image" title="asda"><img alt="asd" src=dasas" width="200" height="107" border="0" /></a></td>
</tr>
<center>
<tr bgcolor="#EEEEEE">
<td><b>Koasdasrencija:</b></td>
<td>adsas).</td>
</tr>
<tr bgcolor="#EEEEEE">
<td><b>asdas</b></td>
<td>Tadsas</td>
</tr>
<tr bgcolor="#EEEEEE">
<td><b>asdas</b></td>
<td>dasdas.</td>
</tr>
<tr bgcolor="#EEEEEE">
<td><b>dasas:</b></td>
</td>
<td>asdas</td>
</tr>
</center>
</td>
</table>





Kaip padaryti, kad tos abi lentelės būtų centre? Bet ne viena po kita? Kad abi būtų šalia ir centre? Logiškai pamasčius, uždėjus <center>, </center>, viskas tūrėtų būti gerai:


<center>
<table style="margin:5px; border:1px solid #8888AA;" align="left" cellpadding="3" cellspacing="3" width="279">
<tr align="center" bgcolor="#00004D">
<td colspan="2"><font color="#C41E3A"><b>Table Name</b></font></td>
</tr>
<tr align="center">
<td colspan="2"><a
 class="image" title="asd"><img alt="asd" src="asdas" width="200" height="107" border="0" /></a></td>
</tr>
<center>
<tr bgcolor="#EEEEEE">
<td><b>asdas:</b></td>
<td>adsasn).</td>
</tr>
<tr bgcolor="#EEEEEE">
<td><b>asdas</b></td>
<td>Pasdasa.</td>
</tr>
<tr bgcolor="#EEEEEE">
<td><b>Ndasas</b></td>
<td>0adsas</td>
</tr>
<tr bgcolor="#EEEEEE">
<td><b>sdaas</b></td>
</td>
<td>asdas</td>
</tr>
</center>
</td>
</table>




<table style="margin:5px; border:1px solid #8888AA;" align="left" cellpadding="3" cellspacing="3" width="279">
<tr align="center" bgcolor="#008040">
<td colspan="2"><font color="#ffffff"><b>Basdas</b></font></td>
</tr>
<tr align="center">
<td colspan="2"><a
 class="image" title="asda"><img alt="asd" src=dasas" width="200" height="107" border="0" /></a></td>
</tr>
<center>
<tr bgcolor="#EEEEEE">
<td><b>Koasdasrencija:</b></td>
<td>adsas).</td>
</tr>
<tr bgcolor="#EEEEEE">
<td><b>asdas</b></td>
<td>Tadsas</td>
</tr>
<tr bgcolor="#EEEEEE">
<td><b>asdas</b></td>
<td>dasdas.</td>
</tr>
<tr bgcolor="#EEEEEE">
<td><b>dasas:</b></td>
</td>
<td>asdas</td>
</tr>
</center>
</td>
</table>
</center>




Bet vistiek tas pats... Laukiu pagalbos...

Redagavo Narysx· 2008 Bir. 19 23:06:35

Parašė bruzgis· 2008 Bir. 20 09:06:20
#2

<table align='center' border='0' width='100%'><tr><td>1lentele</td><td>2lentele</td></tr></table>

Parašė Narysx· 2008 Bir. 20 17:06:17
#3

Nu bet pas mane kitaip. ?|

<table style="margin:5px; border:1px solid #8888AA;" align="left" cellpadding="3" cellspacing="3" width="279">




Jei padarau abi lenteles center, tai jos būna centre, bet ne viena šalia kitos, o viena viršui, kita apačioj. :|

Parašė Narysx· 2008 Bir. 20 18:06:12
#4

Padėkit...

Parašė Žmogus· 2008 Bir. 20 18:06:22
#5

Nu tai blogas tavo kodas... bandyk pagal chipo

Parašė Narysx· 2008 Bir. 20 18:06:44
#6

Nu bet man susiknis viskas. :| Juk turi būt įmanoma padaryti...
Padariau pagal jo koda, bet lentelės eina viena po kita, nors nėra <br>...

Redagavo Narysx· 2008 Bir. 20 18:06:20

Parašė Žmogus· 2008 Bir. 20 18:06:36
#7

<table style="margin:5px; border:1px solid #8888AA;" align="left" cellpadding="3" cellspacing="3" width="279">
<tr align="center" bgcolor="#00004D">
<td colspan="2"><font color="#C41E3A"><b>Table Name</b></font></td>
</tr>
<tr align="center">
<td colspan="2"><a
 class="image" title="asd"><img alt="asd" src="asdas" width="200" height="107" border="0" /></a></td>
</tr>
<center>
<tr bgcolor="#EEEEEE">
<td><b>asdas:</b></td>
<td>adsasn).</td>
</tr>
<tr bgcolor="#EEEEEE">
<td><b>asdas</b></td>
<td>Pasdasa.</td>
</tr>
<tr bgcolor="#EEEEEE">
<td><b>Ndasas</b></td>
<td>0adsas</td>
</tr>
<tr bgcolor="#EEEEEE">
<td><b>sdaas</b></td>
</td>
<td>asdas</td>
</tr>
</center>
</td>






<tr align="center" bgcolor="#008040">
<td colspan="2"><font color="#ffffff"><b>Basdas</b></font></td>
</tr>
<tr align="center">
<td colspan="2"><a
 class="image" title="asda"><img alt="asd" src=dasas" width="200" height="107" border="0" /></a></td>
</tr>
<center>
<tr bgcolor="#EEEEEE">
<td><b>Koasdasrencija:</b></td>
<td>adsas).</td>
</tr>
<tr bgcolor="#EEEEEE">
<td><b>asdas</b></td>
<td>Tadsas</td>
</tr>
<tr bgcolor="#EEEEEE">
<td><b>asdas</b></td>
<td>dasdas.</td>
</tr>
<tr bgcolor="#EEEEEE">
<td><b>dasas:</b></td>
</td>
<td>asdas</td>
</tr>
</center>
</td>
</table>




Try this

Parašė Narysx· 2008 Bir. 20 18:06:44
#8

ShadoVw parašė:
<table style="margin:5px; border:1px solid #8888AA;" align="left" cellpadding="3" cellspacing="3" width="279">
<tr align="center" bgcolor="#00004D">
<td colspan="2"><font color="#C41E3A"><b>Table Name</b></font></td>
</tr>
<tr align="center">
<td colspan="2"><a
 class="image" title="asd"><img alt="asd" src="asdas" width="200" height="107" border="0" /></a></td>
</tr>
<center>
<tr bgcolor="#EEEEEE">
<td><b>asdas:</b></td>
<td>adsasn).</td>
</tr>
<tr bgcolor="#EEEEEE">
<td><b>asdas</b></td>
<td>Pasdasa.</td>
</tr>
<tr bgcolor="#EEEEEE">
<td><b>Ndasas</b></td>
<td>0adsas</td>
</tr>
<tr bgcolor="#EEEEEE">
<td><b>sdaas</b></td>
</td>
<td>asdas</td>
</tr>
</center>
</td>






<tr align="center" bgcolor="#008040">
<td colspan="2"><font color="#ffffff"><b>Basdas</b></font></td>
</tr>
<tr align="center">
<td colspan="2"><a
 class="image" title="asda"><img alt="asd" src=dasas" width="200" height="107" border="0" /></a></td>
</tr>
<center>
<tr bgcolor="#EEEEEE">
<td><b>Koasdasrencija:</b></td>
<td>adsas).</td>
</tr>
<tr bgcolor="#EEEEEE">
<td><b>asdas</b></td>
<td>Tadsas</td>
</tr>
<tr bgcolor="#EEEEEE">
<td><b>asdas</b></td>
<td>dasdas.</td>
</tr>
<tr bgcolor="#EEEEEE">
<td><b>dasas:</b></td>
</td>
<td>asdas</td>
</tr>
</center>
</td>
</table>




Try this


Nu va... Vistiek... Viena lentelė auksčiau, kita žemiau.

Parašė Žmogus· 2008 Bir. 20 18:06:50
#9

Pas save bandžiau, žiauru :D
Dabar neturiu laiko, jei niekas nepadės,veliau pabandytsiu

Redagavo Žmogus· 2008 Bir. 20 19:06:39

Parašė bruzgis· 2008 Bir. 20 19:06:16
#10

te...

<table border='0' align='center' cellpadding='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#111111' width='66%' id='AutoNumber1' height='240'>
  <tr>
    <td width='50%' height='240'>
    <table style='margin:5px; border:0px solid #8888AA;; border-collapse:collapse' cellpadding='3' cellspacing='3' width='369' bordercolor='#111111'>
<tr align='center' bgcolor='#00004D'>
<td colspan='2' width='355'><font color='#C41E3A'><b>Table Name</b></font></td>
</tr>
<tr align='center'>
<td colspan='2' width='355'><a
 class='image' title='asd'><img alt='asd' src='asdas' width='200' height='107' border='0' /></a></td>
</tr>
<tr bgcolor='#EEEEEE'>
<td width='170'><b>asdas:</b></td>
<td width='176'>adsasn).</td>
</tr>
<tr bgcolor='#EEEEEE'>
<td width='170'><b>asdas</b></td>
<td width='176'>Pasdasa.</td>
</tr>
<tr bgcolor='#EEEEEE'>
<td width='170'><b>Ndasas</b></td>
<td width='176'>0adsas</td>
</tr>
<tr bgcolor='#EEEEEE'>
<td width='170'><b>sdaas</b></td>
<td width='176'>asdas</td>
</tr>
</table></td>
    <td width='50%' height='240'>
    <table style='margin:5px; border:0px solid #8888AA;; border-collapse:collapse' cellpadding='3' cellspacing='3' width='368' bordercolor='#111111' height='258'>
<tr align='center' bgcolor='#008040'>
<td colspan='2' width='354' height='19'><font color='#ffffff'><b>Basdas</b></font></td>
</tr>
<tr align='center'>
<td colspan='2' width='354' height='109'><a
 class='image' title='asda'><img alt='asd' src='dasas' width='200' height='107' border='0' /></a></td>
</tr>
<tr bgcolor='#EEEEEE'>
<td width='170' height='19'><b>Koasdasrencija:</b></td>
<td width='175' height='19'>adsas).</td>
</tr>
<tr bgcolor='#EEEEEE'>
<td width='170' height='19'><b>asdas</b></td>
<td width='175' height='19'>Tadsas</td>
</tr>
<tr bgcolor='#EEEEEE'>
<td width='170' height='19'><b>asdas</b></td>
<td width='175' height='19'>dasdas.</td>
</tr>
<tr bgcolor='#EEEEEE'>
<td width='170' height='19'><b>dasas:</b></td>
<td width='175' height='19'>asdas</td>
</tr>
</table></td>
  </tr>
</table>



Parašė Narysx· 2008 Bir. 20 19:06:34
#11

chipass parašė:
te...

<table border='0' align='center' cellpadding='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#111111' width='66%' id='AutoNumber1' height='240'>
  <tr>
    <td width='50%' height='240'>
    <table style='margin:5px; border:0px solid #8888AA;; border-collapse:collapse' cellpadding='3' cellspacing='3' width='369' bordercolor='#111111'>
<tr align='center' bgcolor='#00004D'>
<td colspan='2' width='355'><font color='#C41E3A'><b>Table Name</b></font></td>
</tr>
<tr align='center'>
<td colspan='2' width='355'><a
 class='image' title='asd'><img alt='asd' src='asdas' width='200' height='107' border='0' /></a></td>
</tr>
<tr bgcolor='#EEEEEE'>
<td width='170'><b>asdas:</b></td>
<td width='176'>adsasn).</td>
</tr>
<tr bgcolor='#EEEEEE'>
<td width='170'><b>asdas</b></td>
<td width='176'>Pasdasa.</td>
</tr>
<tr bgcolor='#EEEEEE'>
<td width='170'><b>Ndasas</b></td>
<td width='176'>0adsas</td>
</tr>
<tr bgcolor='#EEEEEE'>
<td width='170'><b>sdaas</b></td>
<td width='176'>asdas</td>
</tr>
</table></td>
    <td width='50%' height='240'>
    <table style='margin:5px; border:0px solid #8888AA;; border-collapse:collapse' cellpadding='3' cellspacing='3' width='368' bordercolor='#111111' height='258'>
<tr align='center' bgcolor='#008040'>
<td colspan='2' width='354' height='19'><font color='#ffffff'><b>Basdas</b></font></td>
</tr>
<tr align='center'>
<td colspan='2' width='354' height='109'><a
 class='image' title='asda'><img alt='asd' src='dasas' width='200' height='107' border='0' /></a></td>
</tr>
<tr bgcolor='#EEEEEE'>
<td width='170' height='19'><b>Koasdasrencija:</b></td>
<td width='175' height='19'>adsas).</td>
</tr>
<tr bgcolor='#EEEEEE'>
<td width='170' height='19'><b>asdas</b></td>
<td width='175' height='19'>Tadsas</td>
</tr>
<tr bgcolor='#EEEEEE'>
<td width='170' height='19'><b>asdas</b></td>
<td width='175' height='19'>dasdas.</td>
</tr>
<tr bgcolor='#EEEEEE'>
<td width='170' height='19'><b>dasas:</b></td>
<td width='175' height='19'>asdas</td>
</tr>
</table></td>
  </tr>
</table>




Nesamonė kažkoia gavos, ištampė lb saitą. Pamėgink pas save, pamatys.

EDIT:

Ai nea, kažkas panašaus, bet vistiek ne taip. Dabar man su dydžais Š gaunas... Pasakyk tiksliai ką pakeitei.

Redagavo Narysx· 2008 Bir. 20 19:06:20

Parašė Narysx· 2008 Bir. 20 19:06:59
#12

Na tai kaip...? :)

Parašė bruzgis· 2008 Bir. 20 21:06:54
#13

width='66%' sita keisk pagal save... html pasimokyk, atsisiusk koki dreamviewer ir susideliok

Parašė Narysx· 2008 Bir. 20 21:06:49
#14

Keičiu tą width, tačiau niekas nepasikeičia...