Buy Now
Sign in

Crash CC6 with bad CSS definition

NickOg , May 27 2017
NickOg
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
{view:history_css}
in the index and fixing the error in that CSS view.

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

Nick
Attachments
4Max.png
4Max.png
(29.8 KiB)
166 Downloads/Views
B
bcouvin
Hi Nick,
I tried to integrate css as you did. It does not work in my side.
In my "Views/cssTest",
Screen_Shot_2018-03-16_at_17.56.49.png
And in my projects_list view:
Screen_Shot_2018-03-16_at_17.58.07.png
This not seems to work as expected. Could you give a help?
Thanks
Regards
Attachments
Screen_Shot_2018-03-16_at_17.56.49.png
Screen_Shot_2018-03-16_at_17.56.49.png
(70.97 KiB)
148 Downloads/Views
Screen_Shot_2018-03-16_at_17.58.07.png
Screen_Shot_2018-03-16_at_17.58.07.png
(109.17 KiB)
114 Downloads/Views
Screen_Shot_2018-03-16_at_17.58.07.png
Screen_Shot_2018-03-16_at_17.58.07.png
(109.17 KiB)
154 Downloads/Views
NickOg
Hi
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.
Regards
Nick
B
bcouvin
Hi Nick,
Thanks for advice.
We tried to use html views. In the column views,
PT.Title:{view:html7}
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.
Regards
Bertrand
NickOg
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.
Regards
Nick