Search
 
SCRIPT & CODE EXAMPLE
 

CSS

why css does not apply when complete url is entered home/index

Why is stylesheet only working for the index page, but not for any extensions of the index page?
Why css does not apply when complete url is entered like home/index
You're using a relative URL for the stylesheet; you need to prepend a forward slash so that it's relative to the root and not the page being viewed.
<link rel="stylesheet" type="text/css" href="/static/style.css" />

Ref:
https://stackoverflow.com/questions/44038534/why-is-stylesheet-only-working-for-the-index-page-but-not-for-any-extensions-of
Comment

PREVIOUS NEXT
Code Example
Css :: ul text decoration css 
Css :: how to add space inbetween lines in html 
Css :: select html stop blue border 
Css :: css edit scroll bar 
Css :: Hide first of type elements using css , how to hide elements using css 
Css :: blue color when button click web mobile 
Css :: electron drag window 
Css :: how to align items in css 
Css :: elementor sticky keep within column 
Css :: ul li dot seprator 
Css :: make an image smaller css 
Css :: roboto google apis 
Css :: how to compile scss to css minify css 
Css :: how to make a triangle in css 
Css :: bootstrap Changing the separator 
Css :: bootstrap 3 offset 
Css :: scss hover 
Css :: how to add fanctoin to links in css 
Css :: css backdrop filter blut 
Css :: remove bullets from unordered list in css 
Css :: circle button css 
Css :: css how to remove underline from visited sites 
Css :: insert background image css error 
Css :: onhover mouse pointer css 
Css :: id starts with css 
Css :: how to add a background color in css 
Css :: how to add font otf format in html 
Css :: grid blocks center 
Css :: css especifico para safari 
Css :: repeating-linear-gradient generator 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =