diff --git a/decode.py b/decode.py
index f6fb249..cecce9d 100755
--- a/decode.py
+++ b/decode.py
@@ -69,9 +69,9 @@ def main(fname, oname = None, verbose = True, encoding = 'std',
namestr = ''
if for_html:
if code:
- namestr = ('
')
+ namestr = ('\n')
else:
namestr = '' + truename + ': ' + str(dist) + '
'
elif for_forum:
@@ -116,6 +116,8 @@ def main(fname, oname = None, verbose = True, encoding = 'std',
nearest = card.nearest_cards
for dist, cardname in nearest:
cstring += hoverimg(cardname, dist, namediff)
+ if for_html:
+ cstring += "
\n"
cstring += '~~ closest names ~~\n'
if for_html:
cstring += "
\n"
@@ -123,7 +125,7 @@ def main(fname, oname = None, verbose = True, encoding = 'std',
for dist, cardname in nearest:
cstring += hoverimg(cardname, dist, namediff)
if for_html:
- cstring = '
' + cstring.replace('\n', '
\n') + '
\n'
+ cstring = '
' + cstring + '
\n'
elif for_mse:
cstring = ('\n\n' + cstring[:-1]).replace('\n', '\n\t\t')
diff --git a/lib/cardlib.py b/lib/cardlib.py
index 5dc5a0c..8a8b881 100644
--- a/lib/cardlib.py
+++ b/lib/cardlib.py
@@ -745,9 +745,9 @@ class Card:
if for_html and for_forum:
#force for_html to false to create tootip with forum spoiler
- outstr += ('')
outstr += linebreak
diff --git a/lib/html_extra_data.py b/lib/html_extra_data.py
index 60a3673..cb22334 100644
--- a/lib/html_extra_data.py
+++ b/lib/html_extra_data.py
@@ -11,8 +11,7 @@ html_prepend = """
}
div.hover_img {
position: relative;
- left: 45%;
- display:inline;
+ display:inline-block;
}
.hover_img a {
position: relative;
@@ -23,18 +22,16 @@ html_prepend = """
display: none;
z-index: 99;
}
- .hover_img span:hover {
- display:block;
+ .hover_img:hover span {
+ display:inline-block;
}
.hover_img span p {
+ padding: 10px;
width:250px;
background:#FFFF99;
}
- .hover_img a:hover span {
- display: block;
- }
.hover_img img {
height: 445px;
width: 312px;