Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

div positioning

Status
Not open for further replies.

spicymango

Programmer
May 25, 2008
119
0
0
CA
Hi,

suppose I have text "My address" on my html page. This text appears sometime at 450 from the top sometime 200 from top.

I want a div statement to cover that text when someone click on a button.

How can I position my div so that it cover text no matter where it appears o the page.

I can not make position absoulete because my text keeps changing its position.

 
By cover, do you mean hide from view? If that is so, why not make it hidden or not display it, instead of trying to put another element over it? You can even change background or put an image, if you want a true effect of covering.

[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top