Join for FREE | Take the Tour Lost Password?
[x]

deviantART

 
[x]  

Link




Share


  Share on twitter Share on Facebook Share on reddit Share on digg

Notices



More Customization News

So i herd u liek emotes?? - Volume 56

`Synfull:iconSynfull: reports, November 22
56th volume in a weekly series focused on promoting emotes and emoticonists from the dA community

So i herd u liek emotes?? - Volume 55

`Synfull:iconSynfull: reports, November 15
55th volume in a weekly series focused on promoting emotes and emoticonists from the dA community

So i herd u liek emotes?? - Volume 54

`Synfull:iconSynfull: reports, November 8
54th volume in a weekly series focused on promoting emotes and emoticonists from the dA community

So i herd u liek emotes?? - Volume 53

`Synfull:iconSynfull: reports, November 1
53rd volume in a weekly series focused on promoting emotes and emoticonists from the dA community

Free Halloween Avatars!

=FreeAvatarProject:iconFreeAvatarProject: reports, October 27
Looking for a cool avatar for Halloween? Curious to know how some Halloween traditions got started? Come see a huge selection of free Halloween avatars, and read about some of our favorite Halloween icons!

So i herd u liek emotes?? - Volume 52

`Synfull:iconSynfull: reports, October 25
52nd volume in a weekly series focused on promoting emotes and emoticonists from the dA community.

Free Avatars 4 Breast Cancer Awareness!

=FreeAvatarProject:iconFreeAvatarProject: reports, October 21
Find some of dA's pinkest FREE avatars to help raise breast cancer awareness and support for those whose lives have been impacted by breast cancer. Also, find useful links to help fight against breast cancer.

So i herd u liek emotes?? - Volume 51

`Synfull:iconSynfull: reports, October 18
51st volume in a weekly series focused on promoting emotes and emoticonists from the dA community.

So i herd u liek interviews? - BlissfullySarcastic

`Synfull:iconSynfull: reports, October 16
18th edition of the twice monthly interview with emoticonists from around the site

So i herd u liek emotes?? - Volume 50

`Synfull:iconSynfull: reports, October 12
50th volume in a weekly series focused on promoting emotes and emoticonists from the dA community. This week we hit our 1 year anniversary :la:

Customization News This Week

So i herd u liek emotes?? - Volume 56

`Synfull:iconSynfull: reports, November 22
56th volume in a weekly series focused on promoting emotes and emoticonists from the dA community

My Art Contest

*Dark-Magic-Dragon:iconDark-Magic-Dragon: reports, November 23
Dont forget its not to late to join :thumbsup:
No comments   Customization News  Last +fav: Nobody

Customization


Make Your CSS Journal #3

=dot-Silver:icondot-Silver: reports, March 13, 2007
Welcome to the third part in the "Make Your CSS Journal" series. This series is here to help you make your own journal stand out from the rest by giving all sorts of tips and tricks and learning parts of CSS you can use on your journal.

For this article, all instances of < and > have been changed to [ and ] to work on the news article. Make sure to change them back ;)

The Margin
Ahh, the margin, what is the margin? The Margin is the transparent border outside of your div, you can't see it, but it's there. It can allow you place your divs somewhere on the page. If you to make just a simple div box with a width of 200. It would be on the left side of the journal right? (Well, unless you have a text-align: right or center on your journaltext css.)

Let's apply this margin of ours.

.margin{
width: 200px;
height: 100px;
background: #821122;
margin: 0 auto;
}

[div class="margin"][/div]


Our margin is set as 0 auto. There are different ways you can do this, 0 is the top and bottom, auto is the left and right. You can also have a number by itself, example:

margin: 5px;

This will set the margin to 5px all around the div. Or, you can do it seperately.

margin: 5px 10px 4px 11px;

Top, right, bottom, left... make sense?

The auto I used will set the box staight dead in the center.

The Padding
Sounds like some kind of old cult horror movie title eh? The Padding... So, what's the padding? This is the transparent space inside the box, obviously leaving less space inside the box. Great to not have any text straight next to the borders. So the CSS in this.

.padding{
width: 200px;
height: 100px;
border: 1px solid #821122;
padding: 5px;
}


Go on, try it, then try it without the padding on. The padding element is the same as margin, so here it's 5px all around (or inround the box).

Padding will make your box expand; you can easily fix this though by taking away the padding on the left and right side in total from the width, and the total padding on the top and bottom from the height.

So in this case, width - padding on top - padding on bottom = new width.
So it's 200 - 5 - 5 which is of course, 190 for the width. And the same with the height but from 100, so 90.

(Don't worry, I don't think you're a bunch of dumb people, but it's a way to explain this.)

Visualize The Journal
Time for visual pleasure... no not nudity, I know you want me nude but just no. Images! How to use images in your journal, specially a background.

For this example, I will use the background url in the CSS in order to create a header. With this, is where padding can come in handy. Below is the CSS code I have.

.journalbox{
background: #FCFCFC url('{imagelink}') repeat-x;
border: 2px solid #333333;
padding: 134px 0 0 0;
}


You need to change {imagelink} with the link to your image.

The repeat-x means to repeat the image on the x-axis, which is horizontal. There is also repeat-x which is vertical, repeat which is everywhere, and also no-repeat which means don't repeat... obviously.

The other change we have is the padding settings, I've now changed from 0; to adding all four, the 134px is the padding at the top, this moves everything down from the top by 134px, thus showing my header fully.

That's it for part 3, and before I part, some looks at the CSS Journals.

*IdealEric - A great example of what CSS can do for your journal.

*MysticMo - Simple CSS being used to create this dark themed CSS Journal.

=axentric - Now this is a nice Journal. Great use a 2 column layout.

*lockjavv - Good use of extra divs boxes. And nice use of a 2 column.

*ginkgografix - Nice example of a basic CSS Journal. With what I've said in these first three parts of this series. You should be able to make something like this pretty easily.

Devious Comments

love 1 1 joy 1 1 wow 0 0 mad 0 0 sad 0 0 fear 0 0 neutral 0 0
:iconginkgografix:
While searching for Graydas news article i found yours. Like them :thumbsup:
Good idea to explain the basic css things.

And thanks for adding me to this one :aww:

--
*eCSSited | #GinkgoGarden
:iconneon98071:
Been trying to figure out how to use CSS for a while, thanks for writing these articles. :D

--
Life is like a box of chocolates...

=christians
*Christian-Stock
Join in on the CS ID Contest! [link]
:iconleaf-lover:
Great little series you've got going here. It would be wonderful if you complied this into a tutorial with images next to every code so we can see exactly what each bit does and does not do. :aww:

--
Steph
Senior Message Network (MN@) Admin
deviantART, Inc

--

Dark matter flowing out on to a tape...
:iconmaverick-decadence:
The timing for this is perfect as I'm just in the middle of 'pimpin' my journal! Thanks for the great explanations!

--
"I have learned silence from the talkative, tolerance from the intolerant, and kindness from the unkind; yet strangely, I am ungrateful to these teachers"
:icondot-silver:
Well you wait for #6 ;) It's gunna be a full advanced CSS Journal.
:icontaclobanon:
keep em coming and i'll have a css journal up in no time.

--
Type of art you think dominates your DA Favourites/Collections (SURVEY): [link]
:icondot-silver:
Don't worry they will ;) And i'm glad they can help you
:iconleaf-lover:
:lol:

--
Steph
Senior Message Network (MN@) Admin
deviantART, Inc

--

Dark matter flowing out on to a tape...
 

Site Map