It's my gallery for my designed wallpapers on different abstract images, and photography by me!

Sunday, 27 July 2008

Deviantart journal CSS Template Rundown II

Applying the custom divs in your journal

This is the part that may confuse some people without actually being told what to do. This will give you a rough idea of how to use the divs I've provided in my template. Just reading this should give you a good idea of how to create your own.

.journalbox .journaltext .jcustom {
margin: 0px 5px 0px 5px !important;
background-color: #------ !important;
color: #------ !important;
font-size: 11px !important;
padding: 15px 15px 15px 15px !important;
display: block !important;
border-style: solid !important;
border-width: 1px 1px 1px 1px !important;
border-color: #------ !important;
width: auto !important;
}

That is our div for the 'section box' as I like to call them. Just check out this screenshot below on the test journal I did using the same CSS I've provided:

image1

As you can see, there are three differences in the content. The darker background is the main content of your journal. The lighter grey is the custom div I explained above, and the darker grey inside this one is the second div, as shown below.

.journalbox .journaltext .titles {
font-family: 'Trebuchet MS', Verdana, Arial, Helvetica, sans-serif !important;
font-size: 20px !important;
color: #------ !important;
text-align: center !important;
border-style: solid !important;
border-width: 1px 1px 1px 1px !important;
border-color: #------ !important;
background-color: #------ !important;
width: auto !important;
}

So, how does one get it to display like this? Quite easily. If you've been using deviantART journals for a while, you will know how to align your text using

textext
, for example. Using the custom divs works in pretty much the same way, only using class instead of align.

Use something like below. I've put it into a 'tree' type of order, to make more sense of it:


Your Title Here

The text that will be displayed in the first div will go here. Eg, if you were talking about your cat, put all the text and ramblings here.

As you can see, we have a div class inside another div class. When writing your journal, you don't have to format it in the way I did above, but you can do it like this:

Your Title Here

The text that will be displayed in the first div will go here. Eg, if you were talking about your cat, put all the text and ramblings here.

Each time you want a new box around your content, just do it all over again. Just remember to close the div classes with when you want a box to finish.

Also, remember that in my template, the custom divs have the names .jcustom (the main box around the content) and .titles (the box around the title within the main content box). You don't have to use these for class names. In my own journal CSS, one is for example .nycustom and I have another one for the links the top of my journal which is simply .links.

Also, my template has used a 'long way' for custom divs, to keep the journal structure (this is for beginners afterall), but it can be shorted to something like this if you want to change it and keep it simple:

div.jcustom {
margin: 0px 5px 0px 5px !important;
background-color: #------ !important;
color: #------ !important;
font-size: 11px !important;
padding: 15px 15px 15px 15px !important;
display: block !important;
border-style: solid !important;
border-width: 1px 1px 1px 1px !important;
border-color: #------ !important;
width: auto !important;
}

It works both ways, so it's up to you whether you want to keep using the longer version or use the shortened div.jcustom / div.titles.

If you're still not sure or understand, feel free to ask any questions on the deviation page where you downloaded this tutorial. I'd be happy to answer them or help out. Alternatively, you can just keep reading until you get that "Ohh, I get it". ;)

Oh and if you're wondering what your journal will look like (with the exception of colours), it will look something like below:

image2

Deviantart journal CSS Template Rundown I

This is a rundown of my template. It will explain what each section will do to your journal. What will change what.

.journalbox {
background-color: #------ !important;
border-color: #------ !important;
border-width: 1px !important;
color: #------ !important;
}

This is what contains everything in your journal. You can think of it like a wrapper if you like, holding a chocolate bar. If you look at journals, you can see they have a border around them. This can be changed here, as well as the colour changed.

.journalbox .journaltop {
font-family: Verdana, Arial, Helvetica, sans-serif !important;
font-size: 10px !important;
color: #------ !important;
background-color: #------ !important;
height: 90px !important;
text-align: center !important;
}

Controls the header area of a journal where you find the date and time it was posted etc. Using background-image: url ('url') !important; would apply an image into the header, but since I've removed these from my template, we won't go over it (yet anyway). This section will, as it is now, change the background colour, height, alignment of the test and change the text itself.

