Easy CSS Template
Wednesday, 13. August 2008, 08:36:06
While this code is perfectly all right, we've been working on an automated generator to allow people greater freedom when creating their blog themes as well as making it a lot easier to do. Using the generator you can concentrate solely on your theme and not worry about the codes.
A while back I created a very simple CSS template that allows even the most basic users to customise their pages in simple ways. You can find that post by following this link.
Today I'm updating that template to include some pretty funky effects that are becoming more and more popular. This updated template includes notes to help you make your own theme as well as updated code to add three different comment backgrounds, change the name of page elements and do some funky stuff to the menu.
If you're interested in trying this out but can't copy and paste it (phone users mostly) ask in the comments and I'll send you a copy. Specify if you want this or the basic one.
/*Where dimensions are given for images in the notes of this template, width is always given first followed by height*/
/*This line will define the banner of your page - set an image 920x170 pixels.*/
#top {background: url(http://) top center no-repeat;}
/*These two lines hide your page title and subtitle*/
#top h1 { display:none; }
#subtitle { display:none; }
/*This line defines the background image of your page - set an image and it will tile the page*/
body {background: url(http://) top left repeat;background-attachment: fixed;}
/*These lines will set up alternating comment backgrounds and a special one for you - try something a single colour or in light grayscale for ease of reading, 300x800 pixels is an ideal size for the longest comments*/
.comment1 {background:url(http://) repeat-x !important; }
.comment2 {background:url(http://) repeat-x !important; }
.ownercomment {background:url(http://) repeat-x !important; }
/*The following six lines allow you to rename the parts of your page - put each new name between the quotes*/
#menu_blog a {content: "";}
#menu_archive a {content: "";}
#menu_albums a {content: "";}
#menu_links a {content: "";}
#menu_friends a {content: "";}
#menu_about a {content: "";}
/*This line adds an icon to the currently selected menu option as well as the one hovered over with the mouse - it's the basis for the mini Furie head on my menus*/
#menu #selected, #menu a:hover {background:transparent url(http://my.opera.com/community/graphics/themes/121/menuselected.png) center 21px no-repeat !important; color:#fff;}Have fun with your creations guys.![]()









AOTEAROAnz # 13. August 2008, 08:51
Thanks Mik, Tasty post.
Moesring # 13. August 2008, 09:12
In any case, if it encourages more people to tinker with CSS and personalise their pages then it is definitely useful.
Furie # 13. August 2008, 09:12
Some people are even having problems with that. Had one guy complaining about mine not working and it turned out he was using it with a professional CSS that resized the elements I was changing.
Furie # 13. August 2008, 09:27
Dacotah # 13. August 2008, 10:34
Furie # 13. August 2008, 10:40
If you ever do change, start with the basic one in my other post Carol. It'll let you start from scratch and then you can build on it with the extra things here.
Furie # 13. August 2008, 10:50
As always I'll help anyone that needs help in the comments of this post. Remember to click "Use my custom style sheet with my current theme" when saving this.
Moesring # 13. August 2008, 10:56
Furie # 13. August 2008, 11:05
Dacotah # 13. August 2008, 12:09
Furie # 13. August 2008, 13:55
Cois # 13. August 2008, 15:50
qlue # 13. August 2008, 19:50
MizzMartinez # 13. August 2008, 20:12
Furie # 13. August 2008, 22:44
MizzMartinez # 13. August 2008, 22:46
AOTEAROAnz # 14. August 2008, 11:49
Ok..i'll head to the other CSS then :WALK::SHUFFLE::GRAZE::HOBBLE:
*Puts Dunce hat on*
Furie # 14. August 2008, 17:46
Moesring # 14. August 2008, 18:28
A good template can be an invaluable starting-point. It is how I learned CSS. When you consider that this is the sample I learned from (alongside a rudimentary CSS tutorial for reference), I am sure you will agree that Mik's templates are much nicer.
Same goes for you, Kerst. Give it a trial. You may find that it is not as daunting as it looks.
MizzMartinez # 14. August 2008, 20:07
Furie # 14. August 2008, 21:43
Moesring # 14. August 2008, 22:11
As I said, that was the sample that I learned from whilst I was personally trying to learn CSS. As I also said, it is nowhere near as easy to understand as the template above. The main reason for including it is as a comparison for illustrating just how simple the template is.
Not once did I dispute where it came from or who its author was.
[Edit:
When that CSS was downloaded, 29 August 2007, it was not your theme. I just rechecked PMs. When I asked about it, she specifically said that Sarah made it for her.
I know you made the later theme but this one was not yours.]
Furie # 14. August 2008, 23:16
Suntana # 15. August 2008, 03:17
Looks like I just might be able to do some REAL Damage now ... Uhhh, I mean, dream up and implement some Creations.
Question: Okay, I've seen some people use Apostrophes to enclose URLs insides Parenthesis. Andrew uses Quotation Marks because they're easier to see. And you use neither. So, this and any other Code with URLs works OK without Apostrophes or Quotation Marks around URLs?
I'll see what if anything I can conjure up during the weekend. I liked that I saw a Code for having the Body Background stay stationary ... Fixed, unlike the moving one that I have right now.
I'm still LOST as to What the Fffff ... Frigg Tags are. But, I'll ask about that later. I want to mess around with this first.
Suntana # 15. August 2008, 03:26
In that Alternating Comments Background Code ... in the "repeat-x" --- is the "x" supposed to be typed as is? Or is some number supposed to be substituted?
And the "ownercomment" would be ......... ME?
As in a particular "Special" Comment Box theme for when I make a Comment? Aww Shucks! I'm speechless, like the Lion in The Wizard of Oz.
FYI ... for some reason, the Body Background on your Blog keeps breaking up very badly. At least it is on MY computer. Then again, I have AOL Dial Up on a 7½ year old computer. But, the only thing I had ever seen break up that severely were 2 certain Opera Skins. :::Shrug:::
Furie # 15. August 2008, 09:47
Moesring # 15. August 2008, 09:54
That sums me up very well
If the template I learned from was one of yours, I daresay it would not have taken anywhere near as long to make sense of it.
[/Sycophant mode]
Can anyone answer the questions directed at Mik?
Regarding apostrophes surrounding URLs, you can use either " or ' depending on personal preference. You do not need to use either if you have NO spaces in the address. If there is a space, you MUST use " or '. If you don't, it simply won't understand the address.
"repeat-x" is supposed to be written as is.
I'll let him answer the other questions.
Furie # 15. August 2008, 09:59
Suntana # 15. August 2008, 13:56
Furie # 15. August 2008, 14:00
Suntana # 15. August 2008, 14:10
Furie # 15. August 2008, 14:14
Moesring # 15. August 2008, 14:21
I presume you also know that it caused by the span.m line (in cenobitedropcaps.css)?
Suntana # 15. August 2008, 14:29
Furie # 15. August 2008, 16:25
Yeah, I know Moe. But I can't fix it without breaking other things and can't tell which has happened on the phone.
Suntana # 16. August 2008, 03:34
Then as per your Code, I replaced the non-stationary Legal Pad Background I had before with a stationary, fixed Wall Paneling Background. It WORKED! Cool! No more Background moving with the Scrolling action.
Then as per your Code, I implemented that 3-way Alternating Comment Boxes idea. It WORKED! Awesome!
Then being in a full-blown CSS-afied mode ... CSS running through my veins now, or so I thought, I went for the Trifecta. I dove from the 10-meter platform into attempting that Icon in the Menu idea.
Verdict? Uhhh, Ummm, it's sorta working.
But, I'm gonna need your assistance tweaking it.
I can see the Top of Bugs Bunny's ears under the Selected Option and I can see the Top of his ears appear when hovering on the other Selection. So, that aspect of the idea is working. Now the question is: How do I increase the Menu Area vertically so as to be able to fully-display Bugs Bunny? Frankly, at first I thought Bugs Bunny was going to display to the LEFT of the Selections. I don't know. Maybe the problem is that my Bugs Bunny Icon is too Big. It's an Avatar. With ears fully-extended, the Bugs Bunny Icon is about the size of my Garfield Avatar, I guess.
Furie # 16. August 2008, 09:07
Suntana # 16. August 2008, 15:22
Nnnnggg, I don't know. I could have tried a 9x5 Rectangle. But, I think this is an Apples vs. Oranges Thing ... Windows Paint Pixels vs. Regular Pixels or something. Cuz I KNOW that last Ball was smaller than your Furie Icon and it still refused to snap into line.
Ehhh, No Biggie. I'll go and see what other CSS Tricks & Treats I might have overlooked in your template.
Wait a minute. In your Reply above, by "Vertical Menu," did you mean like YOUR Menu? Cuz what I meant by increasing the Menu area vertically was just increasing the Black area there in my same Horizontal Menu. You know ... sorta like what theoretically I would get IF the Font Size of the Menu was increased. Would THAT work? If a Bigger Font Size was assigned to my Horizontal Menu, would that allow my Bigger Menu Icons to fit to the Left? If so, what would be the Code for increasing the Font Size and possible BOLD Attribute of my Horizontal Menu?
Furie # 16. August 2008, 18:20
Suntana # 16. August 2008, 20:54
Den1z # 2. September 2008, 08:27
Furie # 2. September 2008, 08:37
Cois # 3. September 2008, 23:43
Suntana # 4. September 2008, 01:45
Hey, Furie, would you by some chance have some CSS Code for installing a Background on just my Welcome Stick Post? NOT any of the other Posts, just on the Welcome Sticky Post. I had installed my Background in my Welcome Sticky Post over the Weekend as per Code from another Opera Community Member. It seemed to be working great until yesterday when Attila went to add a Comment in my Sticky Post and it made my Background disappear, leaving WHITE Text on a WHITE Background.
.post.stickypost .content {background:transparent url("http://files.myopera.com/Suntana/blog/Black_Blue Sticky BGF.png") repeat top left;float:left;}
Do you see anything wrong with the Code? Is there anything in there that would cause my Background to disappear when someone adds a Comment to the Sticky Post? Or do you have a totally different Code that would do the trick ... display the Background and NOT have it disppear when a Comment is added to the Sticky Post?
If you don't have the Code handy or are busy, then don't worry about.
yoze # 14. December 2008, 12:48
Furie # 26. April 2009, 20:11
Iguy # 9. May 2009, 04:37
How can i use the code css. What i have 2 do first?
Can i create the blog design with my mobile only
Please tell me