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

Who loved it?

=Ailedda
*PCRaven
~chibi-jak
=Eleionomae
=ldylore
*pandemoniumfire
*LobaNegra94
=biquin
~foxdragoncloud
*my-dark-desire
~BookKeeper
~Aminatos
~Misa-chii
=StarWisherMidnight
=paintedbluerose
*libiblackcat
*ReevScythe
=Toph-and-Daisy-Fan
*SilviaCampo96
=myah5000
~laceratedwrists
=DelinquentDog
=LadyBlacksword
=munich-lover
=ailime
~AliveInLetters
~3o6k0
=DarcKnyt
=berrixkisses
=Asatira
~Day-Li
=King-Mushroom
!Your-Reflection
~fuzzy-tofu
=EvilMariachiBand
~Blodsvart
~bryzunovrokks
=oh-noh
~AubryTheOdd
=bbokeer
=ozzyopolis
=Robiq
*Metalix-Reshef
=gnulinuxman
~girlonthesidewalk
~evolus
~KiiKari
~fanficbug
*fmuller
~Crysthal
*RJDaae
~StarburstMinni
`kjherstin
=sonar-ua
=kmil60
~Marauders-Princess
~mzkate
~Infernalord
=Arteddy
~KatSumeragi
~11J
=karusuman
~kawaiiFuu
=pic44
~amarilli
=neokiva
~kanotai
`DigitalPhenom
=porotto
*FlameReaper
=apocalypsebunny
=WOWandWAS
~Fire-Woman-Janice
~falconmjc07
~Gel-chan
=Utena-Tenjou10
=BobSmith006
~bricta
~pipid
~mcf-stock
*sunmoongirl
=Lintufriikki
~TwillightRhapsody
*Special-K-001
=MissingHorcrux
~dr-druids
~West-Ninja
~BloodRubiesNata
~dragonzmoon
*silvercss
~lilivy
~Raynie-Lockedheart
~Flaremaster
=SilverPixiGirl
~CrimsonSilk
~bchere
~My-Music-My-Life
~Anathema6205
~RibenaCreature
~spojr
=Shironotenshi
~twinofBorat
*Insanguinated
~lionheart539
*FutureElements
~Subnuggurat
*wrinkledlight
~Lost-Mind-Found-Bob
~-nexis
*AbidingDaRules
=engine-kyo
~Jezhawk
~ArtOfTheChicken
=chod
*maverick-decadence
*shawn529
~poisonedsodapop
=eagle79
`ClaireJones
~Dying-Soul

x 1 devious rejections

Customization


Make your CSS Journal #2

=dot-Silver:icondot-Silver: reports, March 12, 2007
So in the first one, we learned how to create our first basic CSS Journal. But now it's time to learn a bit more yes? Make your CSS Journal stand out a bit more with adding some of your own bits and pieces into it. In the this article, I will be replacing all < and > with the characters [ and ] so that the code will show properly.



Sub Headings

With CSS Journals allowing internal divs, it's very easy add extra bits into it. A comment usage is sub heading, just like using the bold text on news to define a certain area of the article. You can find them almost every where.



.subhead{

border-bottom: 2px solid #821122;

font-family: Courier New, Courier, tahoma, arial, verdana, sans-serif;

font-size: 16px;

}




We set a border bottom, a font-family and size. You can do more if you want, such as backgrounds, more borders, etc.



[div class="subhead"]Heading Title[/div]



More Internal Divs

Internal divs is a great way of showing extra bits off, whether it's news, or stamps, or features work, etc. Anything.



Internal divs are divs that we use inside the journal but not pre-made ones like the journal itself.



.thumbnails{

background: #333333;

color: #CCCCCC;

text-align: center;

padding: 5px;

}




[div class="thumbnails"][/div]



You can add as many thumbnails as you want in there. We define a background colour, colour of any text being used, and we set them to be in the center. When we don't define a width, it will just automatically be 100%.



Styling thumbnails

So we have our special section for the thumbnails, what about adding an extra border onto these or something?



.thumbnails img{

border: 6px solid #FCFCFC;

}

.thumbnails img:hover{

border: 6px solid #821122;

}


We add a border of 6px wide, when the thumbnail is hovered we change the border colour. Simple as that really.

Scrollable Divs
What if you are showing a lot of thumbnails but you don't want your journal to be very very long right? Well, we could put the thumbnails into a div that has a set height, and will scroll up and down.

.scroll{
position: relative;
overflow: auto;
width: 100%;
height: 200px;
text-align: center;
background: #561420;
}


And the div code.

[div class="scroll"]Thumbnails Here[/div]

!important
I would just like to clarify a fact, because a lot of people use this little unneeded bit in their CSS, which of course, just makes the page load a bit slower than it could. It is a fact that you do not need to add !important to the end of all your CSS elements, example:

text-align: center !important;

Not needed... delete that !important!

That's all folks
Well that's all for this series, but I would like to finish off with some CSS Journal features (not including mine)

=ElementsUnleashed - Simple yet effective, and a nice combination of colours.

*zeolyte - A design that I enjoy, and a great way of keeping the dA colours too.

*Nicasus - Got to admit, pretty clever design? So clean and professional looking too.

*steward - Ok ok... Not the best CSS design, but it's a good example to a basic CSS Journal.

Devious Comments

love 1 1 joy 1 1 wow 0 0 mad 0 0 sad 1 1 fear 0 0 neutral 0 0
:iconlawrencededark:
Nice ... I like the custom thumb code and I have never understood why so many people are using the !important thing.

--
Resources & Stock Gallery Moderator
:iconcypher-neo:
The !important is probably the last hangover of CSS that can be disposed of in most browsers.
Some browsers claim to need that extra !important kick in the rear (:lmao:) but for the most part Firefox does not. There are a few FF plugins that still use that extra tag though.

--
We didn't start the flame war...
Peeps were hatin on it, before I left my comment.
:iconhumpy77:
Nice article.

You can display < and > on your code using &#60; and &#62;, so type
 &#60;div class="scroll"&#62;Thumbnails Here&#60;/div&#62;
and get
 <div class="scroll">Thumbnails Here</div>

You should be able to use &gt; and &lt;, but these seem to be blocked so you'll need to remember the codes.

It might be worth mentioning that you do need !important in some situations, but that it should only be tried when you're not getting the result you expect.

--
When I have nothing to say, my lips are sealed.
:icondot-silver:
Well I was told by staff that !important isn't needed, this is because our custom CSS is the last CSS to be put on the page, so everything that we do in it overwrites all other CSS that is put on the page.

And thanks for the tip on the < and > I'll remember that for when I add #4 to the news article. (I already have it on my journal)
:iconhumpy77:
That's what I would have expected. However, when I did my first journal with CSS I definately had to add !important to get some of the background images where I wanted them. Maybe it's just a problem in the preview window, :hmm:.

Glad I could help. You can use the &# codes to get all sorts of characters out, www.lookuptables.com.

--
When I have nothing to say, my lips are sealed.
:iconlysanda:
Very useful! When I will have some time I will take them all in action!

--
*lysanda

"the hardest part isn't finding what we need to be, is being content with who we are" - the ataris

{ [link] -> my gallery }
:iconlittlep:
very very useful for the css beginer~!!!!

thanks!

--
On my way... ...



(\\_/) welcome to my gallery {link}
(O.o) blog {link}
(^ ^)
:iconbeyondthehorizon:
The !important tag might be needed by some browsers. Take *zeolyte's Journal; check it in FF and IE, and you see 2 different Journals. Dunno if this is the reason, but the 2 versions does look rather different ;)
:iconyeknom:
Good article, saw this just when I'm starting to take a bold step into CSS :D
 

Site Map