|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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.
|
|
#2
|
||||
|
||||
|
Turns out that a .php page will read the external css just fine, but as soon as I add the php include, it stops.
??? |
|
#3
|
||||
|
||||
|
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 |
|
#4
|
||||
|
||||
|
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.
|
|
#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. |
|
#6
|
||||
|
||||
|
no i was testing it on my host's space...i dont have my personal testing server setup yet.
|
|
#7
|
|||
|
|||
|
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. |
|
#8
|
|||
|
|||
|
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 |
![]() |
| Viewing: SEO Chat Forums > Other > HTML Coding > PHP and CSS Problems |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|