Change the position of a Stylesheet in a Joomla site - css

I have a joomla site. And I have a component installed which has it's own css file positioned in the actual component files, I would like to position this css file to another folder (not in component files), so I copied the css file to where I need to, and now I'm looking where in the code is written the PATH to the css file... and I found the code :
$this->addCSS('layout');
the file is called "layout.css".
How can I change this code to a path something like "/template/bluedilema/css/layout.css"
Somebody PLEASE help if you can.
Thanks

Have you tried:
$this->addCSS('./../template/bluedilema/css/layout.css');
Please note you have to adjust the path.
Hope this link will help you!
http://www.howtojoomla.net/how-tos/development/how-to-add-cssjavascript-to-your-joomla-extension

Related

CSS and img dont read on Github

I'm trying to upload one project on github but CSS and img wont read.
I have tried to upload it 2 times, and checked that files names is written with small letters and are the same in the name of the file and the same in the html code but it still wont work.
Site was build using bootstrap, it is first time for me using BS so i'm not sure if it is because of that.
I am attaching link to a site and link to my repositorie on github. are you able to see what problem is?
Link to a site:
https://veljko-premovic.github.io/Tindog/
Link to repositorie:
https://github.com/Veljko-Premovic/Tindog
thank you in advance
Veljko
You are serving your images from a folder called images, but there is not such a folder.
The same with CSS, you are serving your styles.css from a “css” folder that is non-existent in your Github repo.
Either create those folders and add the images and CSS in them, or in every “src=“, remove the folder name.
Your paths are wrong, they all point to images/something.png but the images are in the same root folder as index.html so it should just be
<src img="something.png">
same for the css

Css file doesn't affect after editing in SharePoint Online

I has a css file named styles.css and it was loaded in masterPage of sharepoint .I change this css file but not working. I make sure this css file already loaded in html page.I also clear cache but I don't know why it doesn't affect when I edit. Please help me, thank you so much!
It is not recommended to modify the online master page directly.
Firstly, you need to check if the CSS file is really imported.
Secondly,if the file is not imported, classic page you could upload CSS here.
modern page we should upload CSS with SPFX,here is a tutorial: https://github.com/hugoabernier/react-application-injectcss.
If the file is imported, first check whether the content of the file is displayed normally (excluding problems caused by encoding), then you can add ‘! Important’ after the style.

External Css is not working with my HTML code, what is my error?

This is my HTML code which is not working in working with the css file located in other folder name css
this is my css code.
kindly help me and suggest me the correct changes.
Thank you
How are your folders structured?
In the header of you HTML file you state that the css file is called 'home.css' and is located in a folder called 'css'. And this folder should be in the same directory as your html file.
See if you can view your CSS file in your browser at the address you are specifying in your HTML. In other words, go to www.yourwebsite.com/css/home.css. If your CSS file does not show up, it is not at that address and you will need to determine where the file is actually located.
If you can view your CSS file at the address you have specified, but its style directives are not reflected on your pages, check to be sure they are not being overridden somewhere later in your CSS file.
As others have noted, your question is poorly formatted. Providing more information (i.e. URL, fiddle, directory structure, etc.) will likely get you more useful answers faster.

How edit CSS file in web2py

How could I edit CSS files in web2py ?
I wanna override the web2py_table, someone could help me ?
I inspected in google chrome, but the file who is pointing don't make the effect.
The web2py CSS rules are set in the application's /static/css/web2py.css file (here is the relevant line for the version in the "welcome" app).
If making the change there doesn't work, then the problem must be with some other aspect of the CSS, so we'll need more information.

Need help on my javafx-css

I have this problem in my Java Eclipse
this happens when i add my CSS File to the Scene. And i really don't know what to do here
I have tried adding a Source Folder and inside the source folder is the Css file then adding it to like this scene.getStyleSheets().add("Resource/Css/style.sheet"
and this error is still showing can someone help me with this
If you have the file directly under src in Eclipse, you need to request it from there, not from a "Resource/Css" sub-folder.
Also, the filename is obviously style.css, not style.sheet.

Resources