Answer the question
In order to leave comments, you need to log in
How to output separate CSS to a separate category in DLE ?
Good afternoon, gentlemen, here is an idea to diversify the site a bit (CMS DLE). There are let's say categories: "News" "Games" and let's say "Reviews". By default it outputs from
.news .category
background: #fd5559;
Answer the question
In order to leave comments, you need to log in
Something like this:
.category {background: #ccc;}
.category.news {background: #f96;}
.category.hitech {background: #00f;}
.category.rewiew{background: #0f0;}
@abdurahmanich
And what about the default ?:
The style that is displayed:
.news .category {
float: left;
background: #fd5559;
min-width: 37px;
height: 32px;
padding: 0 10px 0 10px;
line-height: 30px;
margin-left: 0px;
width: 67px;
text-align: center;
@abdurahmanich I still can't figure out how to implement it. After all, the content of the category menu is like this (menu.tpl file):
<ul class="topmenu" id="topmenu">
<li>
<a href="/" title=" Главная"><img src="{THEME}/images/logo.png" width="230" height="45" /></a>
<a href="news" title="TEST"><b>НОВОСТИ</b></a>
<a href="internet" title="Internet"><b>ИНТЕРНЕТ</b></a>
<a href="science" title="Наука"><b>НАУКА</b></a>
</ul>
<div class="category">{link-category}</div>
with CSS:.news .category {
float: left;
background: #fd5559;
min-width: 37px;
height: 32px;
padding: 0 10px 0 10px;
line-height: 30px;
margin-left: 0px;
width: 67px;
text-align: center;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question