Skocz do zawartości
Hosting webh.pl - 20%

ROZWIĄZANY: krzywe forum

Rekomendowane odpowiedzi

Opublikowano

Cześć mam problem z krzywymi kategoriami forum :D

il20tz2w4kkxyc7pd2y_thumb.jpg

Beznadziejnie to wygląda, pomozcie mi wyrównać to :/

Opublikowano
  • Autor

Niestety nie, problem polega na tym (dopiero teraz sobie uswiadomilem) ze na niektorych przeglądarkach sie tak krzywo robi (np. google chrome z ktorej ja kozystam) a na innych jest prosto.

Opublikowano
  • Autor
Poważnie: jakie znowu krzywe?

Na tym screenie zaznaczylem co jest krzywo by bylo wiadomo :D

o19k7q43h2ps720zwfz6_thumb.jpg

Opublikowano
  • Autor

DawPi,

A więc tak cały kod z ForumRow wygląda tak:

<tr> 
		<td align="center" class="row2" width="1%">{$data['img_new_post']}</td>
		<td class="row2">
			{$data['_queued_img']}<b><a href="{$this->ipsclass->base_url}showforum={$data['id']}">{$data['name']}</a></b>
			<br />
			<span class="forumdesc">{$data['description']}{$data['show_subforums']}
			<if="$data['moderator']">
				<br /><i>{$data['moderator']}</i>
			</if>
			</span>
			{$data['_queued_info']}
		</td>
		<td align="center" class="row1">{$data['topics']}</td>
		<td align="center" class="row1">{$data['posts']}</td>
		<td class="row1" nowrap="nowrap">{$data['last_unread']} <span>{$data['last_post']}<br /><b>{$this->ipsclass->lang['in']}:</b> {$data['last_topic']}<br /><b>{$this->ipsclass->lang['by']}:</b> {$data['last_poster']}</span></td>
	</tr>

W tym kawałku

<td class="row1" nowrap="nowrap">

Po usunieciu (tak jak ty pisales w tamtym temacie by usunąc ten kawalek)

nowrap="nowrap"

Forum sie wyrównalo ale teraz co innego nawala

8jl743c6qtx0fbznwokx_thumb.jpg

Jakies propozycje ? :D

Opublikowano
  • Autor
Albo chcesz nowrap ( sprawdź po co to jest to zrozumiesz dlaczego tak wyglądało wcześniej ) albo tak jak teraz. :D

A jest jakies rozwiazanie by bylo prosto i by nie zwężało tak tej ostatniej tabelki ?

Opublikowano
  • Autor

probowalem dać width="XX%" i nie dziala :D poza tym jakby przyłozyc linikje do monitora to jeszcze troche krzywe te kategorie :/

Opublikowano
  • Autor
Tam sobie pogmeraj z szerokościami.

A no pogmerałem i teraz jest wszystko idealnie prosto tak jak chciałem ! Dziękuję za pomoc ! Problem rozwiazany :D

Pozdrawiam

Opublikowano
  • Autor

DawPi, Ok :/

Board Index > CatHeader_Expanded >

<div style="display:{$data['div_fc']}" id="fc_{$data['id']}">
<div class="tile_cat_centre">
<div class="tile_cat_droit">
<a style="float:left;" href="java script:togglecategory({$data['id']}, 0);"><img src="./style_images/<#IMG_DIR#>/tile_cat_gauche.gif" alt="" border="0" /></a>
<div class="tile_cat2">						
		<a href="{$this->ipsclass->base_url}showforum={$data['id']}">{$data['name']}</a>
</div>
</div></div>
<div class="bordureg">
<div class="bordured">
<table cellpadding="4" cellspacing="1" border="0" width="100%" align="center">
<tbody>
<tr align="center">
  <td class="thead"> </td>
  <td class="thead" width="65%" align="left">{$this->ipsclass->lang['cat_name']}</td>
  <td class="thead" width="15%">{$this->ipsclass->lang['topics']}</td>
  <td class="thead" width="15%" nowrap>{$this->ipsclass->lang['replies']}</td>
  <td class="thead" width="5%" nowrap>{$this->ipsclass->lang['last_post_info']}</td>
</tr>
</tbody>
</table>
</div></div>
<div class="catend_centre">
<div class="catend_gauche">
<div class="catend_droite">
</div></div></div>
</div>

<div style="display:{$data['div_fo']}" id="fo_{$data['id']}">
<div class="tile_cat_centre">
<div class="tile_cat_droit">
					<a style="float:left;" href="java script:togglecategory({$data['id']}, 1);"><img src="./style_images/<#IMG_DIR#>/tile_cat_gauche.gif" alt="" border="0" /></a>
<div class="tile_cat2">
		<a href="{$this->ipsclass->base_url}showforum={$data['id']}">{$data['name']}</a>
</div>
</div></div>
<div class="bordureg">
<div class="bordured">
<table cellpadding="4" cellspacing="1" border="0" width="100%" align="center">
<tbody>
<tr align="center">
  <td class="thead"> </td>
  <td class="thead" width="65%" align="left">{$this->ipsclass->lang['cat_name']}</td>
  <td class="thead" width="15%">{$this->ipsclass->lang['topics']}</td>
  <td class="thead" width="15%" nowrap>{$this->ipsclass->lang['replies']}</td>
  <td class="thead" width="5%" nowrap>{$this->ipsclass->lang['last_post_info']}</td>
