Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Roll Template: div's disappearing/reappearing

I've styled my roll template to resemble torn pieces of paper. I used div backgrounds at the top and bottom of the template to give it the tears. To help sell the aesthetic I also gave the whole thing a subtle tilt. That tilt is causing me a weird issue where the top and bottom divs disappear and reappear. I think its an issue with the way Roll20's Chat bar handles it's messages and the rotate template 'clipping' it. Has anyone encountered this before, maybe figured out a work around? Here the roll template in case anyone wants to recreate the effect. .sheet-rolltemplate-core { } .sheet-rolltemplate-core .sheet-scraps_1 { filter: drop-shadow(0px 5px 10px black); overflow: visible; transform: rotate(1deg); } .sheet-rolltemplate-core .sheet-scraps_1_body { background: #fdfef9; padding: 6px; } .sheet-rolltemplate-core .sheet-scraps_1_top { background-image: url("<a href="https://i.imgur.com/awHCJ8P.png" rel="nofollow">https://i.imgur.com/awHCJ8P.png</a>"); background-repeat: repeat-x; background-position: center; height: 30px; width: 100%; } .sheet-rolltemplate-core .sheet-scraps_1_bottom { background-image: url("<a href="https://i.imgur.com/fdTFQ9k.png" rel="nofollow">https://i.imgur.com/fdTFQ9k.png</a>"); background-repeat: repeat-x; background-position: center; height: 30px; width: 100%; } &lt;rolltemplate&gt; &lt;div&gt; &lt;div&gt;&lt;/div&gt; &lt;div&gt; Blah blah blah. &lt;/div&gt; &lt;div class="scraps_1_bottom&gt;&lt;/div&gt; &lt;/div&gt; &lt;/rolltemplate&gt;
I vaguely recall that you should not use divs in roll templates, but I cannot find a reference for it. I do note that the example roll templates in the wiki only use tables and spans (<a href="https://wiki.roll20.net/Roll_Templates#Styling_Roll_Templates" rel="nofollow">https://wiki.roll20.net/Roll_Templates#Styling_Roll_Templates</a>).