Here I am adding images of my work. I stuck here because after removing CSS it's still working.
see in this image.In this image it has width:30% when I have been removed in my project my source file. How can I remove it? what is the problem that I found this type of error?
I have also checked to do a hard refresh(ctrl+f5)
Make sure you save your file. It looks like the file hasn't been saved yet.
Related
I've been trying to put a background image on a website using html and css, I've watched youtube videos but it never works for me. I was wondering if anyone could help point out what I've been doing wrong. Thank you!
Tried putting an image as a background for a website but whenever I save and reload the website it never appears and is just blank.
I forgot to add the speech marks thing here, but even when I added it, it still never worked
You can try this code
With proper path.
update the path to
background-image: url(../ronaldo.jpg);
go through this article for a better understanding of using path absolute-vs-relative-paths
You have the wrong path. Your image is not in the same folder as your css file. Put a correct path, try this: background-image: url(../ronaldo.jpg);.
If it still doesn't work, tru putting the path in between of " " like this:
background-image: url("../ronaldo.jpg");
Try typing in "/" in the url brackets and the intelisense should appear.
It should give you all possible images in your folder.
I am trying to access the first picture in the img folder but I can't seem to get the right file directory. I've tried it with ../img/model-1.jpg, with /img/mode1-1.jpg, and without the img. I've tried the to copy the path as well but nothing seems to work. I don't know if I'm doing it wrong or is it a glitch.
I found out the problem. I was using background-image and it was only focusing on the url and the other text probably cancelled it out. I used background and the link path worked fine. Thanks for all of your help!
I have been getting this weird problem where, when I upload a new CSS file to the public_html folder in cPanel, it is not updating on the website.
Whats really weird about it was that I uploaded the entire website again. Every html file, every folder, everything. And when I checked the CSS file it was the updated version, but the browser was somehow reading the old one.
To fix this issue I had to change the name of the CSS file (in all of the html files too because without it they were still using the old one even tho it was nowhere in the folder) and re upload the whole website again.
So, am I missing something here? Is this supposed to happen? Or is this actually weird and shouldn't happen at all?
I've also run into this problem. It seems to be a caching issue. Trying this person's trick is how I narrowed it down to being a caching issue:
https://www.sitepoint.com/community/t/css-html-files-updating-on-cpanel-but-not-on-website/271683/5
Smells like cache to me.
If your recent changes are NOT there, then play a trick on the URL by changing the path a little. For example if the path was /themes/mytheme/assets/custom.css or whatever it is, change the version and do something like /themes/mythemes/assets/custom.css?v=1234567
By changing the URL in this way, it would bypass any kind of cache that would be looking for the previous URL. In other words, you should now see your correct CSS file.
After moving a wordpress site i noticed it didnt look the same so i figured there would be something wrong with a css file, turns out one of the css files of the lambda theme has a bad request and the request URL is constructed weirdly.
The left screen is the one after moving and the right screen is the fully working one that was moved.
Any suggestions?
The problem here is obvious (even thought the solution is not so obvious), There is a incorrect link to the css file on the page:
http://www.laakland.nl/wordpress4/D:/www/laakland.nl/www/wordpress4/wp-content/uploads/lambda/stack-493.css?ver=4.8.1
Since you said you didnt know where this is coming from, you can start here:
Check header.php to see if the CSS is added directly
Check functions.php to see if the CSS file has been added there using wp_register_style
Any plugins might have added this too, so you might check there too.
For convenience, use an IDE to search for the text stack-493.css on the whole wordpress folder to see if you find the file where it is being added from and then fix the link there.
Oke i fixed it, i tried the whole migration through duplicator plugin process again, but on step 3 of importing, i removed 'path' (which was "D:/www/xxxx.nl/www/wordpress4") so that after removing that, i thought it wouldnt add the unnecesary part from amit's answer.
thanks all!
I'm sure there is a very simple explanation for this but... How do I add a background image to my Joomla site? I am using a modified version of Atomic. The obvious thing to do would be to simply go into the template.css file and add a background-image property to my body or divs... however, it doesn't take. If I change the background color however that works fine. Perhaps the path is incorrect but I've tried it a hundred times and I doubt I'd get the path wrong every time. I've even tried placing the image file in the root folder, thus eliminating the possible mistyped path to the file.
Any ideas?
Thanks.
Editing the template CSS file is definitely the way to do it. This should help -
Folder to put image in:
JOOMLA FOLDER/templates/atomic/images
CSS to use:
#ID.class{background:URL(../images/background.png);}
If that doesn't work, post a link so we can debug for you.