newbie file/folder question-

  • altom55
  • Novice
  • Novice
  • altom55
  • Posts: 24
  • Loc: UK

Post 3+ Months Ago

I have a question and i know the answer will be an easy one.
I've made a few webpages in my site folder but when i put a file
in a category folder and look at that page -everything is still there
but no css styles are applied and the page structure are gone.
Do I have to change a path or something as i have images in the page?

regards al.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • tastysite
  • Proficient
  • Proficient
  • User avatar
  • Posts: 349
  • Loc: Brighouse, West Yorkshire, England

Post 3+ Months Ago

This will depend on whether the path to your css is an absolute or relative path. An absolute path gives the location from the root, where as a relative path gives the path from the page its on. I use relative and based on your problem you are to, so all you need to do is go up a level in the directory you do this with ../ so if your file was located at
Code: [ Select ]
css/styles.css
it would become
Code: [ Select ]
../css/styles.css
use 1 ../ for each level so to go up 2 levels use ../../ and so an and so forth, I would stick with relative if you can it makes it easer moving from localhost to web server since you don't need to change every path...
  • altom55
  • Novice
  • Novice
  • altom55
  • Posts: 24
  • Loc: UK

Post 3+ Months Ago

Thanks very much for your reply 'tastysite' much appreciated !

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 67 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.