View Full Version : CSS not working at all...
vincenzosi
09-09-2005, 06:43 PM
After a fresh install of Pixelpost (http://www.cncg.com/gallery/) none of the css works. Basically nothing on the site has a style applied including the admin section.
Any suggestions?
Joe[y]
09-09-2005, 07:32 PM
try changing
<link rel="stylesheet" href="./templates/pixelpost-light/pixelpost-light.css" type="text/css" />
to
<link rel="stylesheet" href="./templates/pixelpost-light/pixelpost-light.css" type="text/css" />
vincenzosi
09-09-2005, 07:49 PM
Okay. New twist
It's working in IE, just not in Firefox... Not as big a problem... And both of those code snippets are the same above... :confused:
Connie
09-09-2005, 08:39 PM
after a fresh install, all template folders will have folders with CSS-files which work in all browsers
after a fresh install, admin area has a CSS file, too
did you upload the files really in ASCII mode???? Maybe your FTP-program uploads CSS-files in binary mode????
Is your browser configured to use CSS? Do you use your own templates or the original ones?
Sorry, I cannot believe that there is something wrong with our css files
Not at all
otherwise all users would have problems
I validated your page, it is valid HTML, it is valid CSS... there is only one problem which could cause errors:
<meta http-equiv="content-type" name="description" content="CNCG / Motorola Gallery-PhotoBlog: test, test
" />
try to write this in one line please! It could break the rendering of the code
repair this, it must be the error !!!!!:mad:
vincenzosi
09-09-2005, 10:08 PM
Thanks Connie, but none of that worked. Everything is the stock configuration, uploaded properly (this isn't my first install) and the templates are right off the install package and work fine under Internet Explorer.
Obviously something's not wrong on my end or they wouldn't work in IE either.
Any help would be appreciated.
premii
09-09-2005, 10:30 PM
Problem is your CSS files, copy and paste to new file and uploading as ASCII ,
I tried your site locally, saved into my computer and tried it, it fails for your stylesheet, but when I try with my personal stylesheet, it works fine.
vincenzosi
09-10-2005, 03:18 AM
Something's not Kosher dude. I just did exactly what you told me. I CAN NOT get it to work in Firefox. Period.
This is so frustrating it's unbelievable.
vincenzosi
09-10-2005, 04:33 AM
Well...
After uploading the same CSS files a million times, it turns out I didn't do anything wrong in setting up PP. As it turns out, the Doctype declaration at the top of the page was the problem. Apparently, FF was reading it, IE wasn't, and the server wasn't serviing the document correctly. Took out that one line... BAMMO.
Everything is AOK.
Thanks for the help all!
Connie
09-10-2005, 06:44 AM
it's good that you get some visual effect now, the CSS is working now, but still your page is not correct
now because of the missing doctype you just relay on QUIRKS mode of the browser and that will never be satisfying
you need a doctype declaration and you should take this one:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
this declaration is ok, and it will avoid upcoming problems in the future
you will never know why something is not working if you don't use it and you will give us or others in other forums a lot of brain-pain:rolleyes:
as you can see at my site, http://www.photografitti.de, this doctype is correct and working
so please, add i, a DOCTYPE-Declaration is a MUST BE
and I am sure the broken line with no " at the end was a reason for mistakes, I bet!
vincenzosi
09-10-2005, 06:07 PM
Well Connie... Yet again, you were SURE of something that isn't the problem.
First you were sure that I was uploading the css files the wrong way.
Now you're sure the declaration is wrong and that's why it's not working.
So I took your advice, added the exact declaration, and bammo. CSS stopped working.
Oh well. Out it goes. I'll rely on Quirks mode for Firefox. I need to save MYSELF some brain pain for a change.
Connie
09-10-2005, 06:20 PM
I excuse myself for being so wrong when IE is so without errors
I just gave you some tips from many many experiences with IE
sorry, won't do that again
Joe[y]
09-11-2005, 10:07 AM
Okay. New twist
It's working in IE, just not in Firefox... Not as big a problem... And both of those code snippets are the same above... :confused:
oh bollocks! i meant replace ./templates/ with ../templates/ !
sorry. hope that works better!
Connie
09-11-2005, 11:52 AM
so, because I have a good heart and some knowledge, even if you might not believe this, I found the reason for the broken CSS!
there was a wrong character in the template
http://www.bildgier.de/test/code.jpg
you see it?
I deleted this
corrected the code (nesting errors, no <p> in <strong>, please!)
modified the stand-alone-tags,
and what you get? A working webpage even in IE!
you might proof that at http://www.bildgier.de/test/index.htm where I uploaded the modified version to check online
still some errors in CSS, but that I will not correct for you, you might do that yourself
and once again, I was right, not so far from the solution:
No valid code,
some wrong characters or linebreaks
etc.
I just ask you to accept that even when suggestions do not bring the final solution at once, they sometimes point to the right direction
plus: try to stay standard-compliant, omitt and avoid mistakes to be sure to get a working webpage
plus: this was not at all a fault of PP
I attached the index.htm as "index.txt"
vincenzosi
09-11-2005, 05:59 PM
With all due respect, Connie, I tried every single thing you suggested and none of them worked, so could we please not make this sound like I was some kind of stubborn jerk who was unwilling to try offered solutions?
Thanks for the help.
vincenzosi
09-12-2005, 11:18 AM
So, Connie...
This morning I tried the "fix" you gave me and the error in my template, and sure enough it still doesn't work in Firefox. You are 100% right that it works in IE, but then again it always did. As did the admin template, which I never touched one single line of.
See, we keep twiddling around with the css code on the template and fifty million times I've been told I was doing something wrong in setting up my template, even though out of the box with the standard template, it never worked either.
Just so you know, the admin template doesn't work for me either (meaning, I get a plain page stripped of all formatting) if I leave the document type in it.
The problem is much deeper than something I goofed up in the template. I'm happy that, as you pointed out, it works in IE, but that was never really a problem to begin with; it always worked in IE.
In other words, since the admin template's css doesn't work on that server either, I don't think we can just chalk that up to some great error I've made with the code that has mangled it to the point of it not functioning.
Again, I appreciate the help, but this is not a problem of my creation and is not one that any of the "fixes" offered thus far has solved, though I've tried them all.
Joe[y]
09-12-2005, 02:38 PM
as your pages work for me in all browsers perhaps you should try just simply clearing your cache out...
sometimes the simple solution is the best. why would it work for me and not for you? i also see css for your admin.
clear your cache. cheers.
hope that helps
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.