Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2007

Tip: Looking for answers? Try searching our database.

layer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Vinnie - 04 Oct 2007 00:47 GMT
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
Mark Rae [MVP] - 04 Oct 2007 01:12 GMT
> 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;"

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

Vinnie - 04 Oct 2007 17:01 GMT
> style="position:absolute;bottom:0px;"
>
> --
> Mark Rae
> ASP.NET MVPhttp://www.markrae.net

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
Mark Rae [MVP] - 04 Oct 2007 18:25 GMT
>> style="position:absolute;bottom:0px;"
>
[quoted text clipped - 10 lines]
>
> 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...

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

Vinnie - 04 Oct 2007 22:06 GMT
> That's correct behaviour based on what you originally posted - no mention of
> MasterPages or large images in your original post...
[quoted text clipped - 9 lines]
> Mark Rae
> ASP.NET MVPhttp://www.markrae.net

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
Mark Rae [MVP] - 04 Oct 2007 22:47 GMT
> 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...

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.