Hi David,
I am trying to make changes in the CSS default file (link color, background color, etc..)but it doesn't seem to be working. However when I add the CSS styles in the HTML files it works.
I haven't upload the site or add any products yet. I am basicaly just playing around and testing in my local host.
Could this be the problem?
Great thanks
Silvia
Hi David,
If I add the following code in the header. php after the background color changes from white to lime.
BODY { background-color: lime; }
However if I add the following code in the default.css the background color is still white
body {
background-color: lime;
font-family: tahoma,helvetica,sans-serif;
font-size: small;
color: #333;
margin: 8px;
}
It looks like something is wrong with the default.css file. Probably is something really stupid but I am really struggling with this.
Silvia
Hi Silvia,
I just tried the same code on my test server and it worked ok without having to add anything to the header; so perhaps there might be another section in your default.css lower down that is overriding the color change at the earlier point?
Another possibility is that the browser is still using a cached version of default.css even after you make your edit - this sometimes gets in the way of testing css changes! To overcome this you can use CTRL+F5 to refresh and reload all resources from source...
If you're still not sure; if you could email me your default.css i'll take a look for you!
Cheers,
David.
Hi Silvia,
As long as you're viewing the site affected directly by the CSS you are editing it should work fine; but you may need to do a CTRL-F5 refresh to force the browser to reload the CSS otherwise it may be using the old version from the cache - which is probably what's happening...
Cheers,
David.