jza Posted October 27, 2020 Share Posted October 27, 2020 Good day, I am trying to use the W3.css framework with one of the free templates. The issue is that none of my modifications to W3.css appear to be coming through... For example, if I was to change the w3-black class from: .w3-black,.w3-hover-black:hover{color:#fff!important;background-color:#000!important} To: .w3-black,.w3-hover-black:hover{color:#fff!important;background-color:#CCC!important} I would expect the background colour of this DIV to go from black to grey, but that is not the case, it stays black. <div class="w3-top"> <div class="w3-bar w3-black w3-wide w3-padding w3-card"> <a href="#home" class="w3-bar-item w3-button"><b>BR</b> Architects</a> <!-- Float links to the right. Hide them on small screens --> <div class="w3-right w3-hide-small"> <a href="#projects" class="w3-bar-item w3-button">Projects</a> <a href="#about" class="w3-bar-item w3-button">About</a> <a href="#contact" class="w3-bar-item w3-button">Contact</a> </div> </div> </div> Link to comment Share on other sites More sharing options...
niche Posted October 27, 2020 Share Posted October 27, 2020 http://bdavidxyz.com/blog/how-to-name-css-classes/ Link to comment Share on other sites More sharing options...
jza Posted October 28, 2020 Author Share Posted October 28, 2020 Thank you but I'm not sure that answers my question... I'm making changes to the existing classes in W3.css and the changes aren't coming through. Link to comment Share on other sites More sharing options...
dsonesuk Posted October 29, 2020 Share Posted October 29, 2020 (edited) Make sure changes appear after existing, beit a link to custom css file (best option) or editing of existing w3-css template css file (worst option, update will overwrite changes), then clear cache, history etc. Edited October 29, 2020 by dsonesuk Link to comment Share on other sites More sharing options...
jza Posted October 29, 2020 Author Share Posted October 29, 2020 The changes did appear after exiting and I was linking to a copy of W3.css hosted on my web server. I opted to call the file and any of my own classes I just wrote them in the style tags. Link to comment Share on other sites More sharing options...
dsonesuk Posted October 29, 2020 Share Posted October 29, 2020 Hitting cntrl F5, usually show latest changes. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now