But I don't see a way to include this in SBM Composer, any idea for this?
Accepted AnswerDerek LauwOffline0
David Sheaffe wrote:
<link rel="stylesheet" type="text/css" href="/styles/custom.css" />
Edit the href to point to where you have saved your css file.
Well, this is acceptable but i would like it to be maintained on Application Repository so i don't need to deploy it separately, any idea with that?
Hafiz Aimaqmore than a month agoYou can also create a form extension with the following in the definition
In the extension, add css and js folders, add files and now the stylesheet or js file is automatically loaded.
Another thing you could do is create the extension with empty definition. Within the extension, you can add your assets which will always accompany your msd.
Add head.min.js in your form and then you can load asset as needed through form actions:
Accepted Answeryuvaraj JOffline0Hi,
You can't apply different stylesheets to different parts of a page. You have a few options:
The best is to wrap the different parts of the page in divs with class names:
this will make all links inside an element with id section1 be red, and all links inside an element with id section2 be blue..
<a href="#">i will be red</a>
<a href="#">i will be blue</a>
So, Use different class for each part in your web page and customize the CSS code for each class.
Accepted AnswerSunil KumarOffline0To link a CSS file with your HTML file you have to write the next script on your html file inside the head tag.
<link rel=¨stylesheet¨ type=¨text/css¨ href=¨..\[folder_name]\[file_name].css¨>
If you have the CSS file in the same folder of your html file you only have to write the name of your CSS file, like this.(I recommend you to have the files in different folders associated by the type).
<link rel=¨stylesheet¨ type=¨text/css¨ href=¨[file_name].css¨>
If yo are working with a bootstrap theme you can add the the link of the file
<link rel=¨stylesheet¨ type=¨text/css¨ href=¨[url_bootstrap_theme]¨>
To link a Js file with your Html you only have to add the source of the script inside the body tag or outside it does not matter. (I never tried to put it inside the head tag but I do not recommend to do that ).
If you have the Js file in the same folder of your html file you only have to write the name of your Js file, like this.(I recommend you to have the files in different folders associated by the type).
If you are working with libraries like JQuery you can add the URL of the library in the source.
I hope this post helped you.
php interview questions, php interview questions and answers, php interview questions for freshers