ShopDreamUp AI ArtDreamUp
Deviation Actions
Welcome back! If you haven't done so already, have a read of Getting the most out of your CSS Journals Part One. Part two deals with Dressing up your mood boxes, adding extra lines to your Journal title, and will touch upon dynamic images in your journal, amongst other things. So without further delay, let's begin!
Mood boxes
"Mood boxes", or the little box that shows what you're listening to etc, is now available to everyone. Subscribers and non subscribers alike. It would seem that there's not a whole lot you can do with these, asides from change the colours and such. But something a few people don't know, is that you can move your mood box anywhere you like, and do so much more than just colourising it. In this example, we'll show you how to shift your mood box to the right, just like in This example.
CSS:
.journalbox .list {
position:absolute;
right:0px;
bottom:0px;
width:25%;
}
And that's all you need! When you look at your mood box, it will be 25% wide, and sitting on the bottom-right hand corner of your journal! Please note that this will look shocking on smaller journal entries, or some journal views (ie. on the userpage, full-view etc.). Now you can stretch out your box to wherever you wish, put half on one side, half on the other, hide bits of your mood box. It's all up to your imagination!
(A tip: If you find you can't rid of the mood box, because there is no "remove mood" feature, try this code:
.journalbox .list {
display:none;
}
to rid of the mood box altogether)
Journal Taglines
Ever wish you could add a small bit of text underneath your journal title, like you can on the major blogging systems out there (Think Wordpress and such)? It's really easy with CSS. Just add the following to your "Header" section of your journal, and your CSS section:
HTML:
CSS:
.journal-subtext {
top:30px;
position:absolute;
}
.journalbox .journaltop {
font-size: 0px;
}
Just remember to tweak "30" to whatever value you wish, depending on where your .journaltop h2 header is placed, and if you want to keep the date / time, leave out the font-size:0px; And there you have it! It'll now show your sub-text (or personal message) below your journal title. This can be done with images, CSS menus (as per last week's example) or anything else dA supports. It's only limited by your imagination!
Dynamic Images
Imagine if you could use your dA journal to tell people what TV show you were watching at that very second, or if you could display your computer's uptime, temperature and the last program you ran, or even display news headlines, images from your gallery, new posts on your forums, or so much more. Impossible you say? No way! Thanks to the magic of GD
For those in the know, or people who have used Last.fm, AudioScrobbler, or any other services like that, GD / Dynamic Images should be nothing new. For the rest of you, GD is a PHP library that lets us draw text on a picture, or draw a completely new picture from scratch. The output, can be a standard JPG, GIF or PNG file, which dA is more than happy to support. The trick comes from writing a PHP script that returns an image instead of text. Now I won't go into PHP and GD and the like. That's wayyyy beyond the scope of our article. Instead I'll give you an example. Check out my Userpage, and look at my webcam. That is a dynamically created image. Every time it's viewed, it grabs my base image (the green), adds text to it, depending on what's in the database, and shoots it off as a JPG picture. Our browser sees the JPG data, and displays it as such.
With a bit of manipulation, you can write a script that reads your computer's uptime, shows off some images, even parse a website to get images for displaying. It's limited by PHP's engine, and your imagination!
Have a read of PHPFreak's GD Tutorial for a starter on GD. Some PHP knowledge is required here ;D
That's all for this week. Remember, if you have any suggestions, note them to Grayda for inclusion in the next part of Getting the most out of your CSS Journals. Thanks for reading, if you get some use out of this, and keep watching the skies!
Previous Weeks
Getting the most out of your CSS Journals Part One
Mood boxes
"Mood boxes", or the little box that shows what you're listening to etc, is now available to everyone. Subscribers and non subscribers alike. It would seem that there's not a whole lot you can do with these, asides from change the colours and such. But something a few people don't know, is that you can move your mood box anywhere you like, and do so much more than just colourising it. In this example, we'll show you how to shift your mood box to the right, just like in This example.
CSS:
.journalbox .list {
position:absolute;
right:0px;
bottom:0px;
width:25%;
}
And that's all you need! When you look at your mood box, it will be 25% wide, and sitting on the bottom-right hand corner of your journal! Please note that this will look shocking on smaller journal entries, or some journal views (ie. on the userpage, full-view etc.). Now you can stretch out your box to wherever you wish, put half on one side, half on the other, hide bits of your mood box. It's all up to your imagination!
(A tip: If you find you can't rid of the mood box, because there is no "remove mood" feature, try this code:
.journalbox .list {
display:none;
}
to rid of the mood box altogether)
Journal Taglines
Ever wish you could add a small bit of text underneath your journal title, like you can on the major blogging systems out there (Think Wordpress and such)? It's really easy with CSS. Just add the following to your "Header" section of your journal, and your CSS section:
HTML:
It's all in a day's work!
CSS:
.journal-subtext {
top:30px;
position:absolute;
}
.journalbox .journaltop {
font-size: 0px;
}
Just remember to tweak "30" to whatever value you wish, depending on where your .journaltop h2 header is placed, and if you want to keep the date / time, leave out the font-size:0px; And there you have it! It'll now show your sub-text (or personal message) below your journal title. This can be done with images, CSS menus (as per last week's example) or anything else dA supports. It's only limited by your imagination!
Dynamic Images
Imagine if you could use your dA journal to tell people what TV show you were watching at that very second, or if you could display your computer's uptime, temperature and the last program you ran, or even display news headlines, images from your gallery, new posts on your forums, or so much more. Impossible you say? No way! Thanks to the magic of GD
For those in the know, or people who have used Last.fm, AudioScrobbler, or any other services like that, GD / Dynamic Images should be nothing new. For the rest of you, GD is a PHP library that lets us draw text on a picture, or draw a completely new picture from scratch. The output, can be a standard JPG, GIF or PNG file, which dA is more than happy to support. The trick comes from writing a PHP script that returns an image instead of text. Now I won't go into PHP and GD and the like. That's wayyyy beyond the scope of our article. Instead I'll give you an example. Check out my Userpage, and look at my webcam. That is a dynamically created image. Every time it's viewed, it grabs my base image (the green), adds text to it, depending on what's in the database, and shoots it off as a JPG picture. Our browser sees the JPG data, and displays it as such.
With a bit of manipulation, you can write a script that reads your computer's uptime, shows off some images, even parse a website to get images for displaying. It's limited by PHP's engine, and your imagination!
Have a read of PHPFreak's GD Tutorial for a starter on GD. Some PHP knowledge is required here ;D
That's all for this week. Remember, if you have any suggestions, note them to Grayda for inclusion in the next part of Getting the most out of your CSS Journals. Thanks for reading, if you get some use out of this, and keep watching the skies!
Previous Weeks
Getting the most out of your CSS Journals Part One
Err.. Hi! :D
It's that time of year where I submit a journal. So, this is it. Hi!
:|
Sending me an instant gram
There is that new-fangled inter-net web-site that all the cool kids are on. It's called instant gram, and it lets you send photographs over the inter-net (which I predict won't last that long -- it's just a phase kids are going through)
If you have an inter-net, and an instant gram, follow me there. I post far more often there than I do here (and I don't know why?). I don't use filters, because I tweak my photos like a man -- by bending pixels with my own two hands.
Follow me on instagram
I'm also on Google+, Facebook and also on SmugMug (this link is really important! Bookmark it!)
In other news? I'm upgrading from my Canon EOS 40D, to a
Amethyst Eyes - The Book
I'm not sure why I haven't mentioned this earlier, but my wife, Enamorte (https://www.deviantart.com/enamorte) has published her very first book, Amethyst Eyes. It's been a few years in the making and has gone through lots of revisions to both the story and the characters (and even the way they look. See her collection of Amethyst Eyes art for a better idea.
There were many, many nights where she'd lock herself in her room and write furiously, and many times when we sat down and discussed the progress of the book (which at some points just seemed like an ever-shifting goalpost) but she did it, and I am so very proud of her for accomplishing what few have
If you're interest
davidgray Photography on Google+
I'm now on Google Plus!
Now that I'm starting to ditch Facebook over concerns about my privacy, features being opt-out instead of opt-in, I've turned towards Google's fantastic new social network - Google+. And it's already starting to pay off. In the short time that I've had my page up, I've got more followers than I ever had on my Facebook page. Most of them are photographers themselves and the quality of their work is of a very high standard. It's quite refreshing.
So if you're on Google+ (and even if you're not), head on over to my page and take a look. I'll be posting all of my 2012 365 challenge photos there, so keep coming back!
dav
© 2006 - 2024 Grayda
Comments123
Join the community to add your comment. Already a deviant? Log In
Thankyou this helped me alot
But after I use
.journalbox .list {
display:none;
}
to remove my mood box, I am left with a space between my header and my content/text box. Hasd this got something to do with padding? I haven't got any padding in my code so far but I am still getting a space between my text box and my header
please help!
This is my code so far:
.journaltop {
font-size:0px;
background-color:000000;
background-image:url([link]);
background-repeat:no-repeat;
background-position:top center;
width:auto;
height:593px;
}
.journaltop img {
display:none;
}
.journaltop h2 {
color:#FFFFFF;
font-size:14px;
font-familyookman Old Style;
line-height:1em;
letter-spacing:0.01em!important;
background-color:transparent;
text-align:bottom-right;
}
.journalbox .journaltext {
background-image:url([link]);
background-repeat:repeat-y;
background-position:bottom center;
}
.journaltext{
color:#FFFFFF;
font-size:12px;
font-familyookman Old Style;
text-align:center;
}
.journalbox .list {
display:none;
}
But after I use
.journalbox .list {
display:none;
}
to remove my mood box, I am left with a space between my header and my content/text box. Hasd this got something to do with padding? I haven't got any padding in my code so far but I am still getting a space between my text box and my header
please help!
This is my code so far:
.journaltop {
font-size:0px;
background-color:000000;
background-image:url([link]);
background-repeat:no-repeat;
background-position:top center;
width:auto;
height:593px;
}
.journaltop img {
display:none;
}
.journaltop h2 {
color:#FFFFFF;
font-size:14px;
font-familyookman Old Style;
line-height:1em;
letter-spacing:0.01em!important;
background-color:transparent;
text-align:bottom-right;
}
.journalbox .journaltext {
background-image:url([link]);
background-repeat:repeat-y;
background-position:bottom center;
}
.journaltext{
color:#FFFFFF;
font-size:12px;
font-familyookman Old Style;
text-align:center;
}
.journalbox .list {
display:none;
}