CSS Relative Root redirect question.

SpaceshipSpaceship
SpaceshipSpaceship
SpaceshipSpaceship
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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
Close
Try this:

./

-Steve
 
0
Close
What's wrong with dot dot slash?
 
0
Close
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
Close
Wow, I never even thought of that problem. CSS is usually quite handy.
 
0
Close
Appraise.net

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover

NamePros updates

Quick replies: search, your most used replies, and more on every post
Quick replies are easier to find and use now. The quick reply menu has a search box. Type a few letters to find the reply you want. A...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back