Crash CC6 with bad CSS definition

NickOg 27 May, 2017
On the CSS definition page - I misunderstood the note 'CSS code with OUT style tags'😶 and left off the form and enclosing braces. so

background-color:aqua !important;
font-size:10px !important;
width:90% !important;

That caused a crash - see attached. Recovered OK by removing the call
in the index and fixing the error in that CSS view.

Max - should I shift this to the bugs section or OK here??

bcouvin 16 Mar, 2018
Hi Nick,

I tried to integrate css as you did. It does not work in my side.

In my "Views/cssTest",

And in my projects_list view:

This not seems to work as expected. Could you give a help?

NickOg 16 Mar, 2018
I had completely forgotten about this. Just looking back at the connection now I see that I bypassed the CSS view and replaced it with an HTML view and used links so:-
<link rel="stylesheet" type="text/css" href="templates/js_wright/css/custom.css" media="all">
<link rel="stylesheet" type="text/css" href="components/com_u3aV5/membership/css/memberHistory.css" media="all">
Apart from anything else that allowed me to use a CSS editor. Sometime I need to get back and have closer look. Maybe later releases have fixed the problem.
Hope that helps.
bcouvin 18 Mar, 2018
Hi Nick,
Thanks for advice.
We tried to use html views. In the column views,
and in html7 view, we refered to the custom.css.
<link rel="stylesheet" type="text/css" href="templates/custom/css/custom.css" media="all">
What do we need in the css file, if we need only the background of the cell in red color?
td {  
background-color:red !important;
font-size:10px !important;
This one seems not to work correctly. How do you do it?

Thanks again.
NickOg 18 Mar, 2018
Morning Bertrand

I confess not to have use CC6 much past that point. There are much later versions since I was working on CC6.
That CSS looks correct and so does the link - assuming that the template location is correct. Have you tried using debug tools - generally F12 - or CTTRL SHIFT I with most browsers? You should then be able to find that td reference and check that the CSS has been applied.

If you are still stuck - publish or send me a link via PM and I will have a look at it.


This topic is locked and no more replies can be posted.