If i have less contents on the page then the footer stays on the middle of the page instead of at the bottom. I just want the footer will stay always at the bottom of the page after all the contents of the page. I tried different ways and found few solutions in stack but none of them are working as per my need. Most of the posts are 3/4 years of old. So, I'm wondering if anyone has any effective solutions that works fine. I'm using asp.net.I'm not good at css so may be I'm doing something wrong. My page format is like this-  &lt;html&gt;     &lt;head&gt;     &lt;body&gt;         &lt;form&gt;             &lt;div class="clear"&gt;                 &lt;div class="container"&gt;                     &lt;ucl:headercontrol /&gt;                     &lt;asp:updatePanel&gt;                     &lt;/asp:updatePanel&gt;                 &lt;/div&gt;             &lt;/div&gt;             &lt;div class="footer"&gt;                 &lt;p&gt;xxxxx&lt;/p&gt;             &lt;/div&gt;         &lt;/form&gt;     &lt;/body&gt; &lt;/html&gt;   This is just my page skeleton. I would appreciate if any can give me any idea.
I have the following code for my masterpage:  &lt;%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head runat="server" style="position:relative"&gt;     &lt;title&gt;Masterpage&lt;/title&gt;     &lt;asp:ContentPlaceHolder id="head" runat="server"&gt;     &lt;/asp:ContentPlaceHolder&gt; &lt;/head&gt; &lt;body&gt;     &lt;form id="main" runat="server" style="position:relative"&gt;     &lt;div&gt;         &lt;asp:ContentPlaceHolder id="MainContent" runat="server"&gt;         &lt;/asp:ContentPlaceHolder&gt;     &lt;/div&gt;     &lt;/form&gt;     &lt;br style="clear:both" /&gt;     &lt;form id="footer" style="position:relative"&gt;     &lt;div&gt;         &lt;center style="font-size:small"&gt;Footer content&lt;/center&gt;     &lt;/div&gt;         &lt;/form&gt; &lt;/body&gt; &lt;/html&gt;   My problem is that when the MainContent isn't filling up the page the footer is not at the bottom of the page. Is there a way to force the footer to stay on the bottom of the page if the main content isn't pushing it all the way down? When the main content is "big" enough it pushes the footer down with the content and displays on the bottom when scrolling down, but not if it is to small.  Anybody know how to fix this?
What happens if I use RAM of a faster speed than the CPU supports? Looking at the  CPU, under Memory types it says "DDR3-1333/1600". My question is, in what way does the CPU limit the RAM speed? What would happen if I put in a DDR3-2133 RAM chip together with the CPU, if the motherboard supports the faster RAM speed? Would it be better to get a RAM chip that is DDR3-1600 so it matches the CPU's listed frequency? How to show that $|D_{2n}| = 2n$ via the presentation? What is the term for the grandson of my aunt? I hava Lenovo g580 laptop. I want to change disk to SSD drive, but I'm not sure if my laptop support SATA 3 (6Gbps).  I write following output:  dmesg | grep SATA [    3.190743] ahci 0000:00:1f.2: AHCI 0001.0300 32 slots 6 ports 6 Gbps 0x5 impl SATA mode [    3.199450] ata1: SATA max UDMA/133 abar m2048@0xd3617000 port 0xd3617100 irq 43 [    3.199455] ata3: SATA max UDMA/133 abar m2048@0xd3617000 port 0xd3617200 irq 43 [    3.518365] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300) [    3.857921] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)   Is that means I Can use SSD disk in SATAa 6Gbps mode? We are planning a two-night trip to the Canary Islands. The cheapest options include Lanzarote and Las Palmas for flights. Travel dates are last week of November, so I guess weather should be okay. I have never been to these islands. I'd like to sleep on the beach in a tent or mattresses. Is that possible, safety, legality, and weather? It would also be nice to know how populated with tourists the islands are. Why are there so few robots in Star Trek? Okay, obviously beyond Data and the Soong-type androids. But seriously, we have more robots in our daily life now than there apparently are on Trek. Is there a canon answer why not? It seems like Star Wars is more on the nose in this regard - it’s unclear why all dirty/dangerous/boring work wouldn’t be done by robots (anthropomorphic or not). Can a multiclass sorcerer make spell slots for their other class using sorcery points?  For example: can a multiclassed sorcerer 3 / warlock 1 use Flexible Casting to create a warlock spell slot? I am not able to find an answer to the following question:     For which positive even integers $k$ is the integer   $$p^2+k$$ prime, where $p$ is a prime number $\gt5$? Proving $\sum\limits_{k=0}^{n}\cos(kx)=\frac{1}{2}+\frac{\sin(\frac{2n+1}{2}x)}{2\sin(x/2)}$ I am being asked to prove that $$\sum\limits_{k=0}^{n}\cos(kx)=\frac{1}{2}+\frac{\sin(\frac{2n+1}{2}x)}{2\sin(x/2)}$$ I have some progress made, but I am stuck and could use some help. What I did: It holds that $$\sum\limits_{k=0}^{n}\cos(kx)=\sum\limits_{k=0}^{n}Re(\cos(kx))=\sum\limits_{k=0}^{n}Re(\cos(x)^{k})=Re(\sum\limits_{k=0}^{n}\cos(x)^{k})=Re\left(\cos(0)\cdot\frac{\cos(x)^{n}-1}{\cos(x)-1}\right)=Re\left(\frac{\cos(x)^{n}-1}{\cos(x)-1}\right) $$ For any $z_{1},z_{2}\in\mathbb{C}$ we have it that if $z_{1}=a+bi,z_{2}=c+di$ then $$\frac{z_{1}}{z_{2}}=\frac{z_{1}\overline{z2}}{|z_{2}|^{2}}=\frac{(a+bi)(c-di)}{|z_{2}|^{2}}=\frac{ac-bd+i(bc-ad)}{|z_{2}|^{2}}$$ hence $$Re\left(\frac{z_{1}}{z_{2}}\right)=\frac{Re(z_{1})Re(z_{2})-Im(z_{1})Im(z_{2})}{|z_{2}|^{2}}$$ Thus, $$Re\left(\frac{\cos(x)^{n}-1}{\cos(x)-1}\right)=\frac{(\cos(nx)-1)(\cos(x)-1)-\sin(nx)\sin(x)}{(\cos(x)-1)^{2}+\sin^{2}(x)}=\frac{\cos(nx)\cos(x)-\cos(nx)-\cos(x)+1-\sin(nx)\sin(x)}{\cos^{2}(x)-2\cos(x)+1+\sin^{2}(x)}=\frac{\cos(nx)\cos(x)-\cos(nx)-\cos(x)+1-\sin(nx)\sin(x)}{-2\cos(x)+2}=\frac{\cos(nx)\cos(x)-\cos(nx)-\cos(x)+1-\sin(nx)\sin(x)}{-2(\cos(x)-1)}= \frac{=\cos(nx)\cos(x)-\cos(nx)-\cos(x)+1-\sin(nx)\sin(x)}{-2(-2\cdot\sin^{2}(x/2))}=\frac{\cos(nx)\cos(x)-\cos(nx)-\cos(x)+1-\sin(nx)\sin(x)}{4\sin^{2}(x/2)}=\frac{\cos(nx)\cos(x)-\cos(nx)-\cos(x)+1-\sin(nx)\sin(x)}{4\sin^{2}(x/2)}=\frac{\cos(x(n+1))-\cos(nx)-\cos(x)+1}{4\sin^{2}(x/2)} $$ This is the part where I am stuck, I would appriciate any help or hint on how to continue. Edit: Given the corrections by André I get: $$(\cos(nx+x)-1)(\cos(x)-1)+\sin(nx+x)\sin(x)=\cos(nx+x)\cos(x)-\cos(nx)-\cos(x)+1+\sin(nx+x)\sin(x)$$ so $$\cos(nx+x)\cos(x)+\sin(nx+x)\sin(x)=\cos(xn+x-x)-\cos(nx)=0$$ Edit 2: I found anoter mistake in the above, I will try to correct Edit 3: When multiplying correctly the above it works out :-) What are the entire functions $f$ such that $|f'(z)| \leq |f(z)| \ ? $ Could someone advise me on how to determine all entire functions $f$ such that $|f'(z)| \leq |f(z)|, \forall z\ ?$  Hints will suffice, thank you. \xymatrix undefined Subject vs. Object marking for whoever? I know similar questions have been asked before, but I'm having trouble reconciling the following sentence, received in an email:     Can we ask whomever is your contact there to email us a job so we can check backward compatibility?   I could understand using objective case if the sentence were "can we ask (him) to email...", but I get tripped up considering "whomever" to be the subject of "(he) is your contact there". Changing sfdc header and footer without creating new VF pages I need to change the header and footer of standard salesforce pages (sfdc pages) with a custom CSS that I have. Now I am not sure if this is a customer portal (it is probably not). I searched and found out it can be done by changing the Self-Service as given in the following link:   However the problem is when I go to Name | Setup | Customize | Self-Service, I do not see the Self-Service Portal - Settings anywhere (as given in the step 1 of the link). Instead there are two options, 1) Public Solutions 2) Web-to-Case.  Basically what I want is to replace the Blue header and footer of the salesforce standard pages with the CSS given to me. The changes will be in actual org.  Any guesses on how to go ahead with this? How to prove the following product? $$\frac{\sin(x)}{x}= \left(1+\frac{x}{\pi}\right) \left(1-\frac{x}{\pi}\right) \left(1+\frac{x}{2\pi}\right) \left(1-\frac{x}{2\pi}\right) \left(1+\frac{x}{3\pi}\right) \left(1-\frac{x}{3\pi}\right)\cdots$$ Show that $n$ lines separate the plane into  $\frac{n^2+n+2}{2}$ regions if no two of these lines are parallel and no three pass through a common point.   I know we start with the base case, where, if we call the above equation P(n), P(0), for 0 lines would be 0.  But I really have no idea how to begin the inductive step.  How do we know what k+1 we're supposed to arrive at?  Thanks! Python function attributes - uses and abuses Not many are aware of this feature, but Python's functions (and methods) can have . Behold:  &gt;&gt;&gt; def foo(x): ...     pass ...      &gt;&gt;&gt; foo.score = 10 &gt;&gt;&gt; dir(foo) ['__call__', '__class__', '__delattr__', '__dict__', '__doc__', '__get__', '__getattribute__', '__hash__', '__init__', '__module__', '__name__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', 'func_closure', 'func_code', 'func_defaults', 'func_dict', 'func_doc', 'func_globals', 'func_name', 'score'] &gt;&gt;&gt; foo.score 10 &gt;&gt;&gt; foo.score += 1 &gt;&gt;&gt; foo.score 11   What are the possible uses and abuses of this feature in Python ? One good use I'm aware of is 's usage of the docstring to associate a syntax rule with a method. But what about custom attributes ? Are there good reasons to use them ? How to create a generic array in Java? Due to the implementation of Java generics, you can't have code like this:   public class GenSet&lt;E&gt; {     private E a[];      public GenSet() {         a = new E[INITIAL_ARRAY_LENGTH]; // error: generic array creation     } }   How can I implement this while maintaining type safety?  I saw a solution on the Java forums that goes like this:  import java.lang.reflect.Array;  class Stack&lt;T&gt; {     public Stack(Class&lt;T&gt; clazz, int capacity) {         array = (T[])Array.newInstance(clazz, capacity);     }      private final T[] array; }   But I really don't get what's going on. How can I insert a newline in a framebox? I have several frameboxes in my document, using the following command:  \framebox(115,115){ R-Sq: \newline For example}    I want to force a new line, but neither \newline or \\ appear to work. Is there any other way of doing this? Proving the summation formula using induction: $\sum_{k=1}^n \frac{1}{k(k+1)} = 1-\frac{1}{n+1}$ I am trying to prove the summation formula using induction:  $$\sum_{k=1}^n \frac{1}{k(k+1)} = 1-\frac{1}{n+1}$$  So far I have...  Base case:   Let n=1 and test   $\frac{1}{k(k+1)} = 1-\frac{1}{n+1}$  $\frac{1}{1(1+1)} = 1-\frac{1}{1+1}$    $\frac{1}{2} = \frac{1}{2}$   True for n=1   Induction Hypothesis:   Assume the statement is true for the n-th case   $\sum_{k=1}^n  \frac{1}{k(k+1)} = 1-\frac{1}{n+1}$  Inductive Step:   Prove, using the Inductive Hypothesis as a premise, that   $$\sum_{k=1}^{n+1}  \frac{1}{k(k+1)} = \sum_{k=1}^{n}  \frac{1}{k(k+1)} + \frac{1}{(n+1)(n+2)} = 1-\frac1{n+1} + \frac{1}{(n+1)(n+2)} = \frac{(n+1)(n+2)}{(n+1)(n+2)}+\frac{-2-n}{(n+1)(n+2)}+\frac{1}{(n+1)(n+2)} = \frac{(n+1)(n+2)-2-n+1)}{(n+1)(n+2)} = \frac{(n+1)(n+2)-n-1}{(n+1)(n+2)} = \frac{n^2+2n+1}{(n+1)(n+2)} = \frac{(n+1)(n+1)}{(n+1)(n+2)} = \frac{n+1}{n+2}$$  To prove $$ 1-\frac{1}{n+2} = \frac{n+1}{n+2} $$ Multiply both sides by $n+2$ to get an equivalent expression. $$ (1-\frac{1}{n+2}) * (n+2) = (\frac{n+1}{n+2}) * (n+2)  $$ $$ n+1=n+2−1 $$  Does this all make sense? How can this be improved upon? If your application requires a database and it comes with built in data, what is the best way to ship that application? Should I:   Precreate the SQLite database and include it in the .apk? Include the SQL commands with the application and have it create the database and insert the data on first use?   The drawbacks I see are:   Possible SQLite version mismatches might cause problems and I currently don't know where the database should go and how to access it. It may take a really long time to create and populate the database on the device.   Any suggestions? Pointers to the documentation regarding any issues would be greatly appreciated.