.journalbox .journaltop img {
display: none !important;
}

What is this?! Nothing too important. You can delete it if you want to. All it does is remove the journal icon from the header of the journal, which can look pretty good.

.journalbox .journaltop h2 {
font-family: 'Trebuchet MS', Verdana, Arial, Helvetica, sans-serif !important;
font-size: 22px !important;
color: #------ !important;
padding-top: 15px !important;
text-align: center !important;
}

This one controls the title of the journal. Say you title your journal "My Wonderful Journal", this will control how it is displayed to yourself, and everyone else.

.journalbox .list {
background-color: #------ !important;
color: #------ !important;
text-align: center !important;
}

.journalbox .list .a {
background-color: #------ !important;
color: #------ !important;
text-align: center !important;
}

These two will control the display of the currently sections you fill in (or not) when you write a new journal. If you want the rows of these to display as different/alternate colours, just a different colour in .list .a from .list.

.journalbox .journaltext {
color: #------ !important;
font-family: Verdana, Arial, Helvetica, sans-serif !important;
font-size: 11px !important;
padding-top: 0px !important;
padding-left: 15px !important;
padding-right: 15px !important;
background: #------ !important;
text-align: justify !important;
}

This controls the content WITHIN the journal. Like before, think of it like a chocolate bar. The first wrapper holds the whole chocolate bar, and the inner wrapper would be like the chocolate around the inner ingredients of the chocolate bar.

.journalbox .journaltext .jcustom {
margin: 0px 5px 0px 5px !important;
background-color: #------ !important;
color: #------ !important;
font-size: 11px !important;
padding: 15px 15px 15px 15px !important;
display: block !important;
border-style: solid !important;
border-width: 1px 1px 1px 1px !important;
border-color: #------ !important;
width: auto !important;
}

Okay, this is where we start on the custom divs. Divs can add a whole new look to your journal. It can give a different style for each 'section' of your journal, quite like mine, if you've already seen it. Basically, it applies a 1px border around the content, as well as a different background colour from the rest of your journal content. Border styles, widths etc can be changed here too.

.journalbox .journaltext .titles {
font-family: 'Trebuchet MS', Verdana, Arial, Helvetica, sans-serif !important;
font-size: 20px !important;
color: #------ !important;
text-align: center !important;
border-style: solid !important;
border-width: 1px 1px 1px 1px !important;
border-color: #------ !important;
background-color: #------ !important;
width: auto !important;
}

Another custom div, the second one. This has been created to go INSIDE the first one, for the titles of each 'section' of your journal. It's not all that much different from the first div.

.journalbox .journaltext a {
color: #------ !important;
text-decoration: none !important;
}

.journalbox .journaltext a:hover {
color: #------ !important;
text-decoration: underline !important;
}

Controls links within the journal content. a:hover controls the colour and style when your mouse pointer is over the link.

.journalbox .journalbottom {
background-color: #------ !important;
}

Contains the links at the bottom of your journal. You really only need to change the background colour here. In my journal, it has the same background colour as my .journaltop and the .journaltext.

.journalbox .commentslink {
background-color: #------ !important;
color: #------ !important;
font-size: 11px !important;
text-decoration: none !important;
font-weight: bold !important;
}

.journalbox .prevlink {
background-color: #------ !important;
color: #------ !important;
font-size: 11px !important;
text-decoration: none !important;
font-weight: bold !important;
}

These two are pretty straight forward. On the userpage at the bottom of a journal, you will see two links. One leads to the comments of the journal on the userpage. One leads to the previous journal entries. .commentslink obviously controls the link to the comments and .prevlink controls the link to previous journals.

If none of these explainations have helped, ^thespook has a visual aid which might be a little easier to understand, although not everything in my template is shown on it, and just the very basics. You can see it here. An excellent and must have resource, even if you understood this rundown.

About Shinegrafix

My photo
Hi Guys, Shinegrafix is a gellery for my work like Abstract wallpapers, Photo Manipulation, Designing and Photography. Well there are some information about me. Basically i am a Programmer, but i love to work with images & photography also. that you will see here or you can visit SHINEGRAFIX