Solved

Making DIV tags expand the whole page

Posted on 2011-02-24
1
336 Views
Last Modified: 2012-05-11
Here's what I want to do:

I have an aspx.net master page with a contentplaceholder. Below this contentplaceholder is a footer div. Standard stuff here.

In a page that uses this master page I have a div tag that expands (down) using some jquery code.

I want the footer to move down along when I click on the expanding div. Right now it does not. Does it have something to do with CSS position or float selectors?

0
Comment
Question by:ce4LessUser
1 Comment
 
LVL 3

Accepted Solution

by:
jchook earned 250 total points
ID: 34974853
Make your footer position:relative if it is not

if you have..
<div id="placeholder"> content </div>
<div id="footer">Copyright 2011</div>

Open in new window


and your jquery code increases the height of #placeholder, then #footer should move down with it unless you have some special CSS options set.

Try something like this in the CSS code. It might break your layout, but we can work with it from there. It's a lot better to let the browser handle this type of thing rather than hacking it up with more JS.
#placeholder {
  position: relative;
}
#footer {
  position: relative;
}

Open in new window

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
This video discusses moving either the default database or any database to a new volume.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now