NameSilo

CSS Relative Root redirect question.

Spaceship Spaceship
Watch

PtViper

New Member
Impact
0
I'm not entirely familiar with CSS and i'm trying to call an image inside a CSS document. I would prefer to use the Relative Root redirect. In HTML its as simple as a leading / on a link, this method in CSS doesnt seem to work and I'm currently forced to use ../ however many times the CSS file may be deep. Does anyone know the CSS way of Root redirect?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
I'm not really sure. But most of the time I just give the full address to the file and that works. I've never tried it the other way, but at least you know you can get it working by giving the full address.
 
0
•••
Try this:

./

-Steve
 
0
•••
What's wrong with dot dot slash?
 
0
•••
for some reason i twasnt working when I tried it earlier, now..it works fine. Basically the dot dot slash wont work for my application because there is a large portion of backend thats being used and some of those pages are more than 1 folder deep, I'm not developing that portion of the website so I cant design with that in mind, thats where the leading / Relative root redirect comes in handy.

Thanks for your info.
 
0
•••
Wow, I never even thought of that problem. CSS is usually quite handy.
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back