https://bugzilla.wikimedia.org/show_bug.cgi?id=41231

--- Comment #20 from TMg <[email protected]> 2012-10-26 01:31:43 UTC ---
I wanted to avoid the big container and found a very nice solution (sorry for
the rapid posts).

.postedit-container { 
    position: fixed;
    left: 50%;
    top: -2%;
    height: 2%;
}
.postedit { 
    position: relative;
    left: -50%;
    top: 200%;
}

The main difference is the height of the container. Now it's 2% instead of
100%. I tried 1% but it seems there is a rounding error in Opera so I avoid it.
2% is pixel perfect. Try it here:
http://de.wikipedia.org/wiki/Special:PermanentLink/109747833

I'm not sure why the container is positioned 2% from the top of the screen.
Isn't it better to use a constant position so it looks the same no matter how
you scale your browser window? In this case it's possible to set the container
height to zero.

.postedit-container { 
    position: fixed;
    left: 50%;
    top: 0;
    height: 0;
}
.postedit { 
    position: relative;
    left: -50%;
    top: 10px;
}

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to