Redesigning My.Opera space, blog and photo gallery in X easy steps [Part 1]
By Ivan MinicSerbianFighter. Tuesday, November 15, 2005 5:45:23 AM
So, Explaining line by line: margin:0 - The CSS margin properties define the space around elements. In this case margin is 0. You can see examples of margin usage here and get detailed info on CSS margin here width:100% - The width property sets the width of an element. In this case width of title is 100%, and that means that it will be possible for users to write their title as long as there is space in header. You can see examples of width usage here, and learn more on CSS dimensions here. overflow:hidden - The overflow property sets what happens if the content of an element overflow 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. You can see examples of overflow usage here. font-size:30px - Font-size sets the size of a font. In this case font size is set in pixels, and to be exact 30pixels. More about fonts and font size here. 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 In this case family contains: trebuchet ms,arial,helvetica,sans-serif and no1 priority is trebuchet ms. More on font-family usage here. line-height:normal - The line-height property sets the distance between lines. Value normal sets a reasonable distance between lines. More about line-height here. padding-top:22px - The padding-top property sets the top padding (space) of an element. In this case it is set to 10 pixels. More about padding-top here. So what can I do? I will from now on make 4 examples for you and at the end you will be able to see how each of them looks: Example 1: : Elements that are added are color and font-style#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; }
Example 2:#top h1 { margin:top; width:100%; overflow:hidden; font-size:36px; font-family:'Impact',arial,helvetica,sans-serif; font-style: bold; color:#808080; line-height:normal; padding-top:22px; }
Example 3:#top h1 { margin:top; width:100%; overflow:hidden; font-size:40px; font-family:'GothicE',arial,helvetica,sans-serif; font-style: italic; line-height:normal; padding-top:22px; }
Example 4:#top h1 { margin:top; width:100%; overflow:hidden; font-size:32px; font-family:'Comic Sans MS',arial,helvetica,sans-serif; line-height:normal; color:#FFFF00; padding-top:22px; }
Subtitle text If we take a look into main.css of default theme we will spot that there is a part about subtitle. I'm copying it and explaining it:#top h1 { margin:top; width:100%; overflow:hidden; font-size:36px; font-family:'Georgia',arial,helvetica,sans-serif; line-height:normal; padding-top:22px; }
So, Explaining line by line: margin:0 - The CSS margin properties define the space around elements. In this case margin is 0. You can see examples of margin usage here and get detailed info on CSS margin here font-size:12px - Font-size sets the size of a font. In this case font size is set in pixels, and to be exact 12pixels. More about fonts and font size here. width:100% - The width property sets the width of an element. In this case width of title is 100%, and that means that it will be possible for users to write their title as long as there is space in header. You can see examples of width usage here, and learn more on CSS dimensions here. overflow:hidden - The overflow property sets what happens if the content of an element overflow 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. You can see examples of overflow usage here. So what can I do? I will from now on make 4 examples for you and at the end you will be able to see how each of them looks: Example 1: :#subtitle { margin:0; font-size:12px; width:100%; overflow:hidden; }
Example 2:#subtitle { margin:top; width:100%; overflow:hidden; font-size:10px; font-family:'Verdana',arial,helvetica,sans-serif; font-style: bold; color:#C0C0C0; }
Example 3:#subtitle { margin:top; width:100%; overflow:hidden; font-size:20px; font-family:'GothicI',arial,helvetica,sans-serif; font-style: italic; }
Example 4:#subtitle { margin:top; width:100%; overflow:hidden; font-size:20px; font-family:'Comic Sans MS',arial,helvetica,sans-serif; color:#FFFFFF; }
Header image and menu background If we take a look into main.css of default theme we will spot that there is a part about these 2 rather simple elements I'm copying it and explaining it:#subtitle { margin:top; width:100%; overflow:hidden; font-size:14px; font-family:'Georgia',arial,helvetica,sans-serif; color:#CCCCCC }
So, Explaining line by line: height:116px; - The height property sets the height of an element.. In this case height is set to be 116 pixels. More on height property. padding-left:15px; - The padding-left property sets the left padding (space) of an element. In this case it has been set to 15 pixels. More on padding-left here. background:#2f569b url(/community/graphics/users/1/top.gif) top left repeat-x; -#top2 { height:116px; padding-left:15px; background:#2f569b url(/community/graphics/users/1/top.gif) top left repeat-x; border-bottom:1px solid #fff; } #menu { clear:both; background:#e9e9e9 url(/community/graphics/users/1/menu.gif); }
- #2f569b - Color. In this case this one
- url(/community/graphics/users/1/top.gif) - Location of header image.
- top - Sets how far the top edge of an element is above/below the top edge of the parent element
- left - Sets how far the left edge of an element is to the right/left of the left edge of the parent element
- repeat-x - The background image will be repeated horizontally
| example1.png | example2.png | example3.png | example4.png |
Example 1: :
Example 2:#top2 { height:116px; padding-left:15px; background:#000000 url(http://my.opera.com/SerbianFighter/homes/files/example1.png) top left repeat-x; border-bottom:1px solid #fff; } #menu { clear:both; background:#e9e9e9 url(/community/graphics/users/1/menu.gif); }
Example 3:#top2 { height:116px; padding-left:15px; background:#2f569b url(http://my.opera.com/SerbianFighter/homes/files/example2.png) top left repeat-x; border-bottom:1px solid #fff; } #menu { clear:both; background:#000000 url(/community/graphics/users/1/menu.gif); }
Example 4:#top2 { height:116px; padding-left:15px; background:#FF9900 url(http://my.opera.com/SerbianFighter/homes/files/example3.png) top left repeat-x; border-bottom:1px solid #fff; } #menu { clear:both; background:#e9e9e9 url(/community/graphics/users/1/menu.gif); }
How examples look? Example 1:#top2 { height:116px; padding-left:15px; background:#AFC5DA url(http://my.opera.com/SerbianFighter/homes/files/example4.png) top left repeat-x; border-bottom:1px solid #fff; } #menu { clear:both; background:#e9e9e9 url(/community/graphics/users/1/menu.gif); }
/SerbianFighter/homes/blog/example1look.png
Example 2:
/SerbianFighter/homes/blog/example2look.png
Example 3:
/SerbianFighter/homes/blog/example3look.png
Example 4:
/SerbianFighter/homes/blog/example4look.png
| example1-part1.txt | example2-part1.txt | example3-part1.txt | example4-part1.txt |














