Spellbook and Character stats

Theme, template, layout, or image issues

Spellbook and Character stats

Postby dracula » Wed Dec 27, 2006 8:22 pm

Tested with 1.7.2, but it also applies to 1.7.1, therefore posted outside the Beta forum.

In the spellbook, the text is displayed on top of the icons:
Image

It seems this can be fixed by applying the following changes to "style.css":
Code: Select all
    Line ~2350: Remove line "position:absolute"
    Line 2360: Insert line "margin-left:4px"

Like that, it shows exactly the same in Opera, Firefox, IE6 and IE7.

In the character stats window, the numbers are shifted up:
Image

I have yet been unable to solve this entirely. The following change to "style.css" makes it work perfectly in Opera:
Code: Select all
    Line 1542: Remove line "margin-top:-15px"

But the text is then shifted down in IE. That line obviously was there for a reason ;)

It is also possible to 'comment' that line (by preceding the line with double dash "--"), so Opera will indeed skip it, but IE doesn't understand that and will use the margin-top anyway (which is intended).
Code: Select all
    Line 1542: Comment it with double dash: "-- margin-top:-15px"

However, then Firefox spoils it by displaying it completely wrong.

I have no idea what browser is doing it 'right', but this shift of -15px feels hackish to me anyway ;)
Last edited by dracula on Wed Dec 27, 2006 8:24 pm, edited 1 time in total.
dracula
WR.net Apprentice
WR.net Apprentice
 
Posts: 10
Joined: Fri Dec 01, 2006 5:01 pm
Location: The Netherlands

Spellbook and Character stats

Postby zanix » Thu Dec 28, 2006 1:15 am

Yes, it is very hackish

I'll install Opera and see what I can do
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Spellbook and Character stats

Postby PleegWat » Thu Dec 28, 2006 6:22 am

I'm not sure about the spellbook one, but I suspect the negative top margin for the character pane are indeed there to make it show correctly in IE.

I think there's a reason that, when sniffing in the code of big sites, you often encounter a special CSS file that is only loaded in IE.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm


Return to Appearance

Who is online

Users browsing this forum: No registered users and 0 guests

cron