Answer the question
In order to leave comments, you need to log in
How to ($arElem['SECTION'] == 1369) make it bold (the created infoblock is a section, make the section title bold?
Hello.
An infoblock has been created in Bitrix (this is a table that employees fill in, and it calculates/shows the results). There are sections in the infoblock.
Please tell me how to make the section title displayed in bold?
This is done both in the template.php code and in the
style.css file. In style.css
I
entered a line .firstCol {font-weight:bold;}
, as a result, in the form all lines became bold
.
Insurance premiums for VHI 2 but it is necessary that only a separate line, for example, "Insurance premiums for VHI" - ID 1368 becomes bold. Please tell me how to do this, what needs to be added in the style.css file?
As I understand it, you probably need to highlight ID 1368 in a separate class, and then specify this class in style.css?
those. how to make ($arElem['SECTION'] == 1369) bold?
<?if($arResult['LAST'][$id] && $arElem['SECTION']==1368 || $arResult['LAST'][$id] && $arElem['SECTION']==1368 || $arResult['LAST'][$id] && $arElem['SECTION']==2610 || $arResult['LAST'][$id] && $arElem['SECTION']==2611){
$arResult['FACT'][$id]=$arResult['LAST'][$id];
}?>
.kpiIndicatorsTable{border-collapse: collapse;width: 100%;clear:both;}
.kpiIndicatorsTable tr th{border: 1px solid #B4B4B4;padding: 5px;}
.kpiIndicatorsTable tr td{border: 1px solid #B4B4B4;padding: 5px;text-align:center;}
.kpiIndicatorsTable .firstCol{text-align:left;}
.kpiIndicatorsTable .smallInp{width:50px;text-align: center;}
.kpiIndicatorsTable .planInput{text-align: center;}
.kpiIndicatorsTable .small{font-size:9px !important;}
.kpiIndicatorsTable input{width:90px;}
.departmentFilter{margin:0 0 30px 0;}
.departmentFilter select{/*float:right;*/ margin:0 0 0px 30px; }
.ui-datepicker-calendar{display:none;}
.ui-datepicker{padding-bottom:.2em !important;width: 20em !important;}
.kpiIndicatorsTable.edited .first{width:200px;}
.kpiIndicatorsTable.edited .forth{width:200px;}
.KPIh2{margin:0px 0 0;}
.period p{margin:8px 0;}
.tableEdit{padding-top:10px;float:left;}
.period{float:right;}
.period input{width:70px;}
#saveKpiInfo{margin-top:10px;}
<html>
<a class="Численность застрахованных лиц по ОМС"</a>
<html>
.Численность застрахованных{font-weight:bold;}
Answer the question
In order to leave comments, you need to log in
UPD:
- try it like this, just write the exact name of the line you want to make bold so that the logic works. Of course, it is difficult for you to give an exact and correct answer, because you need to experiment and look for a working solution. If you want, give access through TeamViewer, I'll help.
Find which class the element belongs to (developer tools - F12 in Chrome), find this class in the style file and set the font-weight: bold property to it; . You can try changing the styles directly in chrome to make sure it works. If the element is without any class, look for it in the template file, and write a new class in the html code.
What you're quoting is not the template element, but the element's output data.
Look for the output of the html element itself next to it.
On - hang the class bold, for example.
And in css write
.bold { font-weight: bold;}
no it doesn't work. everything becomes bold and you only need one line (element)
from this <?if($arResult['LAST'][$id] && $arElem['SECTION']==1368 || $arResult['LAST'][$ id] && $arElem['SECTION']==1368 || $arResult['LAST'][$id] && $arElem['SECTION']==2610 || $arResult['LAST'][$id] && $arElem['SECTION']==2611){
$arResult['FACT'][$id]=$arResult['LAST'][$id];
this should be made bold arElem['SECTION']==1368
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question