This is the version I have now... Looks good with both Chrome and IE with constant 1 pixel padding...
Index: cgi-bin/yabb2/Sources/PostBox.pm
===================================================================
--- cgi-bin/yabb2/Sources/PostBox.pm (revision 1550)
+++ cgi-bin/yabb2/Sources/PostBox.pm (working copy)
@@ -66,21 +66,20 @@
( $boxlist1, $boxlist1_w ) = ubbc_boxlist(%boxlist1);
( $textdecor, $textdecor_w ) = ubbc_boxlist(%textdecor);
( $txtalgn, $txtalgn_w ) = ubbc_boxlist(%txtalgn);
- $fntcolor_w = 91;
+ $fntcolor_w = 93;
$font_w = $boxlist1_w - ( $textdecor_w + $txtalgn_w + $fntcolor_w );
$ubbc_box_w = $boxlist1_w + $mods_w;
- $px = 'px';
- $box = qq~ <div style="float:left; width:$ubbc_box_w$px">
- <div style="float:right; width:$mods_w$px">
+ $box = qq~ <div style="float:left; width:${ubbc_box_w}px">
+ <div style="float:right; width:${mods_w}px">
$mods
</div>
- <div style="float:left; width:$boxlist1_w$px">
+ <div style="float:left; width:${boxlist1_w}px">
$boxlist1
<br /></div>
- <div style="float:left; width:$textdecor_w$px">
+ <div style="float:left; width:${textdecor_w}px">
$textdecor
</div>
- <div style="float:left; text-align:center; width:$font_w$px">
+ <div style="float:left; text-align:center; width:${font_w}px">
<select name="fontface" id="fontface" onchange="if(this.options[this.selectedIndex].value) fontfce(this.options[this.selectedIndex].value);">
<option value="Verdana">Verdana</option>
<option value="">-\\-\\-\\-\\-\\-\\-\\-\\-</option>
@@ -132,7 +131,7 @@
if(thistask == "templ") previewColor(newcolor);
}
</script>
- <div style="float:left; height:22px; width:$fntcolor_w$px">
+ <div style="float:left; height:22px; width:${fntcolor_w}px">
<div class="palettebox">
<span class="deftpal" style="background-color: #000000;" onclick="ConvShowcolor('#000000')"> </span>
<span class="deftpal" style="background-color: #333333;" onclick="ConvShowcolor('#333333')"> </span>
@@ -147,11 +146,11 @@
<span id="defaultpal5" class="deftpal" style="background-color: $pallist[4];" onclick="ConvShowcolor(this.style.backgroundColor)"> </span>
<span id="defaultpal6" class="deftpal" style="background-color: $pallist[5];" onclick="ConvShowcolor(this.style.backgroundColor)"> </span>
</div>
- <div style="float:right; height:22px; padding-left: 1px; width: 23px;">
+ <div style="float:right; height:22px; padding-left: 1px; padding-right: 1px; width: 23px;">
<span class="ubbcbutton" style="background-image: url($imagesdir/UBBC/$ubbcbak);"><img src="$imagesdir/UBBC/palette1.png" class="cursor" onclick="window.open('$scripturl?action=palette;task=post', '', 'height=308,width=302,menubar=no,toolbar=no,scrollbars=no')" alt="" /></span>
</div>
</div>
- <div style="float:left; width:$txtalgn_w$px">
+ <div style="float:left; width:${txtalgn_w}px">
$txtalgn
</div>
</div>
@@ -912,7 +911,7 @@
$boxlist .= qq~<span class="ubbcbutton" style="background-image: url($imagesdir/UBBC/$ubbcbak);"><img src='$imagesdir/UBBC/$img' onclick='$click;' $hand alt='$alt' title='$alt' /></span>\n~;
$w++
}
- $boxlist_w = $w * 23;
+ $boxlist_w = $w * 24;
return ($boxlist, $boxlist_w);
}
@@ -933,7 +932,7 @@
else {
$mod_w = 1 + int $w/2;
}
- $boxlist_w = $mod_w * 23;
+ $boxlist_w = $mod_w * 24;
return ($boxlist, $boxlist_w);
}
Index: public_html/yabbfiles/Templates/Forum/default.css
===================================================================
--- public_html/yabbfiles/Templates/Forum/default.css (revision 1550)
+++ public_html/yabbfiles/Templates/Forum/default.css (working copy)
@@ -1293,7 +1293,7 @@
height: 22px;
width: 23px;
border: 0;
- margin: 0 -2px;
+ margin: 0 1px 1px 0;
background-position: top right;
background-repeat: no-repeat;
text-decoration: none;
@@ -1300,6 +1300,7 @@
font-size: 18px;
vertical-align: top;
display: inline-block;
+ float: left;
}
.tt { font-family: Courier, monospace; }