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

[HELP] CSS is Driving Me Nuts... :-/

1454194208

Edited 1454202216
Finderski
Plus
Sheet Author
Compendium Curator
So, here's my HTML: <div class='sheet-col sheet-red' style='width: 400px; padding: 5px; border-radius: 10px; font-weight: bold; font-size: 2em; margin-top: -10px;'> Combat Stats<br /> <div class='sheet-row' style='width: 398px; margin-top: 3px; background-color: white; border: none;'> <div class='sheet-row' style='width: 100%; padding: 5px; vertical-align: top;'> <div class='sheet-combatstat' style='width:198px; text-align: left; height: 85px;'> Mode 1: <input type='text' name='attr_mode1' style="width:145px; border: none; color: #801421;" /><br /> <span style="color: black;">Affinity: </span><input type="text" name="attr_affinity1" style="width:150px; border: none; color: black;"/><br /> <textarea name="attr_modedesc1" placeholder="description" style="width: 95%; color: black; border: none; height:25px;"></textarea> </div> <div class='sheet-combatstat' style='width:50px; margin-left: -7px; height: 85px;'> ROLL<br /> <input type="number" style="border: none; font-size: 2em; color: black; font-weight: bold; width:47px; height: 68px;" name="attr_roll1" /> </div> <div class='sheet-combatstat' style='width:45px; margin-left: -7px; height: 85px;'> DX<br /> <input type="number" style="border: none; font-size: 2em; color: black; font-weight: bold; width:43px; height: 68px;" name="attr_dx1" /> </div> <div class='sheet-combatstat' style='width:50px; margin-left: -7px; border-right: none; height: 85px;'> END<br /> <input type="number" style="border: none; font-size: 2em; color: black; font-weight: bold; width:47px; height: 68px;" name="attr_end1" /> </div> </div> </div> </div> Here's the CSS: .charsheet .sheet-combatstat { display: inline-block; background-color: white; color: #801421; border: 1px solid #801421; border-top: none; border-left: none; padding: 5px; margin: 0px; font-size: .5em; font-weight: normal; text-align: center; } And here's what it's doing: Why the heck are the Roll, Dx and End divs lower than the first?  When I was setting the divs up with nothing in them, they all aligned perfectly. Now...not so much. :-/ I've even tried doing a margin-top: -10px; to get those pesky divs to move higher, but that doesn't work, either.
1454195266

Edited 1454195283
vÍnce
Pro
Sheet Author
Try adding vertical-align:top on your css class ".charsheet .sheet-combatstat"
1454196950
Finderski
Plus
Sheet Author
Compendium Curator
Vince said: Try adding vertical-align:top on your css class ".charsheet .sheet-combatstat" I'd tried that, it didn't work. :(
1454197650

Edited 1454197830
vÍnce
Pro
Sheet Author
Not sure GV... it seems to work for me  (Obviously I'm missing the rest of your css, so it may be some other css interfering...?)
1454199691
Finderski
Plus
Sheet Author
Compendium Curator
Vince said: Not sure GV... it seems to work for me  (Obviously I'm missing the rest of your css, so it may be some other css interfering...?) Grrr...stupid misspelled property... It's fixed now. Thanks Vince. :)
1454200182
vÍnce
Pro
Sheet Author
Cool.  Keep up he awesome work GV.  I need to steal some more code.  ;-P