irinafan ([info]irinafan) wrote in [info]cartonage,
@ 2006-07-12 15:21:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Entry tags:css guides, style: flexible squares

CSS Guide » Flexible Squares Part I (A - D)
This took ages, so I hope that it is useful for at least a few people. Originally I also wanted to do this for Smooth Sailing, but now I'm not so sure anymore. *frowns* Part II and III will be up in a second.

Flexible Squares CSS Guide - Part I (A - D)

PART II | PART III


This is a guide on all the classes you can find in the original css file for Flexible Squares and a few additional useful ones.

Blame me for all errors, mistakes and missing classes and please comment! Comment if you think something doesn't work the way it should, if image links are wrong, if you stumble across a css class you can't find in here and so on. Of course comments just to say that this helps would be greatly appreciated as well because this has taken ages to complete. =)

Notes

1.) To customize the Flexible Squares stylesheet you first need said stylesheet, logically :P
- Download the original stylesheet: CLICK.
- Download a slightly edited version that has the css classes sorted a bit clearer: CLICK.November.

2.) "Install" the css file:
- Upload your edited css file to your own server or www.ripway.com
- Go here and choose Stylesystem 2, then here and choose "Flexible Squares" from the drop down menu.
- Go here, click on "Custom CSS", set "Use layout's stylesheet(s) when including custom external stylesheet" to "no", "Use external stylesheets" to "yes" and add the url to your stylesheet in the blank box after "Custom external stylesheet URL".

3.) In the table below, the element in question is always marked in orange in the accompanying picture

4.) Classes in orange font only affect the comments pages and are therefore not relevant if you're customizing a layout for a free account.

5.) The * after a definition mean that it is not part of the original css file but that you can use it for further customization.

6.) What do the signs # and . mean?

- # indicates that you're dealing with an id. An id is only used once in every page, it is something unique. For example, #header only exists once and therefore is defined through an id.
- . marks a class. A class is a css definition that is used multiple times on a page, for example .entry, because it applies to every entry and that could be any number between 1 and 20.

---> Basically, if it's a class or an id doesn't matter to you, you just need to pay attention to use the right sign.



INDEX A - D
a, a:link, a:visited
a:hover
blockquote
body
.box
code
.commentbox
.commentboxpartial
.commentinfo
.commentlinks*
.commentreply
.comments
#content
.clear
.clearfoot
.currents
.currents strong*
.currentmood
.currentmusic
.currentlocation
.date
.datesubject
.datesubjectcomment
.datesubjectcomment a:link, .datesubjectcomment a:visited
.datesubjectcomment a:hover
dd*
.defaultuserpic
.defaultuserpic img*
div#header a, div#header a:link,
div#header a:visited, div#footer a, div#footer a:link, div#footer a:visited

div#header a:hover, div#footer a:hover
div#sidebar a, div#sidebar a:link, div#sidebar a:visited
div#sidebar a:hover
div.comments a, div.comments a:link, div.comments a:visited
div.comments a:hover
dl*
dt*


a
Defines: The look of a link
Location: Everywhere
a:hover
Defines: The look of a link when the mouse hovers over it
Location: Everywhere
blockquote
Defines: The look of a quote
Location: In your entry text

This is a much underrated class, you can do loads with it! If you want to cite something, just put <blockquote>Text of your quote</blockquote> into your entry text, and if it's defined it can look quite interesting! The code I used here was this:

blockquote {
font-family:"trebuchet ms";
background-color:#ecf0f6;
padding:5px;
border:1px dashed;
color:#919bad;
}
body
Defines: The basic look of your whole page, background, fonts....

I just added a background color, a background image and increased the space between the top of the window and the beginning of the actual layout to 100px.

body {
background-color: #e8f6f7;
background-image:url(http://private.lassehallstrom.com/layouts/tran/bg.jpg);
background-repeat:repeat-x;
text-align: right;
color: #000000;
font-family: "Verdana", sans-serif;
font-size: 11px;
margin: 100px 0 120px 0;
}
.box
Defines: The look of the whole part of the page that contains the comments
Location: On the comments pages, logically

According to [info]afuna sometimes the css code contains clearing, like:

.box { clear:left }


Watch out for this and do not touch it!
code
Defines: The look of the html or css code you put between <*code> and </code>
Location: In your entry text

This is usually used when you want to present a html or css code to your friends list, and wouldn't it be nice if it turns up different from the entry text?

I used this here:

code { background-color:
#e8f6f7;
display:block;
color: #000000;
color:#006e76;
padding:5px;
border:1px dashed;
}
.commentbox
Defines: The basic look of each separate comment (you can add borders, background colors, margins,paddings ....)
Location: On the comments pages
.commentboxpartial
Defines:The look of that little thingie that appears with the subject and the poster of the comment but doesn't display the full comment, instead you have to click on it (yes, I'm having a hard time explaining this :P)
Location: On the comments pages
.commentinfo
Defines:I have no clue what this is, if anyone has, please leave a comment! =)
Location: On the comments pages, I think
commentlinks*
Defines: The look of the links in the comment line at the bottom of the comments
Location: Comment pages

