Question: I need to make a custom code which will help me to find location of a particular IP entered through a text box. 
When I searched the internet what I found is only providing automatic detection of IP and it's location. Please help me.

Answer: 
Here you go.
<http://jsfiddle.net/GLjND/3/> (the yellow background is just so you can see the new div)

Just give the divs

```
display: table-cell

```

and you're done.
When you are using float property, i recommend you to set overflow:hidden to the parent div

```
#wrapper{
   overflow:hidden;
}

```

And for the #second u have set the height to 100%, for this to work u should fix an height for the parent div

```
  #wrapper{
   height:400px;
}

```

Here is the [Jsfiddle](http://jsfiddle.net/zan9X/5/)
Hope this will a good solution and will be more informative