fj1200 Posted December 17, 2008 Share Posted December 17, 2008 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? Quote Link to comment https://forums.phpfreaks.com/topic/137376-css-fails-on-php-page-when-_get-data-used-in-url/ Share on other sites More sharing options...
premiso Posted December 17, 2008 Share Posted December 17, 2008 Post some code? Is the CSS included as a <link tag or inside the <style> tags? Quote Link to comment https://forums.phpfreaks.com/topic/137376-css-fails-on-php-page-when-_get-data-used-in-url/#findComment-717775 Share on other sites More sharing options...
fj1200 Posted December 17, 2008 Author Share Posted December 17, 2008 Links in the <head> section. <link rel="stylesheet" href="css/form.css" type="text/css"> Works perfectly in other pages with near-identical content. Quote Link to comment https://forums.phpfreaks.com/topic/137376-css-fails-on-php-page-when-_get-data-used-in-url/#findComment-717780 Share on other sites More sharing options...
premiso Posted December 17, 2008 Share Posted December 17, 2008 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"> Quote Link to comment https://forums.phpfreaks.com/topic/137376-css-fails-on-php-page-when-_get-data-used-in-url/#findComment-717784 Share on other sites More sharing options...
fj1200 Posted December 17, 2008 Author Share Posted December 17, 2008 Yeah that's got it, thanks. Had to be something stupidly obvious now, didn't it? Quote Link to comment https://forums.phpfreaks.com/topic/137376-css-fails-on-php-page-when-_get-data-used-in-url/#findComment-717793 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.