Jump to content
  • 0

Некоторые стили не применяются. Видимо что-то натворил в css стилях


borzometr
 Share

Question

CSS файл:

table.listform {border-collapse:collapse; }
.listform tr.sectiontableheader { font-weight:bold; vertical-align:middle; background-color:#eaeeff; }
.listform td {padding:0px 1px 0px 1px; height:18px; vertical-align:middle; border:1px solid #eaeeff; font-size:11px;}
.listform .sectiontableheader th { text-align:center; vertical-align:middle; text-transform:none; background-color:#296599;}
#cityh td{ width:100px; text-align:center;}
#cityhr
.listform .sectiontablefooter td, .pagenav, .sectiontablefooter { text-align:center; }
.listform .date { /*white-space:nowrap;*/ font-weight:normal; text-align:center; width:100px; font-size:11px; padding:1px 10px 1px 10px;}
.listform .year, #listform .photo, #listform .color, #listform .price, #listform_engine, #listform .mileage, .listform #views { text-align:center; /*white-space:nowrap;*/ }

.listform .title { width:190px; text-align: left; white-space:nowrap; } /* 11 строка*/
.listform .title a:hover { text-decoration:underline;}
.listform .photo { width:50px; text-align:center}
.listform .price { width:100px; text-align:center}
.listform .engine { width:80px; text-align:center}
.listform .year { width:65px; text-align:center } /*16 строка*/
#cityh { width:100px; text-align:center;}
#cityhr, #cityhr a:link { width:100px; text-align:center; color:#FF0000; font-weight:bold; text-decoration:underline; }
.listform .city { width:100px; text-align:center; text-decoration:underline;}
.listform .city_act { width:100px; text-align:center; }
.listform .mileage { width:75px; font-weight:bold; text-align:center}
.listform .color { width:75px; text-align:center}
#datepub { width:auto; text-align:center}
.sectiontableentry1, .listform .sectiontableentry1 #createdate { background-color:#eaeeff;}
.sectiontableentry2, .listform .sectiontableentry2 #createdate { background-color:#ffffff;}
.listform .sectiontablefooter select.inputbox {}
.listform .unsticked, #listform .sticked {margin-left: 5px;}

php файл:

<?php if(!$id and $task!='myads') mosLoadModules ( 'alist', -2 ); ?>

<table class="listform" id="myTable" align="center">
<thead>
<tr><td colspan="13" align="center"><noindex><?php echo '<img src="Путь к изображению" style="vertical-align: bottom;">
<img src="еще один путь" style="vertical-align: bottom;">'; ?></noindex></td></tr>
<tr class="sectiontableheader">

<?php if (($task=='myads' or $id) and $pageNav->total) {//заголовок действий ?>
<th></th>
<?php if (($task=='myads' and $my->id) or ($id and $my->id==$rows[0]->userid)) { ?>
<th></th><th></th>
<?php }
}?>
<th class="flag" > </th>
<?php if( $myConfig->show_photos ) { ?>
<th class="photo" axis="number">Номер</th>
<?php } ?>

<th class="title" axis="string">Модель</th>

<?php if( $myConfig->show_price ) { ?>
<th class="price" axis="number">Цена</th>
<?php } ?>

<?php if( $myConfig->show_year ) { ?>
<th axis="number" class="year">Год</th>
<?php } ?>

Суть проблемы:

в <th> ячейки (Номер, Модель, Цена, Год(второй листинг)) мне нужно применить стили с 11 по 16 строку (1 листинг). В чем ошибка?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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