Skip navigation

Monthly Archives: January 2011

3 column css with fixed left/right and fluid center, no hack. the point of this css is.

  1. the center div is put after left and right div.
  2. float the left and right,
  3. min-width of the center div and wrapper div, don’t use width on the center div and wrapper div
  4. margin-left and margin-right based on left and rigth div’s width, you can use  % too to make it fluid, of course left and right div’s width must be in %  too.
<!DOCTYPE HTML>
<html>
 <head>
 <style>
 #wrapper{
 min-width:960px;
 }
 #wrapper div{
 min-height:500px;
 border:1px solid black;
 }
 #left{
 width:180px;
 float:left;
 }
 #right{
 width:200px;
 float:right;
 }
 #center{
 min-width:570px;
 margin-left:185px;
 margin-right:205px;
 }
 </style>
 </head>
 <body>
 </body>
 <div id="wrapper">
 <div id="left">this is left</div>
 <div id="right">this is right</div>
 <div id="center">this is center</div>asd
 </div>
 </body>
</html>

Edit: Facebook already Fixed this

(sorry for my english)

i didn’t find exact solution for this bug, someone say clear cache or update your chrome. but it didn’t work for me. then i try to remove this code,

FB.Event.subscribe(‘auth.login’, function() {
window.location.reload();
});

it works !! .

i don’t find this auth.login is usefull, coz there iz this code  for auto refresh wher user login.

FB.login(function(response) {
if(response.session)
{
window.location.reload();
}
},{perms:’email,user_birthday,user_hometown,user_location’});

and there is other bug, not about chrome and not really a bug though.  it’s depend on your facebook code structure. it is i can’t log out properly. because i use offline_access permission that make php think user is logged in event user not logged in facebook.

then i just remove offline_access permission.