Skip navigation.

STICKY POST

Welcome to the Official Launch of Pimp My Blog :: Reloaded!

Thanks for dropping by. We hope you'll take advantage of the resources we have here for you. We've combined Ivan Minic's Pimp My Blog series and his custom banners, buttons and wallpapers, all created with the Opera Communit in mind with Joni Mueller's custom themes and banners to create one mega-resource, your "one stop shopping center" for all things OC.

You should probably make it a point to read this article, Key to Navigating This Site, and remember that tags are the key to finding what you need here.

Have a suggestion? A question? Something you want to see here that we don't have? Send us a Private Message or leave a comment here. And again, thanks for stopping by!

Ivan and Joni

Default Theme: Theme 7

, , , ...

Discussion

This theme has an 852x182 pixel fixed-width header graphic. Therefore, any other "drop and go" headers that are 852 pixels wide (the height doesn't matter as much) are suitable for use with this theme. This theme has tabbed navigation on the menu bar.

Drop and Go Banners

We have created a series of drop and go banners to which we have applied saturation to approximate the blue tone of the original image. You can find those images in this photo album. The header graphics can be linked to from here and each header graphic has code for you to copy and paste into your own blog. If you want to download the image and upload it to your own blog space, you certainly can. If you do so, remember that you will need to modify the stylesheet to include the path to your image. And depending on the image, you may want to modify the H1 (Header) and Subtitle color.

Applying Styles to Your New Banner

For each drop and go banner in the photo album, we have modified the below code to link to the banner here. So unless you wish to download the header graphic to upload to your own Opera blog space, there's really no need to do much else to the code unless you simply want to personalize it further. We've highlighed areas of the code that you might want to tweak to suit.

#top {
font-size:11px;
width:852px;
margin:0 -10px;
text-align:left;
background:#c1ccd9 url(/community/graphics/users/7/top.jpg) top left;
height:195px;
color:#516b92;
}

#top h1 {
margin:0;
width:100%;
overflow:hidden;
font-size:20px;
font-weight:normal;
padding-top:18px;
}

#subtitle {
margin:0;
font-size:12px;
width:100%;
overflow:hidden;
color: #fff;
}

The Stylesheet

The entire stylesheet, comprising common.css and main.css, can be downloaded below. Having every element in a custom stylesheet allows you more leeway to change things, and yet, unchanged items do not disturb any portion of the design you do not wish to change. Refer to other sections of this blog for tips and tricks to further customize your stylesheet.

theme4.css

Step 4: Other My.Opera.com Pages

, , , ...

Profile, Links, Friends, etc.

Most of the elements we have already explained in the last three steps, so from now on, we aren't going to go line by line, and there will be no textual or graphic examples. We will just explain how things work and then, in Step Five, go to what you all are waiting for: Tips and tricks to make your Opera space look good!

Profile

In main.css you'll find the area that deals with the profile. It will be prominently marked:

/* :: PROFILE :: */

So, what are the most important elements and what do they control?

#profile
Controls the width of that whole page.
#profile h2
Controls captions on blocks in your profile page.
#profile-top
Controls basic properties for the fields / blocks in your profile.
#userinfo
Controls first big block in you profile where user data is stored.
#userpic
Controls the picture in block mentioned above.
#myspots li
Place that controls list of your spotlights. You can change icon here.
#friendlist li
Place that controls list of your friends. You can change icon here.

Friends

If we take a look into main.css of default theme we will spot that there is a part about friends. That part is marked:

/* :: FRIENDS :: */

So, what are the most important elements and what do they control?

.myfriend
Controls the look of cells where data for each friend is stored.
.myfriend h3
Controls the way your friend's name will look.
.mypic
Controls the look of field where your friend's picture is shown.
.myloc, .friendof
Controls the look of your friend's location.
.myfriend blockquote
Controls the look of friend's quote.
#fnet h3, #fnet2 h3, #fnet3 h3
Controls the look of cells that show friendly network page stages.
.fpic
Controls the look of friends' picture in friendly network.

Links

