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.
vicky1
Member
37 Points
370 Posts
How to particular div on the page?
Jan 26, 2013 05:32 AM|LINK
Hi all,
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.
thanks
Afzaal.Ahmad...
Contributor
2759 Points
1060 Posts
Re: How to particular div on the page?
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
div_1 { float: left; } div_2 { float: right; } // This will set the div to float inline. One on left side other on right!Now the thing you need is position. Use
div_1 { position: fixed; } // 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!
~~! FIREWALL !~~
Chintalas
Member
40 Points
16 Posts
Re: How to particular div on the page?
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.
vicky1
Member
37 Points
370 Posts
Re: How to particular div on the page?
Jan 27, 2013 04:44 AM|LINK
Hi sir,
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.
thanks
Afzaal.Ahmad...
Contributor
2759 Points
1060 Posts
Re: How to particular div on the page?
Jan 27, 2013 09:07 AM|LINK
http://www.w3schools.com/cssref/pr_class_position.asp
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.
~~! FIREWALL !~~