Jump to content
  • 0

Отступ в таблице


Careless_angel
 Share

Question

Создаю модуль для школьного расписания. В админпанеле указывается какие столбцы нужно отображать (информация передается на сервер в БД), затем в зависимости от значение в БД столбцу присваивается класс при котором он не отображается и прячется его граница (чтоб не было двойных линий). Но проблема в том, что на месте этого столбца появляется отступ (на фото показано). Как его убрать? Я уже пробовал указывать значение "0" для margin и padding, но проблема не исчезает.

Вот пример кода:

TD {

border-collapse: collapse;

border: 2px inset red;}

.hide{

border:0px inset red;

padding-left:0px;

padding-right:0px;

margin-left:0px;

margin-right:0px;}

<td <? echo $hide1; ?> > (здесь уже есть условие)

<div><?php $ret=mysql_query("SELECT * FROM ponedilok WHERE class='1'");

while($row=mysql_fetch_array($ret)) {echo $row[fivea];} ?> </div>

</td>

Так прячется каждый блок.

Помогите, пожалуйста!

2366347.jpg

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy