HOME | DD

Talei β€” TUT: Using CSS Scroll Boxes

Published: 2008-05-15 19:51:11 +0000 UTC; Views: 46037; Favourites: 907; Downloads: 4716
Redirect to original
Description

Quite a few people have asked me about this now. So here is a full tutorial/documentation on how to do it, with complete instructions, including how to use multiple boxes of different sizes.

This includes the following files;
Scrolling Boxes CSS
Using more than one box
Journal Entry
Preview


This is now a .zip file. If you would prefer a .rar, just drop a comment and I'll up one for you.

DO NOT USE MY CODES. IT WILL NOT WORK. IF YOU FOLLOW THE DOCUMENTATION YOU WILL KNOW WHY RATHER EASILY. ITS A MATTER OF CLASS NAMES, AND IF YOU DON'T UNDERSTAND WHAT I'M ON ABOUT, YOU OBVIOUSLY DIDN'T LEARN SO GO OVER IT UNTILL YOU DO. IF YOU TRY AND COME TO ME LIKE THE PAST FEW HUNDRED PEOPLE SAYING "IT DOESN'T WORK!" I'M GOIN TO SCREAM. YOU'RE SUPPOSED TO LEARN HOW TO DO IT YOURSELF, NOT TAKE MY CODE.

You do not have to credit me in your Journal CSS if you use this if you do not want to, but I'd appreciate it if you left a comment to let me know you used it and added it to your favourites if it was useful. Especially if you use my template!

Please don't note me with questions about using this, please leave a comment on this deviation. That way, if someone else has a similar issue, I can try and avoid repeating myself.

In the preview, a header THEN the scroll box is shown.
This tutorial is for the SCROLLBOX ONLY.
If you're looking for the header tutorial that matches, please check in my gallery. You can find it here [link]

EDIT: HOLY CRAP A DD. I'm gobsmacked. I went to sleep feeling like shap last night. Yes shap, its a word I invented, and if you can't guess what words I put together there, you may still be calling people "poo-poo head" But yez, so to wake up to a DD was a really, really nice surprise, it hadn't ever even crossed my mind, so seeing some "congrats on the DD" comments made me have to check and do a double take! Thank you, Anni, for suggesting me! If you don't know her already, go and visit her over at =soulful-tears because she's so damn lovely.
Related content
Comments: 546

Talei In reply to ??? [2010-05-24 11:04:07 +0000 UTC]

