Resolve floating problem in CSS
Set float option for DIV tag is my favorite substitute for old tables and I use them every day in my projects.
I noticed that there is a problem with the height of the DIV after set it's float option, in some browsers like IE, child DIV with floating on can grow more than it's parent, and you should set the parent height, and if your child DIV need to grow, it cause some problems to tackle with it.
Finally I found a fix for it and here is an example of it, you just need to add a another child with no floating option and leave it empty, to do this use this css:
.floatfix
{
clear: both;
}
<style type="text/css">
.clearfloat
{
clear: both;
}
.rFloat
{
float: right;
}
.lFloat
{
float: left;
}
</style>
<div>
<div class="rFloat">
<!--somthing-->
</div>
<div class="lFloat">
<!--somthing-->
</div>
<div class="clearfloat">
</div>
</div>
Friday, August 19, 2011
Configure a Domain - GoDaddy
Very good tutorial to config a godaddy domain to use the IP base server instead of a DNS name server
link
Sunday, April 03, 2011
Online Banner Generator
Wednesday, October 20, 2010
After long time
After long time, I'm trying to update my web site and for first step I changed the template and code behind to make it more interesting for me to update it, hope it works.
Saturday, July 24, 2010
HTC G-Sensor Config
I wrote this application to add rotation support for any application you like using HTC GSensor.
It works with my HD and tested on HD2
change log
ver. 1.1:
- Configurable registry key (you can change it in Config.txt file)
* Please uninstall last version before install new one.
Xda-developers link
Saturday, April 17, 2010
Navigation :
Categories :