HOME | DD

Valognir — [Custom box code] Wide content

#box #code #content #custom #customization #html #profile #scroll #scrolling #wide #width #scrollbox #contentholder #custombox #widecontent
Published: 2015-03-01 13:45:25 +0000 UTC; Views: 30646; Favourites: 951; Downloads: 0
Redirect to original
Description

[the code disappeared. ohno.]


More customization stuff:

Userstyles and -scripts

Related content
Comments: 534

Valognir In reply to ??? [2016-04-22 10:35:07 +0000 UTC]

It shouldn't be touching the edges. However, if it's still too close, copy the < div class="pppp" > part from the end and just paste it again. I don't recommend doing it too often though, as it will mess with the width on small screens as well.

šŸ‘: 0 ā©: 1

VCR-WOLFE In reply to Valognir [2017-02-07 10:46:53 +0000 UTC]

curious about this, i did this method and it just ends up adding extra padding to the top of the box and stretching the height and pages. is there any way to shorten the width of the content boxes without adding extra space to the top?

šŸ‘: 0 ā©: 1

Valognir In reply to VCR-WOLFE [2017-02-07 11:57:08 +0000 UTC]

Sounds like you have some knowledge on the matter, so allow me to explain it with some technical details~

I have yet to find a class that lets me alter the width without adding to the top or bottom or have other stupid side effects. Coding on dA is weird like that... And then there's compatibility. If I were to find a class with, say, only a padding for left and right - which would be exactly what you're probably looking for - it would make the box rediculously thin on small resolution displays, like mobiles, since I can't really set a minimum width...

So, sorry to disappoint you, but if I ever find a more convenient solution, I'll make sure to update this code!

šŸ‘: 0 ā©: 1

VCR-WOLFE In reply to Valognir [2017-02-07 12:17:40 +0000 UTC]

mm, makes sense to me! thank you for the explanation~

šŸ‘: 0 ā©: 1

Valognir In reply to VCR-WOLFE [2017-02-07 13:27:48 +0000 UTC]

You are very welcome~

šŸ‘: 0 ā©: 0

Kiwi-Ink In reply to ??? [2016-04-18 23:50:40 +0000 UTC]

Does this code still work now? I'm putting it in but nothing but my background appears anywhere. The none background version works fine, but the one with background just puts my background weirdly to the left and no text appears. I may be doing something wrong and can't figure out what...

šŸ‘: 0 ā©: 1

Valognir In reply to Kiwi-Ink [2016-04-19 01:15:18 +0000 UTC]

Hm, that doesn't sound like any problem I have encountered so far. I might have to take a look at it and ask you to reproduce the problem.
Would you mind leaving the non-working code on your page for a view hours until I reply again?

šŸ‘: 0 ā©: 0

mewhaku In reply to ??? [2016-04-07 12:02:55 +0000 UTC]

Any way to not end up with a scroll box for this?Ā 

šŸ‘: 0 ā©: 1

Valognir In reply to mewhaku [2016-04-07 12:52:35 +0000 UTC]

As mentioned in the description, you have to adjust the bold number to fit your content.

šŸ‘: 0 ā©: 1

mewhaku In reply to Valognir [2016-04-07 13:36:53 +0000 UTC]

I fixed it in the meantime!

šŸ‘: 0 ā©: 0

SpaceAcrux In reply to ??? [2016-04-03 20:17:56 +0000 UTC]

Quick question!
where would I put my text?

šŸ‘: 0 ā©: 1

Valognir In reply to SpaceAcrux [2016-04-07 12:51:40 +0000 UTC]

Below the code. ^^

šŸ‘: 0 ā©: 1

SpaceAcrux In reply to Valognir [2016-04-07 18:47:04 +0000 UTC]

Yeah I figured it out.
Thank you though~

šŸ‘: 0 ā©: 0

LeadHeart787 In reply to ??? [2016-04-03 01:25:16 +0000 UTC]

We'd been trying to get a good-looking [AND WORKING] content holder-widener, and this is the one that supremely worked. THANK YOU SO MUCH.

šŸ‘: 0 ā©: 1

Valognir In reply to LeadHeart787 [2016-04-03 08:36:21 +0000 UTC]

You're welcome. And thank you for using it. ^^

šŸ‘: 0 ā©: 0

NummyPixels In reply to ??? [2016-04-02 22:36:00 +0000 UTC]

Whenever I try to use this it turns my whole custom box into a scrolling widget and none of the actual inner/content holder boxes actually get bigger. Is there a way to fix that??

šŸ‘: 0 ā©: 1

Valognir In reply to NummyPixels [2016-04-02 22:47:00 +0000 UTC]

If there is none, I will find one. Mind adding the code so I can check what's causing you trouble?

šŸ‘: 0 ā©: 1

NummyPixels In reply to Valognir [2016-04-02 22:50:31 +0000 UTC]

Ty! And yeah, no problem.

I used this coding:

orig00.deviantart.net/7f6c/f/2… ">