If we take a look into main.css of default theme we will spot that there is a part about links. That part is marked:

/* :: LINKS :: */

#mylinks
Controls the width of that whole page.
#mylinks h2
Controls captions on blocks in your links page.
#mylinks p
Basically controls fontsize used on the whole page.
.newsfeed span, .newsfeed a
Controls newsfeeds.
.url
Controls color of the links.
.linkdesc
Controls the look of links description.

Step 3: Sidebar Elements

, , , ...

Sidebar Width

If we take a look into the stylesheet of most of the Opera default themes we will spot that there is a part that controls the sidebar and its contents:

#sidewrap {
     width:190px;
     float:right;
     font-size:11px;
     overflow:hidden;
}

And to explain it line by line:

width:190px;
The width property sets the width of an element, and can be expressed in pixels (px), ems or percentages. In this case width of the title is 190px.
float:right;
The image or text moves to the right in the parent element.
font-size:11px;
Font-size sets the size of a font, and can be expressed in pixels (px), ems or percentages. In this case the font size is set to 11px.
overflow:hidden;
The overflow property sets what happens if the content of an element overflow its area. The value "hidden" means that the content is clipped, but the browser does not display a scroll-bar to see the rest of the content.

So what can I do?

We will have four examples so that you can see how minor changes in the stylesheet can dramatically affect the look of the sidebar.

Example 1: Changing Font Size, Adding Color

#sidewrap {
    width:190px;
    float:right;
    font-size:14px;
    color:#666699;
    overflow:hidden;
}

NOTE: Again, you can abbreviate color by declaring #669 rather than #666699.

Example 2: Changing Float, Font Family

#sidewrap {
     width:190px;
     float:center;
     font-family:'Trebuchet MS',arial,helvetica,sans-serif;
     font-size:11px;
     overflow:hidden;
}

Example 3: Changing Font Family

#sidewrap {
     width:190px;
     float:left;
     font-family:Impact,arial,helvetica,sans-serif;
     font-size:11px;
     overflow:hidden;
}

Example 4: Changing Font Family, Adding Font Style

#sidewrap {
     width:190px;
     float:right;
     font-size:11px;
     font-family:Georgia,Times,'Book Antiqua',serif;
     font-style: italic;
     overflow:hidden;
}

Note: Notice we changed to a serif (scripty) font, which lends itself nicely to being italicized as well. :smile:

Sidebar Captions

And there's also a section that styles the sidebar captions.

#side h2, #side caption {
     color:#fff;
     background:#3b649c;
     font-size:10px;
     font-weight:normal;
     text-transform:uppercase;
     text-align:left;
     margin:0 0 1px 0;
     padding:2px 0 2px 5px;
}

Let's deconstruct it now.

color:#fff;
The color property sets the color of text. It is best to use colors from the color safe pallette. It is also best to express colors as hex values (e.g., #rrggbb). In this case color used is #fff (white).
background:#3b649c;
The CSS background properties define the background effects of an element. Elements are already explained above.
font-size:10px;
Font-size sets the size of a font and is expressed in pixels (px), ems and percentages. In this case font size is 10px.
font-weight:normal;
There are only certain instances where this is needed at all because font weight is usually normal by default, except headers (H1, H2, etc.). These are, by default, bold. So if you do not want your headings to be bold, you'd declare font-weight:normal in that case. Also, if earlier in your stylesheet, you have this element declared as font-weight:bold and you want to turn it off for this instance, you'd then use font-weight:normal.
text-transform:uppercase;
The text-transform property controls the letters in an element.
text-align:left;
The text-align property affects how the text is arranged, left, center, right or justify (not recommended as Very Bad Things sometimes ensue in uncooperative browsers).
margin:0 0 1px 0;
The CSS margin properties define the space around elements. In this case margin is 0 0 1px 0 (top, right, bottom, left).
padding:2px 0 2px 5px;
The CSS padding properties define the space between the element border and the element content. In this case padding is 2px 0 2px 5px; (order is top, right, bottom, left).

So what can I do?

Example 1: Changing Color, Background and Font Size

#side h2, #side caption {
     color:#CC3300;
     background:#008000;
     font-size:12px;
     font-weight:normal;
     text-align:left;
     margin:0 0 1px 0;
     padding:2px 0 2px 5px;
}

