Jump to content

CSS fails on php page when $_GET data used in URL


fj1200

Recommended Posts

Title says it all really.  CSS works fine when I use the page url on it's own - ok so I've got no data but I'm just making a working page look pretty and so it looks the same as all my other pages.  .

 

However, it's called as a link from a list of jobs in a parent page pulled from a DB query, and when I run it from there - clicking the link - I get all the data but no css formatting.  Same results in any browser.  I already have a very similar page that works perfectly with the same css sheet and I can't see any differences.  All the quotes are there, all the ;'s and ()'s are there.  The only thing I can think of is that with the GET data it thinks it's looking for a different page?  Probably talking rubbish here though.

 

Anyone able to help?

Links in the <head> section.

 

 <link rel="stylesheet" href="css/form.css" type="text/css">

 

Works perfectly in other pages with near-identical content.

 

 

Chances are it is because you need the full path inside the href.

 

IE:

 <link rel="stylesheet" href="http://yoursite.com/css/form.css" type="text/css">

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.