HOME | DD

GinkgoWerkstatt β€” .:Code Basics: Scroll Box

Published: 2010-04-11 12:42:32 +0000 UTC; Views: 23333; Favourites: 531; Downloads: 3426
Redirect to original
Description


You need to have a Premium Account or to be a staff member/volunteer to use this


Every now and then it happens that i get asked how to code certain features for journals and similar to that i often see journals where someone struggles with coding from scratch or doesn't exactly know how to do what.
That's why i figured out that it might be helpful to have several very(!) basic code snippets, people can use to get started.

All these code snippets are rather plain code, mostly without any fancy images and much colors. They should just show the start. The possibilities of what can be done with that code are endless.
Also these snippets do not affect the journal in general, they will just add that featured "journal element" and nothing more.

I hope that this will be helpful for some people. To use the code snippets just click install. Everything can be found in the Skin Header or Footer and in the CSS form area.
No additional content code is needed!


Keep in mind that all these code snippets will refer to the gruze-structure, in case special journal classes will be affected by the code.






Have suggestions for more basic codes? Just leave a comment or note me!


Code Basics:
Scrollbox
Topmenu
Sidebar (floating)
Sidebar (absolute)
Mood-List (absolute Position, without any background)
Topmenu (absolute Position)


Planned:
Credit (absolute Position)



Depending on my time, motivation and how useful this will be for people i might add more advanced code snippets later as well.

Related content
Comments: 113

fuushou In reply to ??? [2012-01-07 22:04:21 +0000 UTC]

I love this code!! But I have a question on the little scroll bar to the far right;
I am using a border-radius on the border of my scroll box, but the rounded corners are obscured by the scroll bar...is there any way to shorten and center the scroll bar within the border?
Thank you for your time

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to fuushou [2012-01-08 09:26:10 +0000 UTC]

Hm, the only way would be to have a wrapping box with the round borders. Padding won't help as it does only affect the text here. So best way is to add a simple

SCROLLBOX HERE around the box, add the border-effect to .border and then work out the right spacing with some padding for it as well.

Do you know what i mean?

πŸ‘: 0 ⏩: 1

fuushou In reply to GinkgoWerkstatt [2012-01-08 19:24:05 +0000 UTC]

Oh alright! I will see if that works! Thank you so much!
I think I understand, but any particular place I should put the .border affects? Or does it matter?

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to fuushou [2012-01-08 21:02:09 +0000 UTC]

It doesn't matter where you place it. Just take any spot that works best for you.
If you have problems with it, let me know and i will see what i can do for you

πŸ‘: 0 ⏩: 1

fuushou In reply to GinkgoWerkstatt [2012-01-08 21:52:38 +0000 UTC]

Okay!
Will do Thanks again!

πŸ‘: 0 ⏩: 0

caligis In reply to ??? [2011-10-05 17:26:15 +0000 UTC]

I'm looking for a way to put my journal text in a scrollbox to save some space in my journal... It seems like I would have to change the header portion of the CSS for each new journal with this technique. Is there a better way?

Also, is there a way to use table layouts in journal CSS?

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to caligis [2011-10-05 18:07:56 +0000 UTC]

It was just placed in the header here to have the code automatically installed to the journal, otherwise people would need to add it via copy&paste. So if you don't want it to be part of the Skin Header, then just place it anywhere else. Just keep the HTML tags to wrap around your content.

Tables like you can use for websites are not able to be used on journals. But you can get a similar result with CSS. There is a similar install deviation but for thumbs. If you install that, it shows you how to get a "table-look"

πŸ‘: 0 ⏩: 1

caligis In reply to GinkgoWerkstatt [2011-10-05 19:56:00 +0000 UTC]

Ah, thanks so much!! This was a great help

πŸ‘: 0 ⏩: 0

Meerkatgirl In reply to ??? [2011-05-09 16:16:07 +0000 UTC]

Can you use this more then once in a journal? Say have a scroll box for your journal and then a second scroll box for stamps?

And can it be used for non journal things like the feature to make your whatever-you-want-it-to-be box?

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to Meerkatgirl [2011-05-09 16:40:25 +0000 UTC]

Of course you can do more, but if they should have different characteristics(like different font colors or backgrounds) you need to give them different names. For example like .scrollbox1 and .scrollbox2

