HOME | DD

GinkgoWerkstatt β€” Code Basics: Sidebar- Floating

Published: 2010-04-11 13:05:17 +0000 UTC; Views: 9959; Favourites: 422; Downloads: 884
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.







This code has additional information in the CSS code with explanation of how to move the sidebar to the right side.


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: 32

Forty-Fathoms [2014-03-07 07:55:33 +0000 UTC]

I don't think this is working anymore (lucky me, just when I really need it). I used it a couple months ago and now it's not working. I'm using the same code and everything but it's just keeping everything all lined up and not floating. Even the line separating the sidebar from the regular wall of text has disappeared. Did this change with dA's ridiculous obsession with making everyone changing good-working codes all the time?

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to Forty-Fathoms [2014-03-07 08:22:22 +0000 UTC]

Just installed it and had no problems. Worked right away. Maybe try to re-install it? Perhabs you have changed something by accident?
If re-installing doesn't help, send me the code you have used and i will take a look at it.

πŸ‘: 0 ⏩: 1

Forty-Fathoms In reply to GinkgoWerkstatt [2014-03-07 10:03:06 +0000 UTC]

For some reason it didn't install properly. Re-installing fixed the issue! Thanks!

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to Forty-Fathoms [2014-03-07 12:14:21 +0000 UTC]

Awesome!

πŸ‘: 0 ⏩: 0

AntonMoscowsky [2012-10-22 20:21:42 +0000 UTC]

Thank you so much! I am working on my own skin, your stuff helps a lot. Have a question: do you know how to make title field for sidebar? (with own font options and background)

πŸ‘: 0 ⏩: 2

GinkgoWerkstatt In reply to AntonMoscowsky [2012-10-24 17:03:19 +0000 UTC]

That's good to hear

You can easily do it with

Your Headline

within your sidebar and then you create .headline in the CSS area and apply colors, backgrounds etc.
And if i am right you can use the h-tags (h1, h2, h3 etc) which are the regular headlines these days in journals as well. So you would only need

Your headline

which shortens the HTML code a bit.

πŸ‘: 0 ⏩: 1

AntonMoscowsky In reply to GinkgoWerkstatt [2012-10-24 17:37:06 +0000 UTC]

πŸ‘: 0 ⏩: 0

AntonMoscowsky In reply to AntonMoscowsky [2012-10-23 12:31:57 +0000 UTC]

Oh, already find it out!

πŸ‘: 0 ⏩: 0

BlueLeviathan22 [2012-07-25 22:40:41 +0000 UTC]

Hi just a quick question. How would I go about making two sidebars? Thanks.

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to BlueLeviathan22 [2012-07-26 13:13:45 +0000 UTC]

You have to duplicate the CSS code but rename the bits... like .scrollbar and .scrollbar2 - to be able to let the browser differ between them. And then you need to change the spacing-values for one of them-

πŸ‘: 0 ⏩: 0

cherryclover [2011-06-02 21:14:58 +0000 UTC]

can I use it?

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to cherryclover [2011-06-03 06:32:45 +0000 UTC]

Sure

πŸ‘: 0 ⏩: 1

cherryclover In reply to GinkgoWerkstatt [2011-06-03 20:52:37 +0000 UTC]

thankies!

πŸ‘: 0 ⏩: 0

Alianna013 [2011-02-23 01:22:51 +0000 UTC]

Would you mind explaning how to change the background so that I have an image in the backgrownd behind and around the text? I have looked at tutorials and I have not understood them at all.

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to Alianna013 [2011-02-23 18:53:44 +0000 UTC]

If you want to use a background image somewhere you always have to use background: url(URL OF THE IMAGE);
That is the basic settings. If the image shouldn't repeat then it looks like background: url (URL OF THE IMAGE) no-repeat;

You can also add information if the image should be placed at the top, in the center or at the bottom (right after the no-repeat or the URL.

So if you want to add a background to the sidebar at the top left and the class name is .sidebar it would look like this:
.sidebar{
background: url(URL OF THE IMAGE) top left no-repeat;}

Does that help? If not, maybe look up [link] additionally

πŸ‘: 0 ⏩: 1

Alianna013 In reply to GinkgoWerkstatt [2011-02-23 20:30:05 +0000 UTC]

Yes it does thank you. :3

πŸ‘: 0 ⏩: 0

TYCUS [2010-09-28 17:45:49 +0000 UTC]

you are more than awsome and im more than thankful for all this tutorials and codes resourse.

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to TYCUS [2010-09-29 14:18:34 +0000 UTC]

Aww, that's kind of you to say. thank you!

πŸ‘: 0 ⏩: 0

Erikari [2010-05-11 12:49:26 +0000 UTC]

You did a great thing!!
I think I'll try to use them somehow, thank you so much!^^

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to Erikari [2010-05-11 13:17:23 +0000 UTC]

Thank you! And good luck with it

πŸ‘: 0 ⏩: 0

Kjherstin [2010-04-20 22:36:07 +0000 UTC]

This is a great idea

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to Kjherstin [2010-04-21 18:51:19 +0000 UTC]

And i hope that it is useful for people, so that i don't have to answer the same questions again and again.

πŸ‘: 0 ⏩: 1

Kjherstin In reply to GinkgoWerkstatt [2010-04-21 20:19:23 +0000 UTC]

πŸ‘: 0 ⏩: 0

PatrickRuegheimer [2010-04-12 16:47:40 +0000 UTC]


If you want to have the sidebar at the left side:
- change float:left of .sidebar to float: right

Da hast du einen Fehler.

Ansonsten genial.

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to PatrickRuegheimer [2010-04-12 17:26:16 +0000 UTC]

Shit kann ich nimmer Γ€ndern, weils im CSS ist

Naja, vllt ΓΌbersehen die Leute das ja

πŸ‘: 0 ⏩: 1

PatrickRuegheimer In reply to GinkgoWerkstatt [2010-04-12 17:28:26 +0000 UTC]

Ich seh alles.
Tut mir leid.

Ja, man versteht es schon.

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to PatrickRuegheimer [2010-04-12 17:47:30 +0000 UTC]

Ich hatte das vom anderen kopiert und das wohl ΓΌbersehen

πŸ‘: 0 ⏩: 1

PatrickRuegheimer In reply to GinkgoWerkstatt [2010-04-12 18:04:14 +0000 UTC]

πŸ‘: 0 ⏩: 0

gillianivyart [2010-04-11 19:55:02 +0000 UTC]

Very lovely, all of these. Especially for n00by coders like myself to learn from. ;D

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to gillianivyart [2010-04-12 17:26:48 +0000 UTC]

Especially made for people that want to have some basics to play around with. Might be easier at first, than coding from scratch

πŸ‘: 0 ⏩: 0

xDania [2010-04-11 17:12:26 +0000 UTC]


Thank you!

πŸ‘: 0 ⏩: 1

GinkgoWerkstatt In reply to xDania [2010-04-11 17:53:45 +0000 UTC]

πŸ‘: 0 ⏩: 0