ETA: woops, this is not a public class, it was additionally added in the layout of [info]s2flexisquares. Aplogies if you were trying to customize this and it didn't work.
.commentreply
Defines:The look of the actual comment text. You can change font size, font color and so on and it won't affect the subject of the comment or the links at the bottom.
Location: On the comments pages
.comments
Defines: The look of the line/bar with the comment, mem, read links.

Attention! This does not define the color of those links, they are defined through div.comments a

Location: On the bottom of each entry
#content
Defines: The very basic look of your layout. The width, the background color, where on the page the layout is located (left, right, middle)...
Location: It's around everything, if you change your journal width in the customization wizard, this is the element which's size you change.

This is also where you would define a background image for your whole layout. For example, in this layout there's this background image added to the content, the code looks like this:

#content {
width: 555px;
background-image:url(http://h1.ripway.com/mosquetera/springtime/bg.jpg);
margin-left: auto; margin-right: auto;
margin-top:0px;
}
.clear
Defines: This is an empty element that is used to create distance between other elements. It also ends floats and is very important if you don't want your layout to get messed up, so better don't touch this.
Location: Entries and Sidebar mostly
.clearfoot
Defines: See above. If you delete this, you will have funny experiences with a missing content background...just don't touch it ;)
Location: At the bottom of your layout
.currents
Defines:This affects the current mood, current music and current location under your entry text. You can add a background color, change the text, make a border above them so they are separated from the entry text....
Location: At the bottom of your entry
.currents strong*
Defines: This is a little special class of mine. I HATE that Current Mood, Current Music and so on are bold by default, so I like to change them back to normal this way:

.currents strong{
font-weight:normal;
}
.currentmood, .currentmusic, .currentlocation
Defines: These are the separate classes for the currents, so if you want to change the look of one of them but don't want it to affect the other two, you can do it here.

E.g., in the third example on the image, I've hidden the current location like this:

.currentlocation {
display:none;
}
.date
Defines: The color, font, background color/image of the date.
Location: At the top of each entry, does NOT affect dates in comments

Attention: On the page where you comment (the one with the box to enter your comment without the other comments that have already been made) there isn't a .date or .subject, only .datesubject. (Thanks to [info]afuna)
.datesubject
Defines: The color, font, background color/image for date AND subject. If you want them to look different from each other, use .date and .subject.

Location: At the top of each entry, does NOT affect dates and subjects in comments

An example of how this can be used together with .date and subject: In this layout I defined a background image for .datesubject (this) and then defined different font sizes and colors for the date with .date and for the subject with .subject.
.datesubjectcomment
Defines: The color, font, background color/image for date AND subject for each comment.
Location: Comments pages
.datesubjectcomment a:link, .datesubjectcomment a:visited, .datesubjectcomment a:hover
Defines: The color of the username displayed on top of each entry and the color of it on mouse hover.
Location: Comments pages
dd*
Defines: The look of the listed subjects and dates
Location: On the month pages in the archive
.defaultuserpic
Defines: The look of the box that contains your default userpic
Location: At the top of the sidebar

Attention! If you add a border to this it won't give you a border around the actual icon, but around the box that contains it. Use .defaultuserpic img to add borders to the image. (see below)

I often hide this whole thing with:

.defaultuserpic {
display:none;
}
.defaultuserpic img*
Defines: The look of the actual default userpic (add borders, padding...)
Location: At the top of the sidebar


In this example, I added a background color, then 5px padding to make that background color visible, and a white border to the image:

.defaultuserpic img{
padding:5px;
background-color:#919bad;
border:2px solid #ffffff;
}
div#header a, div#header a:link, div#header a:visited, div#footer a, div#footer a:link, div#footer a:visited
Defines: The look of the links in header and footer
Location: Everywhere where header and footer appear

