'css changes not shown in browser [closed]
I don't think this is worthy question or not but still I am in trouble to find solution?
I am working on my first project in PHP and using the notepad++ editor. So, my problem is when ever I am saving my work and after restarting my laptop other changes were done in my website (which I didn't do).
One more thing changes on padding or margin in file don't shown on browser's console or on website.
What is the solution behind it?
Solution 1:[1]
- Path to the stylesheet from root folder
<link rel="stylesheet" href="./css/styles.css">
- You could add some variable to the end of href, such as:
<link rel="stylesheet" type="text/css" href="css/yourStyles.css?<?php echo time(); ?>" />
Change version=1 to version=2 and so on after making some changes to the file content.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Sadegh Rastgoo |