</tr>
</tbody>
<tbody>

Zamieniłem na :

 <div style="display:{$data['div_fc']}" id="fc_{$data['id']}">
<div class="tile_cat_centre">
<div class="tile_cat_droit">
<a style="float:left;" href="java script:togglecategory({$data['id']}, 0);"><img src="./style_images/<#IMG_DIR#>/tile_cat_gauche.gif" alt="" border="0" /></a>
<div class="tile_cat2">						
		<a href="{$this->ipsclass->base_url}showforum={$data['id']}">{$data['name']}</a>
</div>
</div></div>
<div class="bordureg">
<div class="bordured">
<table cellpadding="4" cellspacing="1" border="0" width="100%" align="center">
<tbody>
<tr align="center">
  <td class="thead"> </td>
  <td class="thead" width="60%" align="left">{$this->ipsclass->lang['cat_name']}</td>
  <td class="thead" width="10%">{$this->ipsclass->lang['topics']}</td>
  <td class="thead" width="10%" nowrap>{$this->ipsclass->lang['replies']}</td>
  <td class="thead" width="20%" nowrap>{$this->ipsclass->lang['last_post_info']}</td>
</tr>
</tbody>
</table>
</div></div>
<div class="catend_centre">
<div class="catend_gauche">
<div class="catend_droite">
</div></div></div>
</div>

<div style="display:{$data['div_fo']}" id="fo_{$data['id']}">
<div class="tile_cat_centre">
<div class="tile_cat_droit">
					<a style="float:left;" href="java script:togglecategory({$data['id']}, 1);"><img src="./style_images/<#IMG_DIR#>/tile_cat_gauche.gif" alt="" border="0" /></a>
<div class="tile_cat2">
		<a href="{$this->ipsclass->base_url}showforum={$data['id']}">{$data['name']}</a>
</div>
</div></div>
<div class="bordureg">
<div class="bordured">
<table cellpadding="4" cellspacing="1" border="0" width="100%" align="center">
<tbody>
<tr align="center">
  <td class="thead"> </td>
  <td class="thead" width="60%" align="left">{$this->ipsclass->lang['cat_name']}</td>
  <td class="thead" width="10%">{$this->ipsclass->lang['topics']}</td>
  <td class="thead" width="10%" nowrap>{$this->ipsclass->lang['replies']}</td>
  <td class="thead" width="20%" nowrap>{$this->ipsclass->lang['last_post_info']}</td>
</tr>
</tbody>
<tbody>

pozniej Board Index > ForumRow

<tr> 
		<td align="center" class="row2" width="1%">{$data['img_new_post']}</td>
		<td class="row2">
			{$data['_queued_img']}<b><a href="{$this->ipsclass->base_url}showforum={$data['id']}">{$data['name']}</a></b>
			<br />
			<span class="forumdesc">{$data['description']}{$data['show_subforums']}
			<if="$data['moderator']">
				<br /><i>{$data['moderator']}</i>
			</if>
			</span>
			{$data['_queued_info']}
		</td>
		<td align="center" class="row1">{$data['topics']}</td>
		<td align="center" class="row1">{$data['posts']}</td>
		<td class="row1" nowrap="nowrap">{$data['last_unread']} <span>{$data['last_post']}<br /><b>{$this->ipsclass->lang['in']}:</b> {$data['last_topic']}<br /><b>{$this->ipsclass->lang['by']}:</b> {$data['last_poster']}</span></td>
	</tr>

Zamienilem na :

<tr> 
		<td align="center" class="row2" width="1%">{$data['img_new_post']}</td>
		<td class="row2">
			{$data['_queued_img']}<b><a href="{$this->ipsclass->base_url}showforum={$data['id']}">{$data['name']}</a></b>
			<br />
			<span class="forumdesc">{$data['description']}{$data['show_subforums']}
			<if="$data['moderator']">
				<br /><i>{$data['moderator']}</i>
			</if>
			</span>
			{$data['_queued_info']}
		</td>
		<td align="center" class="row1">{$data['topics']}</td>
		<td align="center" class="row1">{$data['posts']}</td>
		<td class="row1">{$data['last_unread']} <span>{$data['last_post']}<br /><b>{$this->ipsclass->lang['in']}:</b> {$data['last_topic']}<br /><b>{$this->ipsclass->lang['by']}:</b> {$data['last_poster']}</span></td>
	</tr>

Efekt - Wszystko jest tak jak powinno być czyli prosto.

Można zamknąc :D

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.

Ostatnio przeglądający 0

  • Brak zarejestrowanych użytkowników przeglądających tę stronę.

Szukaj

Szukaj

Skonfiguruj powiadomienia push w przeglądarce

Chrome (Android)
  1. Stuknij ikonę kłódki obok paska adresu.
  2. Stuknij Uprawnienia → Powiadomienia.
  3. Dostosuj swoje ustawienie.
Chrome (Komputer)
  1. Kliknij ikonę kłódki na pasku adresu.
  2. Wybierz Ustawienia witryny.
  3. Znajdź Powiadomienia i dostosuj swoje ustawienie.