Of course you can separate them and define different colors for the links in header and footer. =)
div#header a:hover, div#footer a:hover
Defines: The look of the links in header and footer when the mouse hovers over them
Location: Everywhere where header and footer appear
div#sidebar a, div#sidebar a:link, div#sidebar a:visited
Defines: The look of the links in the sidebar when the mouse hovers over them (affects all links, in the user link box and the little calendar)
Location: The sidebar
div#sidebar a:hover
Defines: The look of the links in the sidebar (affects all links, in the user link box and the little calendar)
Location: The sidebar
div.comments a, div.comments a:link, div.comments a:visited
Defines: The look of the links in the comments line ("Read", "comment" and so on)
Location: At the bottom of every entry
div.comments a:hover
Defines: The look of the links in the comments line when the mouse hovers over them ("Read", "comment" and so on)
Location: At the bottom of every entry
dl*
Defines: The look of everything that is written on the month pages in the archive. You could change fonts, colors and so on here. If you want to change only the look of the day date (24th, 25th and so on), use dt.
Location: Month pages in the archive
dt*
Defines: The look of the day date (change size here for example)
Location: Month pages in the archive



Page 1 of 6
<<[1] [2] [3] [4] [5] [6] >>

(Post a new comment)


[info]hellokimberly
2006-07-12 01:57 pm UTC (link)
Oh wow!

Thank you!! This is absolutely awesome. I'm going to have to play around today. =)

If you do make one for Smooth Sailing that would be ace. No pressure just letting you know. I love Flexible Squares and Smooth Sailing layouts. XD

(Reply to this)


[info]socitygirl
2006-07-12 02:30 pm UTC (link)
Gorgeous. I was waiting for something like this to come along. You are a goddess, to put it lightly.

(Reply to this)


[info]gatsby
2006-07-12 08:26 pm UTC (link)
Wow. I'm impressed. Thank you.

(Reply to this)


[info]carriep63
2006-07-12 11:49 pm UTC (link)
Amazing. I'll post this in [info]everything_lj if you don't mind.

(Reply to this) (Thread)


[info]irinafan
2006-07-13 10:56 am UTC (link)
No don't worry, go ahead! I made this guide to help people, so the more people have a chance to read it, the better! =)

(And maaaybe it will also reduce the "how do I do this, how do I do that" questions a bit :P )

(Reply to this) (Parent)


[info]poulpette
2006-07-13 01:16 am UTC (link)
.box is also used in the reply page (which is also not accessible to basic accounts)

That said I must say I'm really impressed and awed by all this :P that's a wonderful giftyou've made to the flexible square users :)

(Reply to this)


[info]kayim
2006-07-13 06:31 am UTC (link)
This is probably the most useful post I have ever found on LJ! A friend set up my new layout for me and I've been trying to tweak it, but it's hard!

Thanks so much!

(Reply to this)


[info]rosalen_knight
2006-07-13 01:46 pm UTC (link)
I don't know what to say other then THANK YOU!... I've been waiting for something like this...

(Reply to this)


[info]beckyo
2006-07-13 02:24 pm UTC (link)
This is beyond fabulous!!!! Thank you so much!!!!

(Reply to this)


[info]dreamon_dreamer
2006-07-13 05:32 pm UTC (link)
wow. just wow. +mem.

(Reply to this)


[info]madam_dracthor
2006-07-13 11:03 pm UTC (link)
That's very helpful. Added to my memories. Thank you!

(Reply to this)


[info]plushie_stash
2006-07-14 07:20 am UTC (link)
There are no words. Meming and thank you~

(Reply to this)


[info]garinungkadol
2006-07-14 10:38 am UTC (link)
A most excellent guide. A must read for anyone wanting to use Flexible Squares.

(Reply to this)


[info]notacrnflkgirl
2006-07-14 07:11 pm UTC (link)
I wasn't aware that blockquote could be customized! Thanks so much for the enlightenment. :)

(Reply to this)


[info]ihavedreamed_
2006-07-14 08:25 pm UTC (link)
AMAZING.

(Reply to this)


[info]c_skank
2006-07-16 01:31 am UTC (link)
THANK YOU!

(Reply to this)


[info]babyelefant
2006-07-16 03:02 pm UTC (link)
Hättest du was dagegen, wenn ich dieses Tutorial zu den memories bei [info]gewusst_wie (deutsche layout hilfe community) hinzufüge?

(Reply to this) (Thread)


[info]irinafan
2006-07-16 04:34 pm UTC (link)
nö, mach ruhig ^^

*Maulwurf knuddl*

(Reply to this) (Parent)(Thread)

(no subject) - [info]babyelefant, 2006-07-16 04:37 pm UTC

[info]stellar_13
2006-07-18 02:36 am UTC (link)
meming! thx this helps

