I would like to make the content overflow, but not the whole page. My issue is that I can't figure out how to make the content height depend on footer (and potential other elements like header) without hard-code how much horizontal space these take. How do I make the content take up as much horizontal space as available, but nothing more, and then overflow the rest? My thinking is that I might be able to do it by simply locking the content height and use @media to create a couple of different heights given different resolutions. Below is a minimal example that I made, where I have the overflow on the whole page. This is not what I want. I would like to have the content to only take up the space that is left after every other element is on the page and then overflow its content (removing overflow on main). Please advice In the example.   body {margin: 0; padding: 0;      } main, footer {color: #ffffff;} main {     background: #000000; } .main {     max-height: 100%; } .content {     background: blue;     overflow-y: auto;     height: auto; } .footer {     background: #616161;      height: 100px;     width: 100%; } .boxes {       background-color: yellow;     width: 95%;     height: 250px;     margin: 5px; }     &lt;main&gt;Main         &lt;div class="main"&gt;             &lt;section class="content"&gt;                 &lt;div class="boxes"&gt;1&lt;/div&gt;                 &lt;div class="boxes"&gt;2&lt;/div&gt;                 &lt;div class="boxes"&gt;3&lt;/div&gt;             &lt;/section&gt;         &lt;/div&gt;         &lt;footer class="footer"&gt;Footer&lt;/footer&gt;     &lt;/main&gt;
I am working on a web application where I want the content to fill the height of the entire screen.  The page has a header, which contains a logo, and account information. This could be an arbitrary height. I want the content div to fill the rest of the page to the bottom.  I have a header div and a content div. At the moment I am using a table for the layout like so:  CSS and HTML    #page {     height: 100%; width: 100% }  #tdcontent {     height: 100%; }  #content {     overflow: auto; /* or overflow: hidden; */ } &lt;table id="page"&gt;     &lt;tr&gt;         &lt;td id="tdheader"&gt;             &lt;div id="header"&gt;...&lt;/div&gt;         &lt;/td&gt;     &lt;/tr&gt;     &lt;tr&gt;         &lt;td id="tdcontent"&gt;             &lt;div id="content"&gt;...&lt;/div&gt;         &lt;/td&gt;     &lt;/tr&gt; &lt;/table&gt;     The entire height of the page is filled, and no scrolling is required.  For anything inside the content div, setting top: 0; will put it right underneath the header. Sometimes the content will be a real table, with its height set to 100%. Putting header inside content will not allow this to work.  Is there a way to achieve the same effect without using the table?  Update:  Elements inside the content div will have heights set to percentages as well. So something at 100% inside the div will fill it to the bottom. As will two elements at 50%.  Update 2:  For instance, if the header takes up 20% of the screen's height, a table specified at 50% inside #content would take up 40% of the screen space. So far, wrapping the entire thing in a table is the only thing that works.
Are two norms equivalent if they induce the same topology on a vector space? Whenever two norms are equivalent in the sense that $\|x\|_1\le c_1\cdot \|x\|_2$ and $\|x\|_2\le c_2\cdot \|x\|_1$, they generate the same topology. Is the reverse also true, i.e. if a topology is generated by two different norms, are the norms equivalent in the above sense? We know this to be true for $\mathbb{R}^n$, but is it generally true, and if not, what are some counterexamples?  What about a Hausdorff, translationally invariant vector space topology generated by two different metrics, are the metrics equivalent in the sense $d_1(x,y)\le c_1\cdot d_2(x,y)$ and vice versa? What is the "canary thread" and why is it starving? ROC vs Precision-recall curves on imbalanced dataset I just finished reading  discussion. They argue that PR AUC is better than ROC AUC on imbalanced dataset.   For example, we have 10 samples in test dataset. 9 samples are positive and 1 is negative. We have a terrible model which predicts everything positive. Thus, we will have a metric that TP = 9, FP = 1, TN = 0, FN = 0.  Then, Precision = 0.9, Recall = 1.0. The precision and recall are both very high, but we have a poor classifier.  On the other hand, TPR = TP/(TP+FN) = 1.0, FPR = FP/(FP+TN) = 1.0. Because the FPR is very high, we can identify that this is not a good classifier.  Clearly, ROC is better than PR on imbalanced datasets. Can somebody explain why PR is better? I've seen many science popularisation documentaries and read few books (obviously not being scientist myself). I am able to process and understand basic ideas behind most of these. However for general relativity there is this one illustration, which is being used over and over (image from Wikipedia):    I always thought that general relativity gives another way how you can describe gravity. However for this illustration to work, there needs to be another force, pulling the object down (referring to a direction in the attached image). If I put two non-moving objects in the image, what force will pull them together?  So where is my understanding incorrect? Or is general relativity not about explaining gravity and just describes how heavy objects bends spacetime (in that case the analogy is being used not correctly in my opinion)?    UPDATE Thank you for the answers and comments. Namely the XKCD comics is a spot on. I understand that the analogy with bent sheet of fabric pretty bad, but it seems that it can be fixed if you don't bent the fabric, but just distort the drawn grid.   Would you be so kind and answer the second part of the question as well - whether general relativity is explaining gravitational force. To me it seems that it is not (bending of spacetime simply can not affect two non-moving objects). However most of the time it is being presented that it does. In Assa Auerbach's book (Ref. 1), he gave an argument saying that in the normal process of path integral, we lose information about ordering of operators by ignoring the discontinuous path.   What did he want to say? I don't think there is any problem related to the ordering of operators.  References:   Assa Auerbach, Interacting Electrons and Quantum Magnetism, p.102, just below eq. (10.6). Following , this is how we correctly make the r sound:   Let the throat vibrate since it is voiced. Round the lip a little. Raise the tip of the tongue towards the hard bump behind the upper front teeth,  but do not let the tip of tongue touch the bump. This also makes the center of the tongue go down. The back part of the tongue is raised because you pull it into a tight ball Fold and raise the sides of the tongue so they touch the upper side-teeth.   If we follow the above requirement, our tongue should have an s shape when we pronounce the r sound as depicted in the following sketch:    Is it possible to raise the tip while raising the back and lowering the center of the tongue when making an r sound?   How do native speakers make an r?  P.S. My tongue is very short anyway! Add the option to do a case-sensitive search I noticed that the search engine does not consider capital letters (just like most regular search engines). However, I have the feeling that in a "coding" context, this could be useful.  For example, searching pages about the standard C library "FILE" struct returns a lot of pages containing the "file" word, that are not (always) relevant.  Is there a way to force keeping capitals? If not, maybe it could be a nice feature to add? Reason for LCM of all numbers from 1 .. n equals roughly $e^n$ I computed the LCM for all natural numbers from 1 up to a limit $n$ and plotted the result over $n$.  Due to the fast-raising numbers, I plotted the logarithm of the result and was surprised to find a (more or less) identity curve ($x=y$).  In other words, $LCM(1, 2, 3, ..., n)$ appears to be roughly the value $e^n$.  Is a there a simple explanation on why this is so?  $LCM(a, b, c, …)$ shall be defined as the least common multiple of all arguments $a, b, c, …$ Repair disk from single user mode (fsck fails) Is it possible to raise stats? I found a lot of dialogue choices requiring high Perception and I started the game with just 10 plus 1 for being an elf. With a magical helm and tower rest bonus I can temporarily boost it to 13, but is it possible to raise it permanently? I'm a bit confused about the concept of ground, and perhaps voltage as well, particularly when trying to analyze a circuit. When I learned about Ohm's law in grade school, I learned how to apply the law to calculate current, voltage, and resistance of simple circuits.   For instance, if we were given the following circuit:    We would be could be asked to calculate the current passing through the circuit. At the time, I'd simply compute (based on the rules given) 1.5V/1Ohms=1.5A.  Later on, however, I learned that the reason the voltage of the resistor would be 1.5V is because voltage is really the difference in potential between two points, and that the difference of the voltage across the battery would be the same as that of the resistor (correct me if I'm mistaken), or 1.5V. I got confused, however, after the introduction of the concept of ground.   The first time I tried to do the current calculation for a circuit similar to the previous circuit on a simulator, the program complained about not having a ground and "floating voltage sources". After a bit of searching, I learned that circuits need ground as a reference point or for safety reasons. It was mentioned in one explanation that one can pick any node for ground, although it's customary to design circuits so there is a "easy place" to pick ground.   Thus for this circuit    I picked ground at the bottom, but would it be okay to pick ground between the 7 ohm and 2 ohm resistor - or any other place? And what would be the difference when analyzing the circuit?  I've read that there are 3 typical ground symbols with different meanings - chassis ground, earth ground, and signal ground. A lot of circuits I've seen used in exercises either use earth ground or signal ground. What purpose is there in using earth ground? What is the signal ground connected to?  Another question: since the ground is at unknown potential, wouldn't there be current flowing to or from ground to the circuit? From what I've read we treat the ground as 0V, but wouldn't there be some sort of effect because of a difference in potential of the circuit and ground? Would the effect be different depending on what ground was used?  Finally: In nodal analysis, one customarily picks a ground at the negative terminal of the battery. However, when there are multiple voltage sources, some of them are "floating". What meaning does the voltage of a floating voltage source have? Webform redirect I'd like to do something pretty straightforward: After user fills out a , I'd like a button that simply redirects them to a URL (in this case it's to a demo sandbox). Of course I'd want the user to fill in their info to capture for lead-generation purposes. My  is set up correctly in that it correctly captures all the user fields and submits them to me via email. However, upon completion "click" I'd like to have the user redirected to a determined internal URL www.mysite.com/foo  I can't figure out how this is done with the vanilla webform settings. Am I missing something obvious? How to divide LaTeX table cells vertically? I want my table to have separated cells. Basically double lines but I can't figure how to have horizontal lines disconnected. I tried \hline and \cline but those connect too.  This is best I can do:    This is how I want my table to look:   \begin{tabular}{|c||c||c||c|}   \hline   \multicolumn{2}{|c||}{First Cell}&amp;   Second Cell&amp;   Third Cell\\   \hline   \hline   \begin{tabular}{@{}l@{}} Data\\ Data\\ Data\\   \end{tabular}&amp;   \begin{tabular}{@{}l@{}}     Data\\     Data\\     Data\\   \end{tabular}&amp;   \begin{tabular}{@{}l@{}}     Data\\     Data\\     Data\\   \end{tabular}&amp;   \begin{tabular}{@{}l@{}}     Data\\     Data\\     Data\\   \end{tabular}\\    \hline  \end{tabular} What is the simplest way to generate a dodecahedron? I've been thinking of animating some dice and while most are easy to make, I'm having some trouble figuring out a way to generate a regular dodecahedron. I could hand build it but it would be potentially uneven. Would using the base of a 5 sided cylinder and then some variation on spin be the best option or is there a better way? Why did I apparently get +97 for joining a site? Don't worry! I got all my 100 reputation :) It just didn't appear that way...    The notification says +100, but why does it say +97 at the top?  Edit  I created an account on server fault, and this time it says +96. I assume it's because of the down votes on this question; however, I thought down votes aren't shown in the rep you gain. Prove there are no other solutions of functional equation $f(x+y) = \frac{f(x)+f(y)}{1-f(x)f(y)}$ I have the following functional equation. Find all continuous functions $f:(-1,1) \to \mathbb R$ such that $$ f(x+y)=\frac{f(x) + f(y)}{1 - f(x)f(y)} $$ The first obvious solution is $f(x) \equiv 0$. Another one I guessed, it is $f(x) = \pm \tan x$. I suspect, that there are no more solutions. The problem is that I don't know how to prove that.  Since we have a rational equation, I have no idea how to make any substitutions in order to get expression for $\tan x$ (as it is not a rational expression).  P.S. I can also show that it is true that (a) $f(0) = 0$ (take $x=y=0$), and (b) $f(-x) = -f(x)$ (take $y=-x$).  Update: there is a solution of this problem also here: Maximum weight an average bicycle can carry? If the order of all nontrivial elements in a group is 2, then the group is Abelian. I know of a proof that is just from calculations (see below). I'm wondering if there is any theory or motivation behind this fact. Perhaps to do with commutators?    Proof: $a \cdot b = (b \cdot b)  \cdot (a \cdot b) \cdot (a \cdot a) = b \cdot (b \cdot a) \cdot (b\cdot a) \cdot a = b \cdot a$. How much weigh can a torque carry? I have a servo motor with a torque of 10kgcm. My question is how much weight can it carry? I really don't understand "kgcm." Is there a way to calculate how much weight can a motor carry? How can I boot with an older kernel version? The latest kernel is causing problems with my sound, which worked fine with an older version. As I have only Ubuntu installed, Grub is not getting displayed while booting. How can I manually choose my kernel version while booting?