OZONE Asylum
Forums
CSS - DOM - XHTML - XML - XSL - XSLT
How can I use different styles of posts for different members of a blog?
This page's ID:
29596
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I have a group blog at robogrobo.blogspot.com. The members are "Travis" & "Raye". I am trying to give each post a different style, that means a different backgrounds, fonts, colors etc. Google has a help file on how to do this. The help file is located at: [url=http://help.blogger.com/bin/answer.py?answer=41952&useful=0&show_useful=1]LINK[/url] A summary of the tutorial is as follows; This code is replaced by a post's content: <data:post.body/>... This code is replaced by an author's name: <data:post.author/>... Wrap the post data (<data:post.body/>) in span tags and set the class to it's author's name (<data:post.author>)... Define a style for each user... .Raye { background: yellow; } .Travis { background: blue; } <span class="<data:post.author/>"> <data:post.body/> </span> Blogger immediately rejects the code. It says something about too many carrots. I pruned some carrots... <span class="data:post.author/"> <data:post.body/> </span> Blogger doesn't complain when I save the file but it doesn't change my layout either. More bugs. Drat. Stomp-- Splat! What went wrong? Was is the way I wrote my styles in? I test this by adding a more explicit span around the <data:post.body> element... <span class="Raye"><span class="data:post.author/"> <data:post.body/> </span> </span> The stylesheet for "Raye" now applies to both "Travis" & "Raye", just as would be expected. Perhaps the [code]<data:post.author/>[/code] element is broken. I try placing a bunch of them right after the [code]<data:post.author/>[/code] element. This makes it appear as though I wrote Travis Travis Travis at the end of my post. Does anyone have any suggestions? I'm really new to this CSS/XML stuff and have been as thorough as i know how to be. Thanks, Travis McKinney edit: formated post better/removed slimies [small](Edited by [url=http://www.ozoneasylum.com/user/6603]robogrobo[/url] on 10-05-2007 04:21)[/small] [small](Edited by [url=http://www.ozoneasylum.com/user/6603]robogrobo[/url] on 10-05-2007 04:22)[/small] [small](Edited by [url=http://www.ozoneasylum.com/user/6603]robogrobo[/url] on 10-05-2007 04:24)[/small] [small](Edited by [url=http://www.ozoneasylum.com/user/6603]robogrobo[/url] on 10-05-2007 04:24)[/small] [small](Edited by [url=http://www.ozoneasylum.com/user/6603]robogrobo[/url] on 10-05-2007 04:30)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »