HTML Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   SEO Chat ForumsOtherHTML Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread SEO Chat Forums Sponsor:
  #1  
Old November 18th, 2005, 07:23 PM
MABDesign's Avatar
MABDesign MABDesign is offline
SEO Ninja
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Location: Richmond/Raleigh
Posts: 297 MABDesign User rank is Corporal (100 - 500 Reputation Level)MABDesign User rank is Corporal (100 - 500 Reputation Level)MABDesign User rank is Corporal (100 - 500 Reputation Level)MABDesign User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 3 h 44 m 13 sec
Reputation Power: 6
Exclamation PHP and CSS Problems

So i'm converting my html pages to php because i have to add a few php includes for my ratings system and my traffic monitoring. I'm trying to minimize my file sizes by putting all of my css rules in an external file. The rules are followed as they should when the page is in html form. However, when i convert to php, it doesn't follow my css rules anymore if they're external. However, if i put the rules in the header of the page itself, then it follows them fine. Has anyone else had this problem??? I'm totally stumped on this one.

Reply With Quote
  #2  
Old November 18th, 2005, 07:45 PM
MABDesign's Avatar
MABDesign MABDesign is offline
SEO Ninja
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Location: Richmond/Raleigh
Posts: 297 MABDesign User rank is Corporal (100 - 500 Reputation Level)MABDesign User rank is Corporal (100 - 500 Reputation Level)MABDesign User rank is Corporal (100 - 500 Reputation Level)MABDesign User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 3 h 44 m 13 sec
Reputation Power: 6
Turns out that a .php page will read the external css just fine, but as soon as I add the php include, it stops.

???

Reply With Quote
  #3  
Old November 22nd, 2005, 02:52 PM
totalit#051's Avatar
totalit#051 totalit#051 is offline
Contributing User
SEO Chat Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: Botosani, Romania
Posts: 662 totalit#051 User rank is Corporal (100 - 500 Reputation Level)totalit#051 User rank is Corporal (100 - 500 Reputation Level)totalit#051 User rank is Corporal (100 - 500 Reputation Level)totalit#051 User rank is Corporal (100 - 500 Reputation Level)  Folding Points: 1365 Folding Title: Novice Folder
Time spent in forums: 4 Days 12 h 11 m 19 sec
Reputation Power: 6
Send a message via Yahoo to totalit#051
Insert the code that defines you css file before other include clause and it should work just fine.
__________________
Epureanu Bogdan On-line - my personal website
Total IT Professional - my company website
Midnight's angel - a website where i help people

Reply With Quote
  #4  
Old November 23rd, 2005, 04:52 PM
MABDesign's Avatar
MABDesign MABDesign is offline
SEO Ninja
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Location: Richmond/Raleigh
Posts: 297 MABDesign User rank is Corporal (100 - 500 Reputation Level)MABDesign User rank is Corporal (100 - 500 Reputation Level)MABDesign User rank is Corporal (100 - 500 Reputation Level)MABDesign User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 3 h 44 m 13 sec
Reputation Power: 6
It turned out to be a dreamweaver problem. I had let my css rules get sloppy, and somehow Dreamweaver's creation of random CSS rules had complicated things. I sorted it out by putting all the css in an external file and refusing to let DW arbitrarily make new rules.

Reply With Quote
  #5  
Old November 25th, 2005, 09:07 AM
justicewhite justicewhite is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 304 justicewhite User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 13 h 17 m 21 sec
Reputation Power: 5
Ahhh! were you testing this stuff on your local web server rather than the webhoster?
__________________
Estate Agents Reading provide residential property consultancy.

Letting Agents Reading provide residential property rental services.

Reply With Quote
  #6  
Old November 25th, 2005, 04:19 PM
MABDesign's Avatar
MABDesign MABDesign is offline
SEO Ninja
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Location: Richmond/Raleigh
Posts: 297 MABDesign User rank is Corporal (100 - 500 Reputation Level)MABDesign User rank is Corporal (100 - 500 Reputation Level)MABDesign User rank is Corporal (100 - 500 Reputation Level)MABDesign User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 3 h 44 m 13 sec
Reputation Power: 6
no i was testing it on my host's space...i dont have my personal testing server setup yet.

Reply With Quote
  #7  
Old January 27th, 2006, 05:32 PM
circuithead circuithead is offline
Registered User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Jan 2006
Posts: 4 circuithead User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 24 m 5 sec
Reputation Power: 0
i'm having the same problem. the only way around it that I've found is to include the stylesheet in the include file, but that gets kinda messy looking. hmmm

i'm using fc4 and php5 on a dev server.

Reply With Quote
  #8  
Old January 27th, 2006, 05:45 PM
circuithead circuithead is offline
Registered User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Jan 2006
Posts: 4 circuithead User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 24 m 5 sec
Reputation Power: 0
dur da durrr

haha.

had a dur da durr moment there.

p.s.: relative links are bad for linking css...especially when you use php includes that are not in the same directory.

hehe.

game on...have a great weekend

Reply With Quote
Reply

Viewing: SEO Chat ForumsOtherHTML Coding > PHP and CSS Problems


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT