Baynomia Posted February 4, 2016 Share Posted February 4, 2016 Hello Guys, first - sorry for my english, but the german part here isnt very aktive / didnt help think like "this"... so i try to ask you in english. i want to use css in cms sites. how can i aktivate css? if i used css and safe it in cms, backoffice delet the css code instant. any help? :-( Link to comment Share on other sites More sharing options...
Daresh Posted February 4, 2016 Share Posted February 4, 2016 What exactly do you want to use? Inline styles (like <p style="text-align: center;">) should not get deleted. But <style> tags will be deleted, so it's better to add those style rules to global.css. Link to comment Share on other sites More sharing options...
Baynomia Posted February 4, 2016 Author Share Posted February 4, 2016 (edited) wow thats cool, 6 minutes later someone help :-) thank you very much :-) you are true, style tags will be deleted. :-( i will show you the first part of my code i want to use: btw. can add a stylesheet? like: <link rel="stylesheet" href="stylesheet.css"> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title></title> </head> <body style="padding:0px; margin:0px; background-color:#fff;font-family:Arial, sans-serif"> <!-- #region Slider Begin --> <script type="text/javascript" src="js/jssor.slider.min.js"></script> <!-- use jssor.slider.debug.js instead for debug --> <script> jssor_zertislider_slider_init = function() { var jssor_zertislider_SlideshowTransitions = [ {$Duration:1200,$Opacity:2} ]; var jssor_zertislider_options = { $AutoPlay: true, $SlideEasing: $Jease$.$Linear, $PauseOnHover: 3, $SlideshowOptions: { $Class: $JssorSlideshowRunner$, $Transitions: jssor_zertislider_SlideshowTransitions, ...................... ....................... ....................... . i have "contentbox" and "html-box" module (there i can use all codes i want) - can i make a new page with this like and link this like cms? (not complete new site, just for "id="center_column" Edited February 4, 2016 by Baynomia (see edit history) Link to comment Share on other sites More sharing options...
Daresh Posted February 4, 2016 Share Posted February 4, 2016 You should be able to add a css file like that, it's best to do it with functions in a module, but you can start with this (in your header.tpl file) Or you can paste your css rules into the global.css file, your javascript into global.js etc. Link to comment Share on other sites More sharing options...
Baynomia Posted February 24, 2016 Author Share Posted February 24, 2016 (edited) Hello, i have contentbox module how works fine. but i have no idea how to add this module for cms sites. is there a way to alow all css codes in the basic editor? if i use style "max-width" the editor delete "max" so i only can use "width". thinks like this. :-( i also want to use no limit css for article sites but i realy have no idea how. im not sure but u mean i have to safe a class / id in the global.css and link this in my cms editor? like: <div id="text"> no way to aktivate all codes directly in the editor? Edited February 24, 2016 by Baynomia (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now