Example 2: Changing the Background Color and Font Size

#side h2, #side caption {
     color:#fff;
     background:#CC3300;
     font-size:20px;
     font-weight:normal;
     text-transform:uppercase;
     text-align:left;
     margin:0 0 1px 0;
     padding:2px 0 2px 5px;
}

Example 3: Changing the Background Color

#side h2, #side caption {
     color:#fff;
     background:#CC6600;
     font-size:10px;
     font-weight:normal;
     text-transform:uppercase;
     text-align:left;
     margin:0 0 1px 0;
     padding:2px 0 2px 5px;
}

Example 4: Changing the Background Color, Font Size, Font Family and Font Style

#side h2, #side caption {
     color:#fff;
     background:#f5f5f5;
     font-size:20px;
     font-family:'Georgia',arial,helvetica,sans-serif;
     font-weight:italic;
     text-transform:lowercase;
     text-align:left;
     margin:0 0 1px 0;
     padding:2px 0 2px 5px;
}

Additional Information and Other Things You Can Try

  1. With this element, if you want to experiment, you can make graphical header; however that might need tweaking (padding and margins) too. This might be explained later in Tips and Tricks.
  2. Feed blocks background is changed with #side h2.feedheader element from main.css of default theme.
  3. Background of sidebar blocks (gray gradient can be changed by altering .sidebox .pad</l> element from main.css of default theme.

Other Sidebar Elements

In main.css, you will find other sidebar elements, for example, .calendar and .countdown. In this case, we won't explain these elements in great detail, because most of the elements have been covered exhaustively elsewhere here. But we will try to clear things up that are unique to these two divisions.

Calendar

All important css elements that style the calendar can eaasily be changed:

#calendar
This controls all general preferences. For example, width, font size, background, border and similar.
#calendar th
This controls days in the week list.
#calendar td
This controls 1 - 31 and months.
#calendar td a
This controls color of linked elements.
#calendar td#today
This controls properties of cell in which today's number is located.
#side a#calendarmonth:hover
This controls color of hover efect in calendar. Experiment with changing not only the color but the background as well!

Album slideshow

All important css elements controlling the album slideshow are:

#albumslides
This controls all general preferences for slides.
#side #albnav
This controls border and similar stuff of element described below this one.
#control_left, #control_right
This controls control elements that are located below thumbnails.
.albname
This controls elements related to list of albums you made.

Countdowns

#side .cdwn
All elements regarding countdowns

Step 2: Blog Elements

, ,

Post Title, Sticky Post, Date

Post Title

If we take a look at the main.css stylesheet of almost any of the default Opera themes, we see .post .title.

.post .title {
    margin:0 0 10px 0;
    font-size:20px;
    line-height:normal;
}

Now, as you all can see, this is a text element, so any property we used in Step 1 for similar elements can also be used here. For example, you can add color, font-family, font-style and so on. So, let's take a look at it again, line by line:

margin:0 0 10px 0;
The CSS margin properties define the space around elements. In this case margin is 0 0 10px 0. NOTE: margin and padding properties are listed in this order: top, right, bottom, left. In the example above, the top, right, and left margins are 0px, and the bottom margin is 10px. If all margin properties are the same, you can simply state: margin: 10px; (or whatever the property is).
font-size:20px;
Font-size sets the size of a font, expressed in pixels (px), ems or percenrages. In this case, the font-size is set as 20 pixels.
line-height:normal;
The line-height property sets the distance between lines. Value normal sets a reasonable distance between lines.

So what can I do?

We will create four different examples with code showing where changes should be made, and provide screen shots so you can see how each of them looks and how these edits can dramatically affect your text.

Example 1: Changing Font and Color

.post .title {
    margin:0 0 10px 0;
    font-size:20px;
    font-family:'Impact',arial,helvetica,sans-serif;
    color:#666699;
    line-height:normal;
}

NOTE: When using hexidecimal codes to indicate font color (#rrggbb, where rr=red, gg=green, bb=blue), the color can often be expressed in shorthand. #666699 becomes #669; #ffffff becomes #fff. You cannot convert colors such as #ee8080 or #fce800. Each triad (red, green, blue) must be the same.

Example 2: Changing Font Family, Font Style and Color

.post .title {
    margin:0 0 10px 0;
    font-size:20px;
    font-family:'Verdana',arial,helvetica,sans-serif;
    color:#666666;
    font-style:italic;
    line-height:normal;
}

Note: Again, you can abbreviate #666666 to #666. There are only three font-style attributes: normal, italic and oblique. Some fonts don't render oblique any differently than italic, so for all practical purposes, font-style is just a fancy way to render italic text OR turn off any font-style present by choosing "normal."

Example 3: Changing Font Weight, Font Family and Color

.post .title {
    margin:0 0 10px 0;
    font-size:20px;
    font-family:'Trebuchet MS',arial,helvetica,sans-serif;
    font-weight:bold;
    color:#CC3300;
    line-height:normal;
}

Example 4: Changing Font Family, Font Style and Color

.post .title {
    margin:0 0 10px 0;
    font-size:20px;
    font-family:'Georgia',times,'Book Antiqua',serif;
    font-style:italic;
    color:#336600;
    line-height:normal;
}

This time, we switched to serif (scripty) fonts, which always look nice italicized. Again, the color can be abbreviated to #360.

NOTE: Also, make sure to check .post .title a:hover in main.css to change the color of the hover effect if you like. You can also experiment changing the background as well for an interesting effect.

Sticky Post

Here is the relevant portion of the stylesheet (main.css) that affects the styling of the sticky post indicator. We'll explain it line by line now.

.post .sticky {
    float:right;
    margin:0;
    font-size:10px;
    color:#3b649c;
    background:#e7ecf3 url(/community/graphics/users/1/sticky.gif) top right no-repeat;
    padding:0 28px 0 4px;
}
float:right;
The image or text moves to the right in the parent element.
margin:0;
The CSS margin properties define the space around elements. In this case, the margin is 0.
font-size:10px;
Font-size sets the size of a font and is expressed as pixels (px), ems or percentages. In this case, the font size is set to 10px.
color:#3b649c;
The color property sets the foreground color (usually the text color). Notice that this color cannot be abbreviated.
background:#e7ecf3 url(/community/graphics/users/1/sticky.gif) top right no-repeat;
The CSS background properties define the background effects of an element. This is actually shorthand background properties. Each of the properties can be expressed individually as well. For example, the long form of the above background properties would be:
.post .sticky {
    background-color:#e7ecf3;
    background-image: url(/community/graphics/users/1/sticky.gif);
    background-position: top right;
    background-repeat: no-repeat;
}
padding:0 28px 0 4px;
The padding properties define the space between the element border and the element content. Since we learned that both margin and padding order is top, right, bottom, left, we now know that the padding is 28px on the right and 4 px on the left. There is no padding on the top or bottom.

So what can I do?

We'll give you several examples from now on so that you can see exactly how each change in the stylesheet affects the overall design.

Example 1: Changing Font Size, Font Weight, Font Family and Background Color

.post .sticky {
    float:right;
    margin:0;
    font-size:10px;
    font-family:'Trebuchet MS',arial,helvetica,sans-serif;
    font-weight:bold;
    background:#DBDCD1 url(/community/graphics/users/1/sticky.gif) top right no-repeat;
    padding:0 28px 0 4px;
}

Example 2: Changing Font Size, Font Family, Font Style and Background Color

.post .sticky {
    float:right;
    margin:0;
    font-size:10px;
    font-family:'Georgia',arial,helvetica,sans-serif;
    font-style:italic;
    background:#FFC9AE url(/community/graphics/users/1/sticky.gif) top right no-repeat;
    padding:0 28px 0 4px;
}

Example 3: Changing Font Size, Font Family, Color and Background Color

.post .sticky {
    float:right;
    margin:0;
    font-size:10px;
    font-family:'Verdana',arial,helvetica,sans-serif;
    color:#666;
    background:#FFE1FF url(/community/graphics/users/1/sticky.gif) top right no-repeat;
    padding:0 28px 0 4px;
}

Example 4: Changing Font Size, Font Family, Color and Background Color

.post .sticky {
    float:right;
    margin:0;
    font-size:10px;
    font-family:'Impact',arial,helvetica,sans-serif;
    color:#669;
    background:#B5D6DD url(/community/graphics/users/1/sticky.gif) top right no-repeat;
    padding:0 28px 0 4px;
}

NOTE: In this case we didn't change the original sticky post image, but you can do it easily if you read Step One. :wink:

Post Date and Tags

If we take a look at main.css in most any of the default themes, we see that there is a part about the post date and tag properties:

.postdate, .post .tags {
    margin:0 0 2px 0;
    font-size:10px;
    line-height:normal;
    text-transform:uppercase;
}
And, here it is, deconstructed, line by line:
margin:0 0 2px 0;
The CSS margin properties define the space around elements. In this case margin is 0 0 2px 0. That means that bottom margin will be 2 pixels (first position is top, second right, third bottom and fourth left).
font-size:10px;
Font-size sets the size of a font and is expressed in pixels (px), ems or percentages. In this case font size is set to 10px.
line-height:normal;
The line-height property sets the distance between lines. Value "normal" sets a reasonable distance between lines. Line-height is useful to be changed if you have an enlarged font size, and can be loosely likened to "kerning" in print media.
text-transform:uppercase;
The text-transform property controls the letters in an element. The choices are "uppercase," "lowercase," "capitalize," and "none." This is a new text property for us. Uppercase means that all text, no matter how you type it, will be displayed in all capital letters, LIKE THIS. Conversely, choosing "lowercase" will make the text display in all lowercase letters, even if you typed them in uppercase. The poet e.e. cummings would have loved this feature of CSS!

So what can I do?

We'll give you several examples from now on so that you can see exactly how each change in the stylesheet affects the overall design.

Example 1: Changing the Font Family

.postdate, .post .tags { margin:0 0 2px 0; font-size:10px; font-family:'Verdana',arial,helvetica,sans-serif; line-height:normal; text-transform:uppercase; }

Example 2: Changing the Font Size, Font Family and turning off Text Transform effects

.postdate, .post .tags {
    margin:0 0 2px 0;
    font-size:12px;
    font-family:'Trebuchet MS',arial,helvetica,sans-serif;
    line-height:normal;
}

Notice that text-transform:uppercase is gone. Because it was present in the main stylesheet, it would be prudent to actually turn it off here. How do you do that? Like this:

    text-transform:none;

Example 3: Changing Font Size and Font Family

.postdate, .post .tags {
    margin:0 0 2px 0;
    font-size:20px;
    font-family:'Georgia',arial,helvetica,sans-serif;
    line-height:normal;
    text-transform:uppercase;
}

Note in the example above that the font size has been increased significantly, from 10px to 20px. It might be a good idea, therefore, to also adjust the line-height from "normal" to 140%, which approximates 1.5 linespacing. This gives the larger font some room to "breathe" and makes the text more legible and pleasing to the eye.

Example 4: Changing Font Size and Font Family

.postdate, .post .tags {
    margin:0 0 2px 0;
    font-size:10px;
    font-family:'Verdana',arial,helvetica,sans-serif;
    line-height:normal;
}

NOTE: We will not explain in this series how to modify .poster css code, since it is related only to group blogs where different people can post, but you can see in the main.css stylesheet of almost any of the default themes that there is nothing spectacular about changing it and nothing we didn't already cover in these two steps. :wink:. Also, you might want to take a look at .whisper and blockquote.bbquote, .post blockquote, since many people seem to like to modify those aspects of their blog's design as well.

Download Opera, the fastest and most secure browser
November 2009
S M T W T F S
October 2009December 2009
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30