Stylesheet not being applied

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
SFTLOLZ
Forum Newbie
Posts: 7
Joined: Tue Jun 22, 2010 12:30 pm

Stylesheet not being applied

Post by SFTLOLZ »

When I send a variable through a url to one of my pages the stylesheet refuses to apply. If no variable is sent, the stylesheet loads. Does anyone know a way to fix this?

for example

Code: Select all

www.sftlolz.com/index10.php
has a stylesheet applied. But

Code: Select all

www.sftlolz.com/index10.php/?id=10
does not.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Stylesheet not being applied

Post by requinix »

I'm not even going to look at the page and instead assume that I'm right:

When you link to anything you should use an absolute path. For instance, "/posting.php" instead of just "posting.php". That way stuff always works.
Use that on the path to the stylesheet in particular - probably need it on images and links and other stuff too.
Post Reply