No, for the widgets it won't work because the current ability to use CSS there is just a bug and not fully supported.

πŸ‘: 0 ⏩: 1

Meerkatgirl In reply to GinkgoWerkstatt [2011-05-09 17:22:34 +0000 UTC]

Alrighty, Thanks you!

πŸ‘: 0 ⏩: 0

Katy-L-Wood [2011-04-17 18:29:21 +0000 UTC]

Is there a way to change the scroll bar itself? Like, making it rounded, or a different color?

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to Katy-L-Wood [2011-04-17 18:37:51 +0000 UTC]

The way your scrollbar appears depends on the browser you are using. And the only browser that allows to modify it via CSS is the Internet Explorer. It would be the colors only though.

πŸ‘: 0 ⏩: 1

Katy-L-Wood In reply to GinkgoWerkstatt [2011-04-17 18:39:27 +0000 UTC]

Ah. O'well. Thanks.

πŸ‘: 0 ⏩: 0

Dererne In reply to ??? [2011-03-25 20:00:34 +0000 UTC]

Thank you for the code

I have just one question. Does the scroll box work in a custom widget?

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to Dererne [2011-03-26 15:47:30 +0000 UTC]

No, because you are very limited at the profile page. And the CSS feature for custom widgets is more a bug than an actual feature

πŸ‘: 0 ⏩: 1

Dererne In reply to GinkgoWerkstatt [2011-03-26 16:48:05 +0000 UTC]

Ah, I see
Thank you very much for help

πŸ‘: 0 ⏩: 0

Gurinn In reply to ??? [2011-03-12 21:55:46 +0000 UTC]

Is it posible to add a background to it?
Like a picture or a white background?

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to Gurinn [2011-03-16 17:49:17 +0000 UTC]

Yes with the help of the background-property.
You have to add:

background: ...;