Words # Tuesday, November 15, 2005 7:46:55 AM
Mekkinz # Thursday, December 1, 2005 1:50:00 PM
David Blangstrupdavidcrickett # Saturday, December 3, 2005 2:16:29 PM
lulando # Tuesday, December 6, 2005 8:12:01 PM
Peace be with you and thank you very much for your fine work!
Eric Ruckerbhtooefr # Monday, December 12, 2005 4:22:54 PM
Can you take a look at my blog? There's a blue line between the Opera Community bar and the blog title bar. CSS at: http://my.opera.com/bhtooefr/homes/user.css
I'm starting from the DEFAULT theme.
Ivan MinicSerbianFighter # Monday, December 12, 2005 4:27:20 PM
Look at this element:
#top { font-size:11px; max-width:872px; min-width:739px; margin:0 -10px; text-align:left; border-top:1px solid [color=red]#4987c7[/color]; color:#fff; }Change #4987C7 to some other
Eric Ruckerbhtooefr # Monday, December 12, 2005 4:50:00 PM
neonlinux # Friday, January 20, 2006 2:59:17 AM
I give up.... I must be dense or something
I tried to modify the header image on the blue flying saucer
web page layout and my butchering sucks big time...
What I was attempting to do was switch the blue flying saucer
for one or two of your wallpaper images
the one with the island and a gif of my chinese name.
Jim
Whell... at least it now looks much better than before....
but whether it is suitable or not I will leave it alone
before it reverts back to the garbage can look....
Ivan MinicSerbianFighter # Friday, January 20, 2006 3:15:42 AM
starcatcher # Monday, February 13, 2006 9:45:35 AM
Ivan MinicSerbianFighter # Monday, February 13, 2006 11:54:22 AM
Phạm Lâmphamlam # Friday, March 24, 2006 2:16:44 AM
kotzimartinkarger # Tuesday, April 11, 2006 12:17:30 PM
Ivan MinicSerbianFighter # Tuesday, April 11, 2006 12:33:44 PM
walterbugscout # Thursday, April 13, 2006 5:05:54 PM
this tutorial makes it very easy to change the blog.
my only problem is, that the file-upload resizes my header-logo to max 500 px width, so i have to load it from an other server.
thanks
Ivan MinicSerbianFighter # Thursday, April 13, 2006 5:21:08 PM
walterbugscout # Friday, April 14, 2006 12:14:15 AM
if i upload the images to /blog they will be resized
in /files they stay as they are.
purplestreets # Wednesday, May 3, 2006 7:38:36 PM
this is my site: http://my.opera.com/purplestreets/blog/
this is my picture: http://my.opera.com/purplestreets/homes/files/exampleKopie.png
this is what i put into the "custom style sheet box:
top2 {
height:116px;
padding-left:15px;
background:#000000 url(http://my.opera.com/purplestreets/homes/files/exampleKopie.png) top left repeat-x;
border-bottom:1px solid #fff;
}
Ivan MinicSerbianFighter # Wednesday, May 3, 2006 7:44:43 PM
CarnageCarnage360 # Saturday, June 28, 2008 11:05:17 AM
I choose the default web page layout
then go custom style, to open the page for the css
then put in some code. I tried the code on this page, copy and paste
then save that so it runs the current page AND the custom css, still no change
but when i run it with only the custom css well then eveything goes away and just the text in a pretty bad format appears.
how do i get the code and the default page to run, I followed the instructions, i think
Mirasmietnik # Thursday, July 24, 2008 1:11:14 PM
Plus this link doesn't work(?):
http://my.opera.com/community/css/users/1/main.css
so I'm not able to make any changes to it.