swcoll2021
swcoll2021
KPCKevin Powell - Community
Created by Adedoyin Adeyemo Muhammed on 9/4/2023 in #front-end
Primary Nav working only in homepage.
Without seeing the code it's difficult to identify the cause, however, this is often the case where you have pages in folders and the links are relative, so href="about/index.html", when you jump to a a particular folder nothing is found because the server is looking within the folder for the link, try a root relative URL, like href="/about/index.html", that's generally means from the root of the project go to this directory and look for this file. Other than that use the full URL href="http://localhost/about/indexlhtml" as an example, if your server is on localhost port 80. Hope that helps.
6 replies
KPCKevin Powell - Community
Created by Mel on 6/25/2023 in #front-end
SASS/SCSS still worth learning?
The nesting and grouping also helps isolate the CSS code (in regards to specificity)
27 replies
KPCKevin Powell - Community
Created by Mel on 6/25/2023 in #front-end
SASS/SCSS still worth learning?
In regards to nesting, it seems useful to me if you view nesting as a way to componentize a particular component on the page, if you use BEM like syntax like '& &__element' then the nesting results in less being written whilst grouping your declarations within a easy to find block. This is where SASS/SCSS is more powerful than CSS nesting AIUI (and my experience is not much in this regards).
27 replies