Only if you put the box... inside a box really, re; border. Unless you change the border type (solid, dotted, dashed etc, theres a load of types to use, I see you already seem to know that as you're using a dotted border. You'd need to have an image for the shadow. There IS a way to add gradients in CSS but I honestly can't remember how to do it as I haven't done that since my CSS starter days about 6 years ago. I switched to images.

Sorry I can't be more helpful. And I'm glad the tut was useful, and also thank you for crediting me.

πŸ‘: 0 ⏩: 1

OtisBee In reply to Talei [2010-05-30 09:44:56 +0000 UTC]

you're by all means welcome. thanks for the reply.

πŸ‘: 0 ⏩: 0

nevershoutnatalie In reply to ??? [2010-05-04 21:30:20 +0000 UTC]

is it possible to use it on your profile page in ur deviant
ID box?

πŸ‘: 0 ⏩: 1

Talei In reply to nevershoutnatalie [2010-05-24 10:57:35 +0000 UTC]

I'm unsure, I've not tried it. I don't know if deviantART allows it, especially now all the layout has changed. D:

πŸ‘: 0 ⏩: 0

lizzisaurus In reply to ??? [2010-04-02 08:59:17 +0000 UTC]

thankyou xx

πŸ‘: 0 ⏩: 1

Talei In reply to lizzisaurus [2010-04-07 21:59:10 +0000 UTC]

Happy to be of help

πŸ‘: 0 ⏩: 0

FudgecakeKamy [2010-03-22 20:00:12 +0000 UTC]

Hello! Not to bother you though but is this how you do it? I combined the scroll box and the more boxes.

div.scrollbox {
background-attachment: scroll;
background-image:url([link] );
width:400px;
height:500px;
border-width: 1px 1px 1px 1px;
border-color: ##610B5E;
border-style: solid;
background-repeat: no-repeat;
background-position: scroll;
padding: 10px 10px 10px 10px;
background-color:##610B5E;
overflow: auto;
div.scrollbox {
div.scrollbox2 {

}

πŸ‘: 0 ⏩: 1

Talei In reply to FudgecakeKamy [2010-03-23 00:24:28 +0000 UTC]

no.

border-color: ##610B5E;

Two hexes.

div.scrollbox {
div.scrollbox2 {

Not needed.

Hope that helps.
If you want more boxes, you have to repeat. Eg

div.scrollbox {
background-attachment: scroll;
background-image:url([link]);
width:400px;
height:500px;
border-width: 1px 1px 1px 1px;
border-color: ##610B5E;
border-style: solid;
background-repeat: no-repeat;
background-position: scroll;
padding: 10px 10px 10px 10px;
background-color:#610B5E;
overflow: auto;
}

div.scrollbox2 {
background-attachment: scroll;
background-image:url([link]);
width:400px;
height:800px;
border-width: 1px 1px 1px 1px;
border-color: ##610B5E;
border-style: solid;
background-repeat: no-repeat;
background-position: scroll;
padding: 10px 10px 10px 10px;
background-color:#610B5E;
overflow: auto;
}

and have both in and then use scrollbox and scrollbox2 divtags as appropriate

πŸ‘: 0 ⏩: 1

FudgecakeKamy In reply to Talei [2010-03-23 00:27:06 +0000 UTC]

So like this? And if i wanted to i can add more boxes if i just repeat the code right? Thanks so much! Really useful!

div.scrollbox {
background-attachment: scroll;
background-image:url([link] );
width:400px;
height:500px;
border-width: 1px 1px 1px 1px;
border-color: #610B5E;
border-style: solid;
background-repeat: no-repeat;
background-position: scroll;
padding: 10px 10px 10px 10px;
background-color:##610B5E;
overflow: auto;


}

πŸ‘: 0 ⏩: 1

Talei In reply to FudgecakeKamy [2010-03-23 22:39:39 +0000 UTC]

Like I said
background-color:##610B5E;
should be
background-color: #610B5E;
No double hash's.

But yeah, just repeat and edit as needed

πŸ‘: 0 ⏩: 1

FudgecakeKamy In reply to Talei [2010-03-23 22:58:40 +0000 UTC]

Okay thank you And i put the code in the css box,header, or the foot? Thanks for your help!

πŸ‘: 0 ⏩: 1

Talei In reply to FudgecakeKamy [2010-03-23 23:04:10 +0000 UTC]

CSS.

πŸ‘: 0 ⏩: 1

FudgecakeKamy In reply to Talei [2010-03-23 23:08:37 +0000 UTC]

Thanks so much!

πŸ‘: 0 ⏩: 0

Vehc In reply to ??? [2010-03-15 06:16:17 +0000 UTC]

Thank you so much for making this

If you dont mind helping me?

Did I do this right?
div.scrollbox {
background-attachment: scroll;
width:400px;
height:500px;
border-width: 1px 1px 1px 1px;
border-color: #8A2BE2;
border-style: dashed;
background-repeat : no-repeat;
background-position : scroll;
padding: 10px 10px 10px 10px;
margin-top: 1px;
[background-color:#FF4040;
overflow: auto;

}


And where the heck Do I put it? I dont understand, Please help?

πŸ‘: 0 ⏩: 1

Talei In reply to Vehc [2010-03-15 10:08:00 +0000 UTC]

You have a random bracket in there o.o
That won't work... remove it. And you have spaces between the colons at the background bit...
Like background-repeat : no-repeat; gotta be
background-repeat: no-repeat;

You can put it anywhere in the CSS section.

πŸ‘: 0 ⏩: 1

Vehc In reply to Talei [2010-03-15 18:10:31 +0000 UTC]

oh thank you! *_*
SO like this right? :3
div.scrollbox {
background-attachment: scroll;
width:400px;
height:500px;
border-width: 1px 1px 1px 1px;
border-color: #8A2BE2;
border-style: dashed;
background-repeat: no-repeat;
background-position: scroll;
padding: 10px 10px 10px 10px;
margin-top: 1px;
background-color:#FF4040;
overflow: auto;

}


I just put it at the end of the Skin css thing,
and then I put


CONTENT HERE!

Randomly anywhere in my journal?
Sorry im not that smart ;_;

πŸ‘: 0 ⏩: 1

Talei In reply to Vehc [2010-03-15 22:22:41 +0000 UTC]

no, you put scrollbox. Because the class you are using is scrollbox not window2
This was a point of learning for the tutorial.

πŸ‘: 0 ⏩: 1

Vehc In reply to Talei [2010-03-16 04:59:21 +0000 UTC]

;_;


THANK YOU! x3
You are serisouly insanly awesome!

πŸ‘: 0 ⏩: 0

Sonaos In reply to ??? [2010-02-09 04:14:19 +0000 UTC]

Very useful tutorial. Thanks for it.

πŸ‘: 0 ⏩: 1

Talei In reply to Sonaos [2010-02-09 16:41:45 +0000 UTC]

I'm glad it was useful.

πŸ‘: 0 ⏩: 1

Sonaos In reply to Talei [2010-02-10 21:32:53 +0000 UTC]

Indeed.

πŸ‘: 0 ⏩: 0

gatogirl12345 [2010-02-01 00:58:54 +0000 UTC]

Hope I can understand this once and for all.

πŸ‘: 0 ⏩: 1

Talei In reply to gatogirl12345 [2010-02-01 03:17:12 +0000 UTC]

Good luck!

πŸ‘: 0 ⏩: 1

gatogirl12345 In reply to Talei [2010-02-01 05:39:25 +0000 UTC]

Wow. You explained it very simply! Thank you so much!

πŸ‘: 0 ⏩: 0

pinkxfuzziexkitties In reply to ??? [2010-01-12 00:31:03 +0000 UTC]

Hello This is a very nice tutorial! s!
However, I am CSS challenged XD Like, I have a CSS code already that I pretty much understand how it works. But then adding the scroll feature confuses meee. aha I apologize in advance cuz this post is long.

Here was my original code:
.journalbox {
background-color:#ffd4a5 !important;
border:3px #ff7777 solid !important;
}
.journalbox .list li {
background-color:transparent !important;
color:#ff7777 !important;
}
.journalbox .list li.a {
background-color:transparent !important;
color:#ff7777 !important;
}
.journalbox .journaltop {
border-bottom:3px #ff7777 solid !important;
background-color:#ffd4a5 !important;
color:#ff7777 !important;
}
.journalbox .journaltext {
border-bottom:3px #ff5757 solid !important;
color:#ff5757 !important;

}
.journalbox h2 {
color:#ff7777 !important;
}
.journalbox a {
color:#ff7777 !important;
}
.journalbox a:hover {
color:#fe2828 !important;
}
.journalbox .journalbottom a.commentslink {
color:#ff7777 !important;
}
.journalbox .journalbottom a.prevlink {
color:#ff7777 !important;
}
.journalbox .journalbottom a.commentslink:hover {
color:#fe2828 !important;
}
.journalbox .journalbottom a.prevlink:hover {
color:#fe2828 !important;
}
.journalbox .journalbottom {
background-color:#ffd4a5 !important;
padding-top:4px;
}
.journalbox .journaltop img {
display:none !important;
}

And that worked fine. But then there is the scroll one..and I dunno if I filled it out correctly:

{

div. scrollbox {
background-attachment: scroll;
width:400px;
height:500px;
border-color: #ff7777;
border-style: transparent;
background-position: scroll;
padding: 10px 10px 10px 10px;
margin-top: 1px;
background-color: #ffd4a5;
overflow: auto;


but then, where do I put that into my previous CSS? I'm sorry to be a pain :/

πŸ‘: 0 ⏩: 1

Talei In reply to pinkxfuzziexkitties [2010-01-13 22:56:31 +0000 UTC]

It doesn't matter where in your CSS you place it as long as it isn't in the middle of another class [obviously]

πŸ‘: 0 ⏩: 1

pinkxfuzziexkitties In reply to Talei [2010-01-13 23:38:58 +0000 UTC]

Hmmm... okay. Did I have the CSS for the scroll correct though?

πŸ‘: 0 ⏩: 1

Talei In reply to pinkxfuzziexkitties [2010-02-01 03:17:51 +0000 UTC]

Indeed, if I remember right. Sorry for slow reply I've been away due to my health.

πŸ‘: 0 ⏩: 1

pinkxfuzziexkitties In reply to Talei [2010-02-01 04:22:11 +0000 UTC]

Okay

Aww, no need to apologize. I hope you are feeling better

πŸ‘: 0 ⏩: 0

fantasy-alive [2010-01-08 18:59:35 +0000 UTC]

Thank you so much for sharing this. I knew how to do scrollboxes for a regular website but this helps me understand how to incorporate it into the journal css.

πŸ‘: 0 ⏩: 1

Talei In reply to fantasy-alive [2010-02-01 03:15:06 +0000 UTC]

Glad to help

πŸ‘: 0 ⏩: 0

Nostariel-Nyx [2010-01-05 18:48:05 +0000 UTC]

Thank you for this tutorial :3

πŸ‘: 0 ⏩: 1

Talei In reply to Nostariel-Nyx [2010-01-07 14:50:47 +0000 UTC]

Welcomed

πŸ‘: 0 ⏩: 0

kankansgirl [2010-01-02 02:48:11 +0000 UTC]

Thank you very much for this tut. It helped me a lot. <3

I had some trouble at first, but looking back at some of the comments they helped me out.

Thanks again for this wonderful tut.

πŸ‘: 0 ⏩: 1

Talei In reply to kankansgirl [2010-01-02 20:57:00 +0000 UTC]

I'm so glad it was useful

πŸ‘: 0 ⏩: 0

Keyzumi In reply to ??? [2009-12-22 11:32:23 +0000 UTC]

thank you for made this, but I got a problem. this doesn't work with me D:
the journal says there's an error when I put this in the journal:


CONTENT HERE!

πŸ‘: 0 ⏩: 1

Talei In reply to Keyzumi [2009-12-22 12:03:12 +0000 UTC]

Did you do exactly what the tutorial says? You need to make sure the classes match

πŸ‘: 0 ⏩: 1

Keyzumi In reply to Talei [2009-12-22 18:02:20 +0000 UTC]

I think I did what it says.. or not? xD sorry I'm not sure because I'm not english I didn't understand everything D:

πŸ‘: 0 ⏩: 1

Talei In reply to Keyzumi [2009-12-22 21:03:18 +0000 UTC]

In the CSS the .classname here needs to match the div-classnamehere.

πŸ‘: 0 ⏩: 1

Keyzumi In reply to Talei [2009-12-22 22:36:25 +0000 UTC]

ok! Thank you

πŸ‘: 0 ⏩: 1

Talei In reply to Keyzumi [2009-12-23 11:59:18 +0000 UTC]

No problem

πŸ‘: 0 ⏩: 0

AlmaRyan [2009-11-22 23:20:50 +0000 UTC]

Really awesome tut!! Well done!

πŸ‘: 0 ⏩: 1

Talei In reply to AlmaRyan [2009-11-22 23:41:21 +0000 UTC]

No problem. Glad you like <3

πŸ‘: 0 ⏩: 1

AlmaRyan In reply to Talei [2009-11-22 23:44:22 +0000 UTC]

πŸ‘: 0 ⏩: 0

Roxas-Destiny [2009-11-20 19:01:17 +0000 UTC]

thatΒ΄s really usefull
May i use it?^^

πŸ‘: 0 ⏩: 1

Talei In reply to Roxas-Destiny [2009-11-21 23:59:07 +0000 UTC]

Of course you can! Its why its here! To help others to learn to make scroll boxes!

πŸ‘: 0 ⏩: 1

Roxas-Destiny In reply to Talei [2009-11-22 00:03:06 +0000 UTC]

great ^^ :3

πŸ‘: 0 ⏩: 0

Dashkita In reply to ??? [2009-11-16 15:28:43 +0000 UTC]

thank you so much for the tutorial it's great

πŸ‘: 0 ⏩: 1

Talei In reply to Dashkita [2009-11-21 23:56:37 +0000 UTC]

You're very welcome dear. I'm glad its useful to you. ^_^

πŸ‘: 0 ⏩: 0

leaf-iathan [2009-11-14 15:50:28 +0000 UTC]

awesome, this is very helpful

πŸ‘: 0 ⏩: 1


| Next =>