Sunday, 23. July 2006, 22:02:40
code, css, stylesheet, five-step-series
If we take a look at the main.css stylesheet found in most any of the default themes, we will notice a part called Title. See below for a walkthrough of each element and what it does.
#top h1 {
margin:0;
width:100%;
overflow:hidden;
font-size:30px;
font-family:'trebuchet ms',arial,helvetica,sans-serif;
line-height:normal;
padding-top:22px;
}
Here's Ivan's line by line walkthrough:
- margin:0;
- The CSS margin properties define the space around elements. In this case, the margin is 0.
- width:100%;
- The width property sets the width of an element. In this case, the width of the title area is 100%, and that means that it will be possible for users to write their title as long as there is space in the header. In other words, as wide as the header is, is as wide (100%) as the area is for the title.
- overflow:hidden;
-
- The overflow property sets what happens if the content of an element overflows its area. Hidden means that the content is clipped, but the browser does not display a scroll-bar to see the rest of the content.
- font-size:30px;
- Font-size sets the size of a font. It is expressed in pixels (px), ems or percentages of the default. In this case, font size is set in pixels.
- font-family:'trebuchet ms',arial,helvetica,sans-serif;
- Font-family is a prioritized list of font family names and/or generic family names for an element. It's a good idea to offer several common fonts available on the Mac and Windows PC, and always declare a generic (serif, sans-serif, monospace, etc.) font family. When declaring fonts that have more than one word in their name (e.g., Trebuchet MS or Times New Roman), enclose the font name in single or double quotes. In this case, the font-family contains: Trebuchet MS, Arial, Helvetica,and Sans-Serif. The browser will look on the user's machine to see if he or she has those fonts, in the order listed. If it cannot find any of the fonts, it will use an approximation.
- line-height:normal;
- The line-height property sets the distance between lines. Value normal sets a reasonable distance between lines.
- padding-top:22px;
- The padding-top property sets the top padding (space) of an element. In this case it is set to 10 pixels.
Sunday, 23. July 2006, 21:07:25
theme4, css, stylesheet, code

Discussion
This theme has an 852x152 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 also has a drop shadow tiled image flanking the wrapper area. These can be deleted if desired, with no adverse effect on the overall design or the template's functionality.
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
Sunday, 21. May 2006, 11:40:28
body, code, css
Notes on BODY Elements
- background:
- You can change the background color and image (see tutorial, supra). Be sure you choose a background color that coordinates with the background image chosen.
- font-family:
- This controls what fonts are used; use sans-serif for legibility; reserve serif fonts for headings.
- font-size:
- Keep this at 12px or above for legibility. Browsers like Opera can resize and zoom fonts; Internet Explorer can do so, but to a lesser extent.
- color:
- Be sure to use hex codes when declaring color values; not all browsers recognize named colors (e.g., white,black,teal,red, etc.).
body {
background:#292929 url(/community/graphics/users/8/bg.gif);
margin:0;
padding:0;
font-family:'lucida grande','lucida sans unicode','bitstream vera sans', 'trebuchet ms',arial,sans-serif;
font-size:12px;
text-align:center;
color:#222;
}
Saturday, 29. April 2006, 15:03:46
faqs
Visual Cues
The stylesheet used for the example in these articles is the green and black vinyl record album design courtesy of Fred. Using this same stylesheet are the gold headphones and speaker theme and Fred's muted blue tabbed theme. But the stylesheet elements discussed here are present in all of the Opera Community default themes. To help you navigate your away around, we have given visual cues to the examples.

The various titles will have graphic icons that represent different aspects of these tutorials.
Information
This is the general class of tutorial you'll find here.
FAQs
Some posts may have their own FAQs. They'll be easy to spot because they'll use the above icon.
Documents
This is used for posts that contain snippets of code for you to use or documents for you to download.
This is used for posts that talk about the graphical aspects of the stylesheet or give informaton about headers/banners, or point to downloadable headers/banners.
Stylesheets and Code Snippets
Examples of the stylesheet will be enclosed in a bordered box with a light gray background. Inside the box, your attention will be called to various elements the topic of the discussion. We will truly dissect the stylesheet and help you to understand how the various parts work together.
Items we want to draw your attention to inside a sample stylesheet will be red, bolded and in Courier New font
Code snippets that are ready for you to cut and paste directly into your own blog will be shown as monospaced blue text inside a blue-bordered box. These will generally be provided with various banners and other graphic elements that require special stylesheet tweaking in order to work properly.
Tags
This site uses tags to organize posts into categories. The easiest way to find information on a certain topic is to go to the Archive Page and find the appropriate tag. Click on it, and you'll be given a list of all posts which use that tag. Tags used here include:
 |
Ivan's Five Steps to Modifying Your Opera Blog, from his popular Pimp My Blog series. |
 |
A code snippet for you to use on your own blog. |
 |
A header graphic compatible with a dark theme. |
 |
A header graphic compatible with a light theme. |
 |
There are 13 icons, one for each default Opera theme. These icons are used when discussing a particular theme or themes. You'll find these tags in the photo albums, as some header graphics are compatible with only one or several (but not all) default Opera themes. |
 |
This icon is used when discussing information pertaining to all the default Opera themes. |
Graphic banners, headers and other custom elements that we create for your use are housed in the photo albums, as well as being introduced and discussed here on this blog or in the forum.