What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » General » Forum & Website » [Firefox] Skins Database Bug

[Firefox] Skins Database Bug
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: [Firefox] Skins Database Bug
A bit of firebugging revealed that the problem is caused by the vertical center hack. Simply put: it doesn't work that way.

Here's a much better vertical center hack, using table styles for IE8/Firefox/Chrome/... and relative positioning for IE6/7. I took the liberty to make it a bit more standards-compliant, but I didn't touch the table for the error message so the default style doesn't need changing.
html code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Messenger Skins &raquo; Search &raquo; KEYWORDS</title>
    <link href="/skins/skins/default/style.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="refresh" content="3; url=/skins/browse/" />
    <style type="text/css">

    html, body {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }

    #outer {
        display: table;
        width: 100%;
        height: 100%;
        overflow: hidden;
        text-align: center;
    }

    #inner {
        display: table-cell;
        vertical-align: middle;
    }

    #message {
        width: 40%;
        margin: 0 auto;
        text-align: center;
    }

    </style>

    <!--[if lt IE 8]>
    <style type="text/css">

    #outer {
        position: relative;
    }
    #inner {
        position: absolute;
        top: 50%;
        left: 50%;
    }
    #message {
        position: relative;
        top: -50%;
        left: -50%;
        margin-top: -3.5em;
        width: 100%;
    }

    </style>
    <![endif]-->
</head>

<body>
    <div id="outer">
        <div id="inner">
            <table id="message" cellpadding="3" cellspacing="0" class="border">
                <tbody>
                    <tr class="sectionheader">
                        <th>Error</th>
                    </tr>
                    <tr>
                        <td>
                            <p>No results were found for "KEYWORDS". Please use the back button and try a different word.</p>
                            <p><a href="/skins/browse/">Click here if you are not redirected automatically.</a></p>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</body>

</html>
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
01-24-2010 09:43 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Firefox] Skins Database Bug - by Chris4 on 01-24-2010 at 02:32 AM
RE: [Firefox] Skins Database Bug - by blessedguy on 01-24-2010 at 02:34 AM
RE: [Firefox] Skins Database Bug - by roflmao456 on 01-24-2010 at 02:48 AM
RE: [Firefox] Skins Database Bug - by Menthix on 01-24-2010 at 02:55 AM
RE: [Firefox] Skins Database Bug - by robert_dll on 01-24-2010 at 02:56 AM
RE: [Firefox] Skins Database Bug - by matty on 01-24-2010 at 03:01 AM
RE: [Firefox] Skins Database Bug - by Chris4 on 01-24-2010 at 03:24 AM
RE: [Firefox] Skins Database Bug - by Menthix on 01-24-2010 at 03:29 AM
RE: [Firefox] Skins Database Bug - by Matti on 01-24-2010 at 09:43 AM
RE: [Firefox] Skins Database Bug - by Menthix on 02-06-2010 at 02:10 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On