css in blogger
March 2, 2005 7:20 AM   Subscribe

I'm seeing weird stuff when I try to make some css changes to my Blogger index page.

I clipped all the code from the "template" view under the blogger control panel, threw it into notepad, and started playing with the formatting of one element. (Created a few new classes and added some php, all applied to a very limited part of the page.) To test my changes I named my textfile indextest.php and uploaded it to my webserver, then viewed in firefox. Rinse, repeat, until everything looked right. Then I went back to the blogger control panel and pasted in all the modified code, changed the settings so that my index page ends in .php, and viewed live. The php worked, but none of the css changes were applied! Why would things look OK within indextest.php, but when the same code is viewed through index.php, everything's gone?
posted by stupidsexyFlanders to Computers & Internet (12 answers total)
 
have you tried clearing the cache and reloading? (or simply reloading?) Firefox caches css I believe.
posted by jnthnjng at 8:52 AM on March 2, 2005


Uhm, totally not an expert, but is the original CSS file still cached somewhere and being loaded?
posted by carter at 8:53 AM on March 2, 2005


Response by poster: I flushed the cache, and there's no change. All the css is on the page, no external stylesheets are being referenced.

To see what I'm talking about, here are the two urls. They have the exact same source code, but render the css differently (just talking about the four digit number at the top of the right column.)

blogger's feed, incorrect
.
my test page, correct.
Note the blogger feeds don't show up in the test page, because it's got a different URL than blogger looks for.
posted by stupidsexyFlanders at 9:31 AM on March 2, 2005


*Really* not sure if this is relevant, but running both pages through W3C validator, the blogger feed looks okay (although there's bad syntax), but the parsing of the test page barfs at the meta-information tags, where it says blogencoding. I'm not sure what this means, but maybe that's where it's tripping up?
posted by carter at 9:57 AM on March 2, 2005


Response by poster: blogencoding is a blogger tag that exists only on the test page, along with all the other blogger tags on that page, because blogger isn't feeding that page, it's set up to feed the index.php page. On index.php the tag is replaced with the char encoding specified on the blogger control panel page, the same way the blogger post tags are replaced, on index.php, with the actual posts, again, fed from the control panel.
posted by stupidsexyFlanders at 10:08 AM on March 2, 2005


Best answer: I think I've found the issue. On your main page, your [div id="oiflink"] is not using regular quotes. Therefore, it treats that as #"oiflink", whereas the template page treats it as #oiflink. Try messing around the quotes around oiflink.
posted by jnthnjng at 10:33 AM on March 2, 2005


err. 'messing with the quotes...'
To expand a bit, if you view source, you'll notice that the quotes around oiflink in the main page are (in my font) slanted to the left slightly, whereas the normal quotes are straight vertical ticks, i.e. ” (curly / slanted) versus " (normal).
posted by jnthnjng at 10:37 AM on March 2, 2005


Response by poster: That fixed it. I don't know why I edited the file in Word, even saving as txt it came back to bite me.

Thanks for your help.
posted by stupidsexyFlanders at 10:41 AM on March 2, 2005


no problem. I figured it was something like Word. Those little tiny things are the most frustrating and the hardest to find. I probably wouldn't have noticed it without the Firefox "Web Developer toolbar" extension. It's got a handy feature that you can activate with ctrl+shift+s (View style information) that turns your cursor into a crosshair and displays the full CSS selector info in the status bar for any element you're hovering over.
posted by jnthnjng at 10:54 AM on March 2, 2005


StupidsexyFlanders is my neighbor? Wow, small world. We'll have to have a meetup at that kooky antiques joint next to the movie theater.
posted by fixedgear at 2:22 PM on March 2, 2005


Response by poster: fixedgear is my neighbor? well, there does need to be a philly meetup but I'm not sure that little store is the place for it ;)
posted by stupidsexyFlanders at 2:46 PM on March 2, 2005


Not to be snarky, but

I'm seeing weird stuff when I try to make some css changes to my Blogger index page.

could be its own category!

CSS is the mind killer. CSS is the little death...
posted by mecran01 at 3:02 PM on March 2, 2005


« Older How do you become a casting director?   |   My little toy.. Newer »
This thread is closed to new comments.