to the CSS in the scrollbox class.
And for the ... you either add that white color (#ff/b>f;<) or an image (url(IMAGEPATH);)

πŸ‘: 0 ⏩: 1

Gurinn In reply to GinkgoWerkstatt [2011-04-05 22:22:41 +0000 UTC]

Oh me.. i dont quite understand what does codes mean or where must i place them :<

πŸ‘: 0 ⏩: 0

JalessiaJ In reply to ??? [2011-02-16 00:26:41 +0000 UTC]

Thanks for sharing!

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to JalessiaJ [2011-02-16 09:19:09 +0000 UTC]

My pleasure!

πŸ‘: 0 ⏩: 0

Nemo-TV-Champion In reply to ??? [2011-02-05 15:37:12 +0000 UTC]

I got a question, I'd like a scroll box added to my current journal CSS. How would I add one in?

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to Nemo-TV-Champion [2011-02-05 17:19:57 +0000 UTC]

Install this one and just copy the code from it. It's just the basic code so it will work with any other journal as well

πŸ‘: 0 ⏩: 1

Nemo-TV-Champion In reply to GinkgoWerkstatt [2011-02-05 18:36:15 +0000 UTC]

That's my problem, WHERE would I copy the code into? The header, footer, what?

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to Nemo-TV-Champion [2011-02-05 20:20:20 +0000 UTC]

After installing it, you will find it in the CSS area and in the Skin Header. CSS code goes to the CSS area of your journal and the code of the Skin Header either goes to that again or will be added to the area where you write down your journal content.

πŸ‘: 0 ⏩: 1

Nemo-TV-Champion In reply to GinkgoWerkstatt [2011-02-05 20:34:30 +0000 UTC]

Oh okay, thank you!

πŸ‘: 0 ⏩: 0

zinni In reply to ??? [2010-09-30 18:13:09 +0000 UTC]

awsomwe thanks so much

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to zinni [2010-09-30 19:17:41 +0000 UTC]

My pleasure!

πŸ‘: 0 ⏩: 1

zinni In reply to GinkgoWerkstatt [2010-09-30 19:32:15 +0000 UTC]

^^

πŸ‘: 0 ⏩: 0

barberioX In reply to ??? [2010-09-19 17:53:32 +0000 UTC]

Hi there! I haven't given up on doing some journal CSS.

Mostly I modify existing journal skins if allowed. But sometimes it's hard to find what I need.
Or better: to find the code which is responsible for what I want to change. The gruze code is somehow confusing.
Could you make a snippet where I can see and understand how to implement thumbs (surrounded by a border with hovering effect)?

Thanks in advance.

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to barberioX [2010-09-19 18:58:58 +0000 UTC]

When i worked the first time with gruze i was very confused as well. But once you finally went through it, it's getting better.
Let me know if this was what you were looking for: [link]

It's really just very basic.

πŸ‘: 0 ⏩: 1

barberioX In reply to GinkgoWerkstatt [2010-09-20 03:38:45 +0000 UTC]

Thanks a lot! I have replied at the submission page.

πŸ‘: 0 ⏩: 0

SillyFoe [2010-09-18 20:12:57 +0000 UTC]

I just wanted you to know that I added this code to my journal ^w^ [link]

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to SillyFoe [2010-09-19 07:33:07 +0000 UTC]

πŸ‘: 0 ⏩: 0

FaoladhMoribus In reply to ??? [2010-09-13 16:49:31 +0000 UTC]

can i use this?

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to FaoladhMoribus [2010-09-13 16:58:41 +0000 UTC]

As long as there is some code for download or to install, you can use it
So yes!

πŸ‘: 0 ⏩: 0

NathalieNova In reply to ??? [2010-08-29 18:17:10 +0000 UTC]

hei I want a scrollbar in middle of my journal... or elsewere but not on top... how can I do that?

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to NathalieNova [2010-08-29 18:24:28 +0000 UTC]

I am not really sure if i understand what you mean. A scrollbar can just be at the left side or the bottom of any journal element.

πŸ‘: 0 ⏩: 1

NathalieNova In reply to GinkgoWerkstatt [2010-08-29 18:30:28 +0000 UTC]

and how do I put the scroll bar at bottom? cause If I install it, its everytime at top

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to NathalieNova [2010-08-29 18:36:32 +0000 UTC]

Having a scrollbar at the top is not possible

If you used this code it can only be at the right, no where else.

πŸ‘: 0 ⏩: 1

NathalieNova In reply to GinkgoWerkstatt [2010-08-29 18:52:05 +0000 UTC]

I add it to my css and then I have at top of my journal a long scroll bar :S

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to NathalieNova [2010-08-29 18:57:37 +0000 UTC]

Ich seh gerade du bist aus Deutschland. Hast du das irgendwo zum angucken? Kannst du nen Screenshot machen?
Weil bislang hatte niemand damit Probleme und eigentlich ist das so einfacher Code, dass nix schief gehen kann.

πŸ‘: 0 ⏩: 1

NathalieNova In reply to GinkgoWerkstatt [2010-08-29 19:02:10 +0000 UTC]

[link]
hab ma fix eins gemacht
will nΓ€hmlich das ding etwa inna mitte haben und da meine comic seiten als thumbs reinpacken
so wie jetzt im journal... aber da ist kein scroller bei :S

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to NathalieNova [2010-08-29 19:06:50 +0000 UTC]

Achso, du meinst du willst die Scrollbox nicht oben haben. Die Scrollbar ist nur das Ding zum verschieben

Du musst den Code vom "Skin Header" unter Options auf der Journal Seite komplett ausschneiden und dann an der Stelle einfΓΌgen wo du es haben willst. Dann klappt alles.

πŸ‘: 0 ⏩: 1

NathalieNova In reply to GinkgoWerkstatt [2010-08-29 19:12:19 +0000 UTC]

hat funktioniert OO
ich krieg hier noch n fΓΆn XD
ich arbeite schon fast 3 stunden an dem doofen css XD

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to NathalieNova [2010-08-29 20:04:34 +0000 UTC]

Manchmal sind es kleine Dinge die einen an den Rand des Wahnsinns treiben, ich kenn das

πŸ‘: 0 ⏩: 0

pixiepot In reply to ??? [2010-08-25 06:31:18 +0000 UTC]

WICKED!!!!!

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to pixiepot [2010-08-25 14:01:11 +0000 UTC]

πŸ‘: 0 ⏩: 1

pixiepot In reply to GinkgoWerkstatt [2010-08-25 14:03:33 +0000 UTC]

Its a very cool journal skin!
Read my latest journal if you want to see how I put it to use!

πŸ‘: 0 ⏩: 0


| Next =>