November 11, 2008
Here's another way you can customize your Blog. In this case, your Post. This tutorial will be about Magazine text style in Blogger Posts. You often see this style in newspapers, literature, magazines....It looks all right.
And here are two different Magazine styles:
- Drop CAPS
- Big size of the First letter in the Post
To achieve this effect, you have to place some code in your EDIT HTML section of Post Editor.
Code for DROP CAPS:<span style="float:left;color:#000000;font-size:100px;
line-height:70px;padding-top:2px;font-family: Times, serif, Georgia;">L</span>
Ok. You have to "surround" your letter with this code. For example, I've surrounded letter L (in orange), which will be on the beginning of my Post.line-height:70px;padding-top:2px;font-family: Times, serif, Georgia;">L</span>
You can change some settings if you like:
- color: #000000 (black) to whatever hex color you like (you can use color names also)
- font-size: just change 100px to whatever
- font-family: Times, Arial, Verdana....
- padding
Code for BIG FIRST LETTER:
<span style="font-family:Georgia,;color:#000000;
font-size:56px;font-weight:normal;line-height:80%;letter-spacing:-6px;">L</span>
Same thing here. Here's the example of some text in editor, and placed code:font-size:56px;font-weight:normal;line-height:80%;letter-spacing:-6px;">L</span>


If you are going to do this often, and it bothers you to copy so much code every time, you can create some CSS style in your HTML template code. Go to:
DASHBOARD --> LAYOUT --> EDIT HTML, place the following code (white), above existing (orange):
.dropcap {
float:left;
color:#000000;
font-size:100px;
line-height:70px;
padding-top:2px;
font-family: Times, serif, Georgia;
}
body {
background:$bgcolor;
margin:0;
color:$textcolor;
Save Settings. Now, next time you want to "surround" your first letter with code, it will look like this:float:left;
color:#000000;
font-size:100px;
line-height:70px;
padding-top:2px;
font-family: Times, serif, Georgia;
}
body {
background:$bgcolor;
margin:0;
color:$textcolor;
<span class="dropcap">L</span>
This was a CSS for DROP CAPS, for BIG FIRST LETTER it's the same story, just change the CSS part, so it will look like this:.bigfirst {
font-weight:normal;
color:#000000;
font-size:56px;
line-height:80%;
letter-spacing:-6px;
font-family: Times, serif, Georgia;
}
When you're "surrounding" your letter, you'll use this code:font-weight:normal;
color:#000000;
font-size:56px;
line-height:80%;
letter-spacing:-6px;
font-family: Times, serif, Georgia;
}
<span class="bigfirst">L</span>
NOTE:
- it is recommended to apply code at the end, and publish it from EDIT HTML mode (sometimes, if you switch from compose to HTML, it can undo the change - this doesn't happen if you placed CSS in your template)
- you can (and sometimes you'll have to) adjust font size, padding, color in the code
- you can use paragraphs to gain some line space between Post title and Content text
<p>
<span style="float:left;color:#000000;font-size:100px;line-height:70px;padding-top:2px;font-family: times;">L</span>orem ipsum dolor sit amet, consectetuer adipiscing elit. Duis id odio quis ipsum fermentum dapibus. Nam magna. Aenean quis dolor ac enim luctus tristique. Aliquam sagittis accumsan est.
</p>
<span style="float:left;color:#000000;font-size:100px;line-height:70px;padding-top:2px;font-family: times;">L</span>orem ipsum dolor sit amet, consectetuer adipiscing elit. Duis id odio quis ipsum fermentum dapibus. Nam magna. Aenean quis dolor ac enim luctus tristique. Aliquam sagittis accumsan est.
</p>
That's about it. Remember to change some colors! You can find some hex values here...
Smile!

















13 comments:
will try this,thanks!
Hi Pocket
It's me again :)
I have an idea and this is a big challenge I guess. As you may see on my ongoing template process, the text size a bit tiny relative to the width of the post body. I paste 5 paragraph of "Lorem ipsum" dummy text and it is really tiring to read all post in this case. And no, I don't want them body text to be bigger.
Here is my idea; I want my body text divided into 2 columns "only" if my body text is larger than, say, 500 words. Or larger that 2 paragraphs. If it is not, it will be one wide body as it is currently. This is how the text tends to be set in a magazine or newspaper. Can a code or script which contains "if" statement do this or should the user edit the post separately in HTML mode.
I found this beautiful grid generator but last night I was almost ruin my entire template with it.
http://grid.mindplay.dk/
Fortunately I did my backup and restored it. There should be some kind of css or java trick may do this.
What you think?
http://tampwork.blogspot.com/
lazyblogger,
I don't know about the script that could do this...I think it's better to Edit the posts manually:
1. Create 2 different "div" elements in CSS (with certain width, text style, and one floated left, the other one right...)
2. While editing/composing a post, place the text in their corresponding div.
You have to use the same "div id" as in CSS, in order to pick up that style..
Alternative is to use the div's in your post, and stylize them directly in the post (width, float...)
pocket
Hi thanks a lot for this :)
Btw this is a good site to generate hex color codes
http://www.2createawebsite.com/build/hex-colors.html
I've tried this several times and it doesn't work for me - I put the code in the html edit tab, when I click compose I see the drop letter, but when I hit preview or publish the letter is small???? why wont it work?
Woohoo, I ♥ this tip!Thanks!!
thank you very much
u r rockstar Pocket... thanks a lot... can you post a tutorial for customized and add Share Icons (like facebook, twitter etc) just like u hv below ur signature...
thanks,
Saurabh
I love this effect...thanks bro....check this
http://wepeople.co.nr
it didn't work for me either and I tried both ways :[
Can we just do it from window Live writer?
Is there a way to do this so it works AUTOMATICALLY in each post? I would hate having to go back through each old post to add the span style code. Can it be done through the blogger "edit html" template? (Not through their widget and automated stuff.)
Louis Vuitton handbags sale and cheap replica louis vuitton handbags sale and cheap Louis Vuitton bags sale and cheap Louis Vuitton purses sale and cheap louis vuitton wallets sale and cheap lv Bags sale and cheap replica LV handbags sale and cheap cheap louis vuitton handbags sale and cheap discount louis vuitton handbags sale and cheap louis vuitton handbags on sale sale and cheap cheap louis vuitton bags sale and cheap replica louis vuitton bags sale and cheap cheap louis vuitton purses sale and cheap replica Louis Vuitton purses sale and cheap cheap louis vuitton wallets sale and cheap replica louis vuitton wallets sale
Say it...