CSS:
html,body {margin: 0; padding: 0; height: 100%;}
#outer {height: 100%; width: 100%; overflow: hidden; position: relative; display: block;}
#outer[id] {display: table; position: static;}
#middle {position: absolute; top: 50%; display: block; width: 100%; text-align: center;} /* for explorer only*/
#middle[id] {display: table-cell; vertical-align: middle; position: static;}
#inner {position: relative; top: -50%;} /* for explorer only */
#inner[id] {position: static;} /* optional */
xHTML:
<div id="outer">
<div id="middle">
<div id="inner">
<img src="." alt="some alt"/>
<p>some text</p>
</div>
</div>
</div>
IE works very strange to clear: both;. Well, it works but sometimes you can see lost background for some other container (minimize->maximize and it’s back; or resize IE window several times) or some color’s behavior is strange.
Best cure: use position: relative; for those containers, or even use this kind of directive for all blocks (except absolute obviously). I know it is default setting but it’s true, it helps.
Some guys created project and uploaded it to server.
Their dev. server has register_globals: On.
Production server has register_globals: Off.
Good start, isn’t it?
Thanks to one of my friends for his help with this small script (put it just after session_start())
if (count($_REQUEST) > 0) {
foreach ($_REQUEST as $key => $value) {
if (is_array($_REQUEST[$key])) {
foreach ($_REQUEST[$key] as $key2 => $value) {
${$key}[$key2] = trim($value);
}
} else {
${$key} = trim($value);
}
}
}
And enjoy your beer.
Got an error at Paypal for subscription payments:
The link you have used to enter the PayPal system is invalid. Please review the link and try again.
Reason: variable srt (subscription Length, monthes) was too big (120). Changed it to 12 and everything works fine.
designcollector – nice set of good designer studios links.
It’s show time 🙂
Attn: ru!

Recent Comments