orig12.deviantart.net/c715/f/2… ">




pre11.deviantart.net/9230/th/p… "/>




img01.deviantart.net/0332/i/20… "align="middle"/>

šŸ‘: 0 ā©: 1

Valognir In reply to NummyPixels [2016-04-02 23:00:06 +0000 UTC]

That happens because you use the no background version... and then try to force a background into it anyway. ^^ If you want to use a background image as well as this code, I suggest using the first code that already includes a background image code.

šŸ‘: 0 ā©: 1

NummyPixels In reply to Valognir [2016-04-02 23:00:59 +0000 UTC]

Ohhh

wow lmao I screwed up. XD Sorry for wasting your time.

šŸ‘: 0 ā©: 1

Valognir In reply to NummyPixels [2016-04-02 23:03:27 +0000 UTC]

That's ok. You're welcome.

šŸ‘: 0 ā©: 0

Alexisrules14 In reply to ??? [2016-04-02 21:09:33 +0000 UTC]

someone help me plz!!! ive tried to edit my featured deviantation at least a millions times and nothing works, either the image gets bigger that it cuts off, you can only see half of the image, or just the background and majority of the time the background doesnt stretch to fit the box at all! someone help plz!!!!

šŸ‘: 0 ā©: 1

Valognir In reply to Alexisrules14 [2016-04-02 22:55:08 +0000 UTC]

I'm here to help, but I'd appreciate less exclamation marks... xD
I guess you are having trouble with the image width. If you add an image to a widget using this code, try adding "width=100%" to the img code like this: <img width="100%" src="link">
As for your background problem, you might have to use an image that actually has a fitting size. You could use the above trick, but that will result in your background becoming very short on small resolutions. To get a kind of preview of smaller resolutions, try shrinking your browser window until the content of each box doesn't get smaller. This will be what your page looks like on mobile devices.

šŸ‘: 0 ā©: 1

Alexisrules14 In reply to Valognir [2016-04-02 23:12:59 +0000 UTC]

ooops sorry >w< ive been like stuck on this all week and i want to be able to make my profle pretty before my core membership ends ;w; okay ill try it out!Ā 

šŸ‘: 0 ā©: 1

Valognir In reply to Alexisrules14 [2016-04-02 23:14:40 +0000 UTC]

Good luck.
If it doesn't work, leave the code that causes problems on your page and tell me so I can take a look. ^^

šŸ‘: 0 ā©: 1

Alexisrules14 In reply to Valognir [2016-04-02 23:23:36 +0000 UTC]

it fits but my deviantation is like gone heres the picture of it :Ā 

šŸ‘: 0 ā©: 1

Valognir In reply to Alexisrules14 [2016-04-02 23:35:30 +0000 UTC]

Oh, that's what you mean. Well, for one, you don't just place your background in the conent area. ^^ You will want to use the standard version, right under "Code" and look for the part that I wrote in bold "Your background url here". That's where your background image link goes. Then the box has a background. But I'll probably have to disappoint you. Any background code will overlap the deviation. You can, however, manually add it again by using the img code with a direct link to your deviation.

šŸ‘: 0 ā©: 1

Alexisrules14 In reply to Valognir [2016-04-02 23:53:12 +0000 UTC]

manually? i did put the background image in the " image link" , im not rlly familar with all this coding stuff...i've seen ppl with backgrounds on their featured deviantations so there has to be a way

šŸ‘: 0 ā©: 1

Valognir In reply to Alexisrules14 [2016-04-03 08:35:34 +0000 UTC]

As I said, there is a way, but the picutre which you choose via the widgets options doesn't show. Also, you did not put the background link where it says so in the code. I saw your code... ;D

I'm bad at explaining, so I'll just put the code together for you.

<div class="stream"><div class="popup2-moremenu"><div class="floaty-boat"><img width="1000" src="http://orig02.deviantart.net/9105/f/2016/090/a/3/free_custom_box_background___pink_polka_dots_by_ri_by_sonalover-d9x7b78.png"></div></div><img width="1200" src="http://orig00.deviantart.net/7f6c/f/2016/036/2/3/stretcher_3_by_daemon_illusionum-d9nvsaz.png"><div class="inputblocker blt-ad-container daembed gmfrozen" align="justify"><img width="100%" src="http://orig12.deviantart.net/c715/f/2015/277/2/5/stretcher_by_daemon_illusionum-d9bzcno.png"><div class="pppp" align="center"><img width="80%" src="http://orig01.deviantart.net/0180/f/2016/086/3/c/smokey_lungs_by_alexisrules14-d9wpwzd.jpg">

šŸ‘: 0 ā©: 1

Alexisrules14 In reply to Valognir [2016-04-04 00:16:32 +0000 UTC]

ah its okay, thank you!!!!

šŸ‘: 0 ā©: 0

RedPassion In reply to ??? [2016-03-24 00:52:06 +0000 UTC]

