Jamol
Jamol

Reputation: 3908

float absolute positined div right

I have the following elements:

<div>

<div class="top">       
</div>

<div class="content">       
</div>

</div>

I want both child divs to be flaot right and positioned absolute so they overlay other elements. What is the best way to do it?

Upvotes: 0

Views: 1091

Answers (2)

Arpit Srivastava
Arpit Srivastava

Reputation: 2235

In both div add CSS

right:10px; and position:absolute

Upvotes: 1

Hayk Martiros
Hayk Martiros

Reputation: 2186

Not very clear what you want to do, but here's an example to get you started if you want absolute positioning to the right:

http://jsfiddle.net/b2yD9/

Upvotes: 1

Related Questions