Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 27, 2013 09:07 AM by Afzaal.Ahmad.Zeeshan
Jan 26, 2013 05:32 AM|LINK
Hope doing well,
sir i am having two div id is div1 and div2.
in div1 i have taken some textbox and buttons.
div2 has also the same controls. and it is visible false.
when page is loading div1 is showing on full page and div1 has one linkbutton. when click on linkbutton it's making div2 visible true.
but when it's visible true it's showing in down of div1.
but i want that it should show just like div1 and div1 should be above of div2 when i scroll then div1 should show.
just like example of gmail when you open any inbox page and going to that page clicking on reply button reply form is populating as main and page is just above of that. when you;re scrolling then page is showing.
the same i need. if any question plz let me know.
Jan 26, 2013 12:30 PM|LINK
Ummm I guess you need to use float, float will let you set the placement of that div like
// This will set the div to float inline. One on left side other on right!
Now the thing you need is position. Use
// Position fixed is used to set the position of some div. To flow above the elements.
You can make the div fly over the other div with this code. Just make it position fixed!
Jan 26, 2013 05:30 PM|LINK
Keep the Position of Div1 Fixed and then make the Div2 Position above and make it visible true.
Jan 27, 2013 04:44 AM|LINK
as per your suggestion i have made a css class there i used position:fixed;
but it's telling fixed is not a property of position. and how to used other css class to make div2 position up?
could you help me.
Jan 27, 2013 09:07 AM|LINK
You can check the upper link to make sure that fixed is a property of position.
I have used it too.
You can see in the link that you will be able to make the divs float over one another.