Great code and thanks for sharing it may I ask if there a similar code to make your image as big large as you want it to AND to keep the regular small content boxes though? Do you know what I mean?
I tried that over and over with one of my costum boxes but failed unfortunately XD Any ideas are very welcome and appreciated!

šŸ‘: 0 ā©: 1

Valognir In reply to RedPassion [2016-03-24 09:09:48 +0000 UTC]

The only thing I can come up with would be using the image as a background. Sorry

šŸ‘: 0 ā©: 1

RedPassion In reply to Valognir [2016-03-24 12:34:47 +0000 UTC]

I thought the same already, but it is difficult since the image is a gifĀ 

šŸ‘: 0 ā©: 1

Valognir In reply to RedPassion [2016-03-25 03:05:36 +0000 UTC]

Hm... I'll experiment some with that idea and let you know if I find anything.

šŸ‘: 0 ā©: 1

RedPassion In reply to Valognir [2016-03-25 12:13:58 +0000 UTC]

Oh, that would be awesome!! Thanks a lot dear. Just send me a note then, okay?

šŸ‘: 0 ā©: 1

Valognir In reply to RedPassion [2016-03-25 12:28:26 +0000 UTC]

Alright.

šŸ‘: 0 ā©: 1

RedPassion In reply to Valognir [2016-03-25 13:19:07 +0000 UTC]

Great^^ thx^^

šŸ‘: 0 ā©: 0

pigeon In reply to ??? [2016-03-20 02:21:08 +0000 UTC]

Thanks for this! It really sucks dA made it so the other workarounds don't work anymore - this is a pretty good workout all things considered! I don't mind the tiny custom boxes on most things, but on some things it just looks like crap. You're a lifesaver!

šŸ‘: 0 ā©: 1

Valognir In reply to pigeon [2016-03-20 03:22:16 +0000 UTC]

You're welcome and thanks to you as well. Nice to read some appreciated inbetween all the "It doesn't work!!1!!"

šŸ‘: 0 ā©: 1

pigeon In reply to Valognir [2016-03-20 03:39:36 +0000 UTC]

Nah, it works! The only downside is what one other commenter said about the resizing of the windows - background images don't move fluidly with it and it can leave a gap in the widget towards the bottom. But there's nothing you can do about that. I hope dA will update things again so we can get a much simpler fix like in the past!

šŸ‘: 0 ā©: 1

Valognir In reply to pigeon [2016-03-22 07:57:31 +0000 UTC]

I changed a little something in the code so the background image won't adjust to 100% width. That should kind of fix the problem.

šŸ‘: 0 ā©: 0

disqette In reply to ??? [2016-03-13 04:54:54 +0000 UTC]

aaaa this code no longer works as of today >_<;;

šŸ‘: 0 ā©: 1

Valognir In reply to disqette [2016-03-13 12:51:26 +0000 UTC]

This exact code still works fine for me, as tested on Firefox and Google Chrome.
Check if it also affects my profile or just your own. If both are affected, what kind of device and browser are you using? If it's only yours, can you provide a screenshot of the problem?

šŸ‘: 0 ā©: 1

disqette In reply to Valognir [2016-03-13 20:14:49 +0000 UTC]

i.gyazo.com/845bfc4f6c23516477…
i.gyazo.com/4d46736e1cc2bf1964…

Your page looks fine, and I haven't changed the code since the last time there was an update to it >_< This just happened yesterday. I'm on Chrome.Ā 

šŸ‘: 0 ā©: 1

Valognir In reply to disqette [2016-03-13 21:02:17 +0000 UTC]

Hm, you seem to be using an outdated stretcher. Using the latest code should fix your problem.

šŸ‘: 0 ā©: 1

disqette In reply to Valognir [2016-03-13 21:23:34 +0000 UTC]

Okay, thank you ^^

šŸ‘: 0 ā©: 0

pinkuo In reply to ??? [2016-03-02 18:52:57 +0000 UTC]

I'm really confused ;v;

šŸ‘: 0 ā©: 1

Valognir In reply to pinkuo [2016-03-03 09:14:43 +0000 UTC]

You will have to provide some kind of information if you would like me to help you. ._.

šŸ‘: 0 ā©: 0

glitcher In reply to ??? [2016-02-19 14:32:11 +0000 UTC]

It's not bad, but I'm seeing a problem with this already. The "img width" value (i.e. box height) only works for one specific browser window size. A box height that looks perfect on a large window will have a lot of empty space underneath in a small window. See this example:



The width of the image in the center is scaled to 90% of the box width. However, the box height doesn't adjust to the window size, so you end up with a lot of empty space underneath, regardless of whether you set the "img width" value in pixels or percent. How do I fix this so that the box height ends after the content?

šŸ‘: 0 ā©: 1

Valognir In reply to glitcher [2016-02-19 22:08:05 +0000 UTC]

Sadly, there currently is no solution to that problem.
The coding deviantart allows is extremely limited. And as they "disabled" the old way to stretch custom boxes, this became the only somewhat reliable solution I could find. I'm sorry.

šŸ‘: 0 ā©: 1


<= Prev | | Next =>