Join for FREE | Take the Tour Lost Password?
Shop deviantART for the
holidays and save BIG!
Click here! :holly:
[x]

deviantART

:blowkiss:
 

Basic codes for CSS journal by =ENwings:iconENwings:



Basic codes for CSS journal

Ok I don’t have any examples (except for my journal) but if you fallow what I say it’s really easy!!

Ok First,
Copy and past this into the space in your journal labeled "add CSS"! I will break it up into sections and help you fill it out!

.journalbox {
border-color: #------;
border-style:------;
background-color: #------;
color: #------;
font-family: -----;
font-size:--px;
text-align: ----;
}
.journaltop {
background-image:url(http://---------------------);
background-position:----------;
background-repeat: -----------;
color:#------;
font-family: ------;
font-size:--px;
text-align: ------;
padding-top: ------px;
}
.journaltop h2 {
background-color: #------; or
color:#------;
font-family: ------;
font-size:--px;
text-align: ------;
}
.journalbox .list {
background-color: #------;
color: #------;
font-family: ------;
font-size:--px;
text-align: ------;
}
.journaltext a:link {
color:#------;
font-family: ------;
font-size:--px;
}
.journaltext a:link {
color:#------;
font-family: ------;
font-size:--px;
}
.journaltext a:visited {
color: #------;
font-family: ------;
font-size:--px;
}
.journaltext a:active {
color: #------;
font-family: ------;
font-size:--px;
}
.journaltext a:hover {
color: #------;
font-family: ------;
font-size:--px;
}

.................................................
Notes:
American spelling only
Color= text color
Font-family= font style
Font-size= font size
Text-align= center, align left/right
You can choose whatever colors fonts you want.

……………………………………………..

Lets start with (Journal box) the section witch pretty much controls the entire journal:

.journalbox {
border-color: #------;
border-style:------;
background-color: #------;
color: #------;
font-family: -----;
font-size:--px;
text-align: ----;
}

Ok how you fill all that in. (remember in yours there should be no spaces)

border-color: #------;
This is the border of the journal.
Here we will use a hex code (color code) such as #000000 = the color code for black. You can find all the colors of the rainbow here http://www.december.com/html/spec/color0.html. You will use these color codes in every place that requires color. Example with black:
border-color: #000000;

border-style:------;
This is the style of the border. (This line is optional and can be left out.)
You can fill in the blank area with one of the following:

solid
double
groove
dashed
inset
outset
ridge
hidden

Example using solid:
border-style: solid;

background-color: #------;
Like it says it’s the background color of your journal  
Example with a white background:
background-color: #FFFFFF;

color: #------;
Hers the color of the journal's text
Example using black:
color: #000000;

font-family: -----;
Determines the font.
I recommend using the basic fonts because if someone viewing your journal does not have the fonts you have installed, the browser will select it's own default font:
Basic fonts:
Times
Vendera
Comic Sans MS

Example using Comic Sans MS:
font-family: ComicSansMS;

font-size:--px;
Determines the size of the font.
12px is considered an acceptable size.
Example with 12px:
font-size: 12px;

text-align: ----;
Determines the alignment of the text.
You can choose which ever setting you like: center, left, right or justify.
Example with center:
text-align: center;

You’re done with the first step the foundation it should look something like this:

.journalbox {
border-color: #000000;
border-style: solid;
background-color: #FFFFFF;
color: #000000;
font-family: ComicSansMS;
font-size: 12px;
text-align: center;
}

……………………………………………..

.journaltop {
background-image:url(http://---------------------);
background-position:----------;
background-repeat: -----------;
color:#------;
font-family: ------;
font-size:--px;
text-align: ------;
padding-top: ------px;
}


Moving on "journaltop” refers to the very top of the journal (the date and graphic)

background-image:url(http://---------------------);
Controls the image at the top of the journal.
I recommend using an image of about 900px wide by 250px high. After creating the image you would like to use upload it to a file server. I used Photobucket cause it’s easy!
Copy and past the URL provide to the space between the (…)
Example with my image:
background-image:url(http://i77.photobucket.com/albums/j63/Pinkcinnamon/my%20artz/Captivated_by_ENwings.jpg);

background-position:----------;
This is simply the placement of the image.
You can use: top center, top left or top right.
I have chosen "top left", so the line will look like this:
background-position: top left;

background-repeat: -----------;
Controls whether the image is tiled throughout the journal. I only want it on the top so I’ll use "no-repeat". Example:
background-repeat: no-repeat;

color:#------;
font-family: ------;
font-size:--px;
text-align: ------;
This is the same as before just fill it in the same as before, unless you would like to use a different color than the mane journal.

padding-top: ------px;
Determines where the date is. I just used 200px the date and heading usually sit at the very top of the journal. This line of code brings it down. Example:
padding-top: 200px;

You’re all done with part 2, It should look similar to this:

.journaltop {
background-image:url (http://i77.photobucket.com/albums/j63/Pinkcinnamon/my%20artz/Captivated_by_ENwings.jpg);
background-position: top left;
background-repeat: no-repeat;
color:#000000;
font-family: ComicSansMS;
font-size: 12px;
text-align: center;
padding-top: 200px;
}

……………………………………………..


.journaltop h2 {
background-color: #------; or
color:#------;
font-family: ------;
font-size:--px;
text-align: ------;
}

This section of code controls the title of your journal

background-color: #------;
Instead of using a color here, I used "transparent" Because I wanted my background image to be seen. Example:
background-color: transparent;

I got lazy and so this is what my code looked like if you want throw you can change the color and font the same as before

My finished code:
.journaltop h2 {
background-color: transparent;
}

……………………………………………..

.journalbox .list {
background-color: #------;
color: #------;
font-family: ------;
font-size:--px;
text-align: ------;
}

.journalbox .list .a {
background-color:#------;
color:#------;
font-family: ------;
font-size:--px;
text-align: ------;
}

These 2 sections of code control the "moods" area of your journal.  

All you have to do is fill it in, I just assumed that each section did as it was labeled
Example:
Color= text color
Font-family= font style
Font-size= font size
Text-align= center, align left/right

.journalbox .list {
background-color:#ffffff;
color:#000000;
font-family: verdana;
font-size:12px;
text-align: center;
}

.journalbox .list .a{
background-color:#000000;
color:#ffffff;
font-family: verdana;
font-size:10px;
text-align: center;
}

I left this out on my journal.

……………………………………………..

.journaltext a:link {
color:#------;
font-family: ------;
font-size:--px;
}

This section determines how the links will look in the body area of your journal.

I chose firebrick red as the color its code = (:#CD0000). The font family and size should be the same as your regular text which we coded in the very first section (.journalbox). You can change them if you want.

Example:

a. link

.journaltext a:link {
color: #CD0000;
font-family: ComicSansMS;
font-size: 12px;
}

Now we move on to how the link will look when you click on it or hover over it, etc.
b: visited

.journaltext a:visited {
color: #------;
font-family: ------;
font-size:--px;
}

c: active
A link becomes active once you click on it.

.journaltext a:active {
color: #------;
font-family: ------;
font-size:--px;
}

d:hover

.journaltext a:hover {
color: #------;
font-family: ------;
font-size:--px;
}

These 4 sections need to go in this order.
a:link
b:visited
c:active
d:hover

Once you have filled in all the blanks, the section should look like this:

.journaltext a: link {
color: #CD0000;
font-family: ComicSansMS;
font-size: 12px;
}
.journaltext a: visited {
color: #FFE303;
font-family: ComicSansMS;
font-size: 12px;
}

.journaltext a: active {
color: #000000;
font-family: ComicSansMS;
font-size:12px;
}
.journaltext a: hover {
color:  #000000;
font-family: ComicSansMS;
font-size: 12px;
}

……………………………………………..

And now you are done. It’s not the most elaborate thing in the world but it gets your journal looking nice.

Example of my finished CSS code:

.journalbox {
border-color: #000000;
border-style: solid;
background-color: #FFFFFF;
color: #000000;
font-family: ComicSansMS;
font-size: 12px;
text-align: center;
}
.journaltop {
background-image:url (http://i77.photobucket.com/albums/j63/Pinkcinnamon/my%20artz/Captivated_by_ENwings.jpg);
background-position: top left;
background-repeat: no-repeat;
color: #000000;
font-family: ComicSansMS;
font-size: 12px;
text-align: center;
padding-top: 200px;
}
.journaltop h2 {
background-color: transparent;
}
.journaltext a:link {
color: #CD0000;
font-family: ComicSansMS;
font-size: 12px;
}
.journaltext a: visited {
color: #FFE303;
font-family: ComicSansMS;
font-size: 12px;
}

.journaltext a: active {
color: #000000;
font-family: ComicSansMS;
font-size: 12px;
}
.journaltext a: hover {
color:  #000000;
font-family: ComicSansMS;
font-size: 12px;
}

I hope this helped… If I can figure out more tricks Ill make another lol!!!
©2008-2009 =ENwings
:iconenwings:

Author's Comments

I finally figured out how to code a css journal, and in my excitement on how easy it was to do I made a tutorial lol

This thing really angered me because it was impossible to find someone to help me. everyone wanted me to down lode theirs or something and I'm not big on downloading things from the net lol after hours of reserch I was able to pull together a very simple journal so ya I'm very excited :XD:

Not (c) to me cause I didn't create css

sorry for the category it would not let me upload to tutorials cause its not a JPEG, PNG, or SWF damn DA

Critiques


Thank you for your Critique

You are not logged in.

Comments


love 0 0 joy 0 0 wow 0 0 mad 0 0 sad 0 0 fear 0 0 neutral 0 0
:iconrenainnocenti:
cool, very helpful indeed

--
---IM chat with God---
Me: I dislike Christians
God: I am glad to hear it. What do you like?
Me: satanists
God: *speechless*
-----
Icon is iX, one of my Nobodies. Made by ~mr-skateboarder!
Please check out *master-deus' raffle!!
:iconenwings:
lol I'm glad!!

--
Remember you are unique, just like everyone else!

Kakashi, Hidan, Ginko, Sesshomaru, Kaito, Tsume, Dante, and Gokudera.
What do they have in-common? ...Men with silver hair :drool:

:frail:
[link]
:iconrenainnocenti:
*^^*
you are welcome

--
---IM chat with God---
Me: I dislike Christians
God: I am glad to hear it. What do you like?
Me: satanists
God: *speechless*
-----
Icon is iX, one of my Nobodies. Made by ~mr-skateboarder!
Please check out *master-deus' raffle!!
:iconsoulkipper:
This helps ALLOT!!! I'm new too CSS, or journal manipulation in general... OK I'm new to subscription, period! :D Thanks again, I'll be using this soon and featuring it in the journal!

I think that this is one of the best written CSS-help in DA.

--
WaNt SoMe TeA DeAr AlIcE?!?
:iconenwings:
Thank you I'm happy it helped lol. :heart: awww thanks... :blush:

--
Remember you are unique, just like everyone else!

Kakashi, Hidan, Ginko, Sesshomaru, Kaito, Tsume, Dante, and Gokudera.
What do they have in-common? ...Men with silver hair :drool:

:frail:
[link]
:icontangletail:
this is so useful! Im so using this to code my journals! thanks for this.. It must of tooken a long time to make..! :)

--
:w00t!: check out my gallery! [link]
:iconenwings:
:D I'm glad you found it helpful :heart:

--
Remember you are unique, just like everyone else!

Kakashi, Hidan, Ginko, Sesshomaru, Kaito, Tsume, Dante, and Gokudera.
What do they have in-common? ...Men with silver hair :drool:

:frail:
[link]
:iconabbeyallen:
This was very helpful. Before I found this I had absolutely no idea how to get journal css, and you are right..no one is very helpful with it. Whenever anyone asks me I'll give them this link. Great job, and thanks!

--
:blackrose:::frail: Visit my Gallery [link]:frail: :blackrose:
:iconenwings:
:heart: I know it's such an annoyance but what I don't understand is why DA doesn't have a complete guide to CSS. I'm glad it helped, and thanks :D

--
Remember you are unique, just like everyone else!

Kakashi, Hidan, Ginko, Sesshomaru, Kaito, Tsume, Dante, and Gokudera.
What do they have in-common? ...Men with silver hair :drool:

:frail:
[link]
:iconponddreamer:
This is really detailed and looks so simple...and I'm still hopelessly lost. Arghhh...My pc ineptitude strikes again. But, I will study this and maybe figure something out. :shrug:

--
Shamelessly proud mother of =Mr-Ie

"There are two tragedies in life.
One is not to get your hearts desire.
The other is to get it."

George Bernard Shaw

Details

August 5, 2008
11.9 KB

Statistics

67
135 [who?]
1,721 (0 today)
30 (0 today)

Site Map