layer

V

Vinnie

if on a page i have a layer, and i want to anchor it at the bottom,
how could i do that? (Asp.net 2.0 C#).

Thanks

Vinnie
 
M

Mark Rae [MVP]

if on a page i have a layer, and i want to anchor it at the bottom,
how could i do that? (Asp.net 2.0 C#).

style="position:absolute;bottom:0px;"
 
V

Vinnie

style="position:absolute;bottom:0px;"


hi Mark, thanks for your help, but the problem persist: i have on the
masterpage 2 layers: one at the bottom (called footer) and one in the
middle in which i have inserted the contentplaceholder.

Now, on the masterpage the footer stays at the bottom (after adding
style="position:absolute;bottom:0px;") but on the child page, if i
place 2 big images in the contentplaceholder, it happens that the
images go underneath the footer layer extending the page, while the
footer remains at it initial position, meaning that the footer does
not stay always at the bottom.

what else i could do?

Thanks
Vinnie
 
M

Mark Rae [MVP]

hi Mark, thanks for your help, but the problem persist: i have on the
masterpage 2 layers: one at the bottom (called footer) and one in the
middle in which i have inserted the contentplaceholder.

Now, on the masterpage the footer stays at the bottom (after adding
style="position:absolute;bottom:0px;") but on the child page, if i
place 2 big images in the contentplaceholder, it happens that the
images go underneath the footer layer extending the page, while the
footer remains at it initial position, meaning that the footer does
not stay always at the bottom.

what else i could do?

That's correct behaviour based on what you originally posted - no mention of
MasterPages or large images in your original post...

The inline style I gave you will position a DOM object at the bottom of the
screen, because that's what you asked for - if there is content on the page
which scrolls beyond the bottom of the screen, the DOM object in question
will still stay at the bottom of the screen...

Can you please clarify what you actually want...
 
V

Vinnie

That's correct behaviour based on what you originally posted - no mention of
MasterPages or large images in your original post...

The inline style I gave you will position a DOM object at the bottom of the
screen, because that's what you asked for - if there is content on the page
which scrolls beyond the bottom of the screen, the DOM object in question
will still stay at the bottom of the screen...

Can you please clarify what you actually want...

hi Mark, thanks for your great help, and sorry for not being more
specific, i'm at the very beginning, just learning.

What i need, is to put something at the very bottom of the page, to
write the common stuffs like: Copyrights......... bla bla bla

thanks
Vinnie
 
M

Mark Rae [MVP]

hi Mark, thanks for your great help, and sorry for not being more
specific, i'm at the very beginning, just learning.

No problem.
What i need, is to put something at the very bottom of the page, to
write the common stuffs like: Copyrights......... bla bla bla

Yes, but you need to decide whether you mean the bottom of the *page* or the
bottom of the *screen*...

The inline style I gave you will position the element to which it is applied
at the bottom of the *screen*, no matter what else might be on the *page* -
that's the function of the position:absolute; bit...

If you mean the bottom of the page, then you don't really need any
particular positioning style at all, since the HTML will be rendered from
top to bottom until there's no more...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,772
Messages
2,569,592
Members
45,104
Latest member
LesliVqm09
Top