Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Linking to CSS issues with includes in php
Old 03-19-2009, 10:38 PM Linking to CSS issues with includes in php
Extreme Talker

Posts: 177
Trades: 0
Here is the scenario. On the index page, I include the css document, and the index page gets the css applied to the div's without an issue.

Now inside the index, theres a switch statement, and each part of the switch does one of two things...
PHP Code:
require_once('page_name'); 
or
PHP Code:
include('page_name'); 
Now with either one, if inside the 'page_name' is references to the style sheet linked IN index.php, none of the styles get applied.

is this supposed to happen this way? Or am maybe having a brain fart?

Thanks for any help, much appreciated.
kbfirebreather is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-20-2009, 01:29 AM Re: Linking to CSS issues with includes in php
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
It's supposed to work that way. One thing you may be overlooking is that in 'page_name' you may have a bad link to the CSS file. So if the main page and the included page are in different directories, you may need to play around a bit with the <link> tag href to get them working.

- Steve
__________________
if($stevej == "helpful") { $talkupation += $user_power; }
stevej is offline
Reply With Quote
View Public Profile
 
Old 03-20-2009, 02:27 AM Re: Linking to CSS issues with includes in php
Skilled Talker

Posts: 84
Trades: 0
Try giving absolute url path to the css file instead of using relative paths. Then you can identify what is the issue.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
- 1-888-869-HOST(4678)
Award winning Managed Hosting -
Please login or register to view this content. Registration is FREE

Managed Dedicated Servers. Reseller Discounts. 24/7 Impressive Tech Support
HivelocityDD is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Linking to CSS issues with includes in php
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11881 seconds with 12 queries