(Reply to this)


[info]vivier
2006-07-18 06:36 am UTC (link)
OMG. This was absolutely amazing of you to do this. I generally sort of customize by trial and error, so I really can't even begin to tell you how helpful this was. Thank you so much!

(Reply to this)


[info]_excentric_
2006-07-20 01:13 pm UTC (link)
OMG YOU DON'T KNOW HOW HAPPY THIS ENTRY MADE ME!!!
Thank you so much for this! <3

(Reply to this)


[info]exquisite_angel
2006-07-23 11:33 am UTC (link)
This is....stunning.
I love you already ♥

(Reply to this)


[info]miriam
2006-07-24 09:12 am UTC (link)
Thank you so, so much!
Now I've already learned more than I would ever have expected!

I have a question, though - but let me know if it's not the right place to ask: how can I change the text of "Leave a comment" in the comment box? I have searched all better communities, but I haven't found the trick for the CSS yet. Any suggestions how I could do it or where I could go to look? Thanks already in advance! :)

(Reply to this) (Thread)


[info]irinafan
2006-07-24 02:13 pm UTC (link)
oh, then another thing to learn: You cannot change any text through css. You can sometimes hide it, but you can never change it.

The text of "Leave a comment" can be changed in the customization wizard under "text" I believe. Just take a look and you will find it (hopefully).

If you don't, just comment again and I'll give you more detailed "instructions". ;D

(Reply to this) (Parent)(Thread)

(no subject) - [info]ohh_aphrodite, 2008-03-19 10:41 pm UTC

[info]gloryforever
2006-07-26 11:00 pm UTC (link)
Hi. I wanted to say I've found your guide extremely useful in getting the hang of CSS. I have a question, though, and I was hoping you could answer it for me. I'm working on a layout for [info]chikicon and I'd like to have a dotter or dashed border instead of a solid border around the content area/header/footer/calendar. I found some codes in the memories at ELJ, but all they seem to do is make my navigation strip black and not change the look of the borders... do you have any idea what I'm doing wrong? Thank you very much for your time!

(Reply to this) (Thread)


[info]irinafan
2006-07-26 11:19 pm UTC (link)
All you need to do is change a tiny bit of code wherever you want a dashed border.

For example, this here is your maincontent css thingie:



#maincontent {
margin-top: 15px;
font-family: "Verdana", sans-serif;
font-size: 11px;
background-color: #ffffff;
color: #000000;
border-style: solid;
border-color: #abcbae;
border-width: 1px;
margin-right: 180px;
text-align: left;
}


see the bolded? Just change it to:


border-style: dashed;


and you have a dashed border around your maincontent. =)

(Reply to this) (Parent)(Thread)

(no subject) - [info]gloryforever, 2006-07-27 12:52 am UTC

[info]yura_slash
2006-07-29 07:31 am UTC (link)
this is AWESOME! i used the stylesheet and all your element definitions really helped. um... there was only one problem. i couldn't figure out how to change the main content color, though. it's still that blue- even though i've changed all the color codes in the stylesheet! if you could help me figure it out, i'd love you even more ^_^

oh- it's my http://yura-slash.livejournal.com website

(Reply to this) (Thread)


[info]irinafan
2006-07-29 10:12 am UTC (link)
Ohh, you just made a tiny mistake. This here is the code that applies to the blue part:


#content
{
width: 75%;
background-color: #003300
border-width: 1px;
border-style: solid;
border-color: #999999;
padding: 15px;
}


see the bolded part? you just forgot to set a colon after the color, and without it it doesn't get recognized. It should look like this instead:

background-color: #003300;

(Reply to this) (Parent)(Thread)

(no subject) - [info]yura_slash, 2006-07-29 05:04 pm UTC

[info]carriep63
2006-08-01 06:12 pm UTC (link)
I am doing this for the Smooth Sailing community (unless you've already started...?) and I would love to use your method if you don't mind. It's very easy to understand.

(Reply to this) (Thread)


[info]irinafan
2006-08-01 06:33 pm UTC (link)
Oh thank God. I've been putting off doing it for Smooth Sailing because it takes so awfully much time, and at the end I just wanted to get it over with. :P

I'd be awesome if you could do it :D

And of course you can use this method! =)

(Reply to this) (Parent)


[info]ex_artbox613
2006-08-01 08:32 pm UTC (link)
Wow - this is fantastic! Maybe I'll finally get off my rear and make a layout ;-)

Thank you!

(Reply to this)


Page 1 of 6
<<[1] [2] [3] [4] [5] [6] >>

Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…