. In other words, replace < with
and replace > with 
How to display HTML codes inside scroll box
Now on how to display HTML codes inside a scroll box. First, the script for a scroll box:<div style="width: 395px; height: 400px; background-color: a0ffff; color: 000000; font-family: arial; font-size: 12px; text-align: left; border: 0px solid 00000; overflow: auto; padding: 4px;"></div>
I have the script for the scroll box save in a notepad file to be retrieved whenever I need to use it. Now, to explain how I displayed the HTML codes for the scroll box. I paste whatever HTML codes I want to display into a notepad file. Then I click EDIT in the menu bar and select "Replace..." and then type > into the "Find what:" box followed by < into the "Replace with:" box (see screen shot below:
and then click "Replace all". Notepad will find all the < characters in the file and replace it with
automatically. I repeat with >, that is, type > into the "Find what:" box and
into the "Replace with:" box and click "Replace all".Thanks to DarkUFO, found a slightly easier way of encoding the HTML codes for display at encode HTML entities. What you have to do is to paste the HTML codes in between <em></em> and click "encode", then proceed as usual.
Once all the < and > had been replaced, I copy the edited file in Notepad and paste the edited HTML codes into the scroll box by pasting it in between >< in the script for the scroll box. I will then edit the width and height (in red) to suit the width of my main column and a suitable height to accommodate the length of the HTML codes I want to display. For example, the width (in red) is already set to 395 which is what I want, so I leave it alone. I edited height="400" to height="39", publish, done.



21 comments:
Peter,
There is a slightly easier way.
Use this tool -> http://www.centricle.com/tools/html-entities/
Paste in your code and hit encode.
Voila :)
Hi DarkUFO,
Thanks for the tip. I am going to add your tip to the post together with a link to your blog as acknowledgement.
Thanks Peter :)
I found it a while ago It's so useful lol
Two questions, Peter: How does one change the "older posts" at the bottom to "previous."
And how does one control the size of uploaded videos? Mine take up too much real estate on chickaboomer.blogspot.com
Best,
Marty
Chickaboomer
TV news analyst, media, political
Hi Peter,
This has nothing to do with your posting, but i wasn't sure if this blog was still active or not so I wanted to post on the most recent entry.
I have 2 questions: 1)Do you know how to make the sidebar/columns wider? (I have 2 column Dots Dark Template) & 2)Do you know of anyone who will convert a wordpress template to blogger beta?
Sorry one more question...I saw a post regarding a Dots Dark Template with a header, but the link says error 404 not found. Does this template still exist? Having no header is one of the things I most dislike about my current template. Any help you could give would be greatly appreciated. (Please visit my blog as well)
Hi,
Good Morning!
I want to buy 1 way paid text link from your site home page
blogger-tricks.blogspot.com on monthly basis.
We are not interested in yearly deal.
.
Our site is http://roi.com.au
Our budget is within $15/month.
If you are interested, please send me your rate per month and paypal information.
Thanks for your time..
Regards
Mark
I have found lots of useful tips on your blog- thanks!
I have modified my code to do a 3 column Ms. Moto template. But now I am having issues with my header and am unable to get it centered. Do you have any suggestions for me, or can you point me to a post that might help? Thanks.
Try surrounding what you want centered with <div style="text-align:center;">
Darn, typo. Here it is again:
Try surrounding what you want centered with <div> and <div style="text-align:center;">
Well, I have a picture uploaded as my header, and I can't find the code in the html for the picture. I do find some header code, but nothing I do to that seems to affect the placement of the picture.
Thanks for your suggestion, though.
If you upload photo to Header via "Add a Gadget" > Picture, you will not be able to do anything via the gadget other than resize to fit. You may be able to control something by editing the template after uploading but I have never tried.
If I want control over the photo, I will use Add a Gadget > HTML/Javascript and then use the HTML tag <img src="URL of photo" /"> etc and then you can add attribute like width="some number" etc.
The folloing are posts related to blog Header but I cannot remember exactly what is in the content, you will have to check yourself:
add graphic to blog Header
all about graphic in Header
How to change blog Header....
or try to find someone who have uploaded graphic to blog Header and have controlled its properties via template.
Thank you so much Peter- that makes sense. I have already added the ability to add more gadgets to the top after reading another one of your posts, so I think I can follow these instructions with no problem.
I REALLY appreciate your help and expertise!
hello sir i have a problem to post adsense in my blog just like you place but face a problem plz guide me i really need your help my plz check my source code my blog address is topautoreviews.blogspot.com
i m waiting for your reply
For Aalina,
Refer to
Embed Youtube video
Embed LiveVideo
Uploading video direct in Blogger post editor
a bundle of thanx sir i have posted adsense successfully.
For babyrockasmama,
For changing width, refer to changing width of main column and sidebars
For the template, refer to Dots 3 column with Header template
That really worked for me ..
TANQ
Thanks for your help! This was exactly what I was looking for!
There is a new editor in Blogger which allows you to show your code literally. Go to the link on how to use it.
http://www.google.com/support/blogger/bin/answer.py?answer=156829
Hi Peter, I am a new blogger. I found out a lot of useful tips from your blog. Thanks a lot.
Thanks for the tip mate. For myself, it addresses the problem of a lengthening article list. Now I can keep my earlier links and add on new ones without lengthening the entire page.
ed
(a2ed.com)
Post a Comment