Nested grid and CSS error

Hi There,

Im a bit lost. and tried everything

i have an button in a field grid called INFO

i use the following css to make a button

Blockquote
echo "
.button {
display: inline-block;
border-radius: 12px;
background-color: #626689;
border: none;
color: #FFFFFF;
text-align: center;
font-size: 14px;
padding: 10px;
width: 150px;
transition: all 0.5s;
cursor: pointer;
margin: 5px;
}

.button span {
cursor: pointer;
display: inline-block;
position: relative;
transition: 0.5s;
}

.button span:after {
content: ‘\ >>’;
position: absolute;
opacity: 0;
top: 0;
right: -20px;
transition: 0.5s;
}

.button:hover span {
padding-right: 25px;
}

.button:hover span:after {
opacity: 1;
right: 0;
}
";

Blockquote

everything works fine. but when i use a nested grid and after a filter is set the css is gone and when i undo the filter (reset the view) i get an error and the whole thing freezes up.

it is not the script it’s the combination i gues with nested grid en group view. Bootstrap gets the same error.

found the solution! you have to put the css in the onsriptinit instead of the onrecord