Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Posting CSS in blogger posts
Old 02-24-2008, 05:54 PM Posting CSS in blogger posts
Skilled Talker

Posts: 54
Name: Fred
Trades: 0
I've not been able to find this in any searches, partly because I don't really know what terms to use.

I'm trying to post some CSS code into a blog post, as instructions, in the 'copy and paste this code into your template code....' kind of way, but when I try to publish the post I get either 'tags not allowed' error, or the code simply doesn't show in the post when I view it on my blog.

I know it's something to do with the code trying to 'operate', but I want to simply display it as text for others to copy. I've tried using the <!-- tag to no avail.

Any help muchly appreciated.
Billy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-24-2008, 06:08 PM Re: Posting CSS in blogger posts
Arenlor's Avatar
Ultra Talker

Posts: 462
Name: Jerod Lycett
Location: /home/arenlor
Trades: 0
Use HTML entities http://www.w3schools.com/html/html_entities.asp
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Old 02-24-2008, 07:58 PM Re: Posting CSS in blogger posts
Skilled Talker

Posts: 54
Name: Fred
Trades: 0
Thanks, Arenlor, but either I'm stupid or you haven't quite understood my problem.

When you search for blogger hacks, tips, widgets etc etc, you'll find loads of blogs with all manner of little tricks. These usually take the form of a piece of code - be that html or CSS - that you are instructed to copy and paste into your own template. This is what I want to be able to do. I want to be able to provide two lines of script, and a short CSS. How do post this coding so that it displays on my blog for others to copy and paste into their own template?

For example. If I wanted to explain the simple (a href="...) link tag in this post and show what code is used, I couldn't do it because that code would then become the link when I posted. I hope explains a little clearer what it is I'm trying to do.
Billy is offline
Reply With Quote
View Public Profile
 
Old 02-24-2008, 08:40 PM Re: Posting CSS in blogger posts
Arenlor's Avatar
Ultra Talker

Posts: 462
Name: Jerod Lycett
Location: /home/arenlor
Trades: 0
You use the html entities, so for example &amp; would show the ampersand.
[code]&lt;a href=""%gt;[code]
That would show up as <a href=""> though I suggest using the numbered entities (#60 for less than and #62 for greater than)
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Old 02-24-2008, 08:54 PM Re: Posting CSS in blogger posts
Skilled Talker

Posts: 54
Name: Fred
Trades: 0
As I suspected, I'm stupid!

I have a feeling you're going to give up on me here, but I'm afraid your instructions are far too advanced.

I think I can follow them sufficiently enough to get the two lines of script to show, but what about the short section of CSS?

I know you've naswered this as far as you're concerned, but I need thick-as-pig-**** instructions. Is there something I can simply insert before and after the CSS so that it will show up on my blog, or do I have to modify every tag?
Billy is offline
Reply With Quote
View Public Profile
 
Old 02-24-2008, 09:09 PM Re: Posting CSS in blogger posts
Banned

Latest Blog Post:
Oscar: The Bionic Cat
Posts: 237
Trades: 0
hmm... blogger is in xml format... i use some html parser so to convert to xml code.. but not really sure if theres one for css...
bogs is offline
Reply With Quote
View Public Profile Visit bogs's homepage!
 
Old 02-24-2008, 09:12 PM Re: Posting CSS in blogger posts
Arenlor's Avatar
Ultra Talker

Posts: 462
Name: Jerod Lycett
Location: /home/arenlor
Trades: 0
I'm pretty sure you'll have to do them each. I'm not fully familiar with Blogger
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Reply     « Reply to Posting CSS in blogger posts
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25281 seconds with 12 queries