Span CSS modification [Solved]

Hi,

is any possibility to change css for autogenerated span (summary module of grid)?
For default justify-content is set to left. I would like to change it to center.

Tried with onAplicationInit event and css modification but without success.

source: span style=“text-align: center;display: flex;flex-direction: row;align-items: center;justify-content: left”>SKRA</span

Hello.
In OnScriptInit, call a function style();
in PHP Functions, add a new function style
and put the css code…

?>
<style>

</style>
<?php

Then, you can use the developer tools to detect the labels of SC Components, and in style function, change the css...
Bye

this solution not working for me, tried.

edited:

for summary span not contain any class so code that worked for me

?>

span {justify-content: center !important;} <?php

span is a html tag… you can detect the id of the block…

?>
<style>

.MiClass {justify-content: center !important;}

</style>
<?php
1 Like