Ok, so this seems like a really silly problem but I can't get my container div to inherit the height of the floated elements inside of it. Since I need to center the container div, I can't use float to fix this problem. Here is my css:  #container { margin: 0 auto; width: 1000px; border-left: 1px solid #f1f1f1; border-right: 1px solid #f1f1f1; border-bottom: 1px solid #f1f1f1; }  #focus { padding-left: 23px; width: 977px; padding-top: 20px; padding-bottom: 23px; border-bottom: 1px solid #f1f1f1; float: left; }  .rslider { float: left; width: 600px; margin-left: 15px; }  .welcome { float: left; width: 300px; }   Html:  &lt;div id="container"&gt;    &lt;div id="logo_block"&gt;    &lt;a href="#"&gt;&lt;img src="img/logo.jpg" alt="" /&gt;&lt;/a&gt;    &lt;/div&gt;    &lt;div id="focus"&gt;     &lt;div class="welcome"&gt;     &lt;h1&gt;All About This Page&lt;/h1&gt;     &lt;p&gt;Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, liquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium.&lt;/p&gt;     &lt;/div&gt;    &lt;div class="rslider"&gt;     &lt;img src="img/slider_image.jpg"&gt;    &lt;/div&gt;    &lt;/div&gt;   &lt;/div&gt;   Any ideas?
I have the age-old problem of a div wrapping a two-column layout. My sidebar is floated, so my container div fails to wrap the content and sidebar.  &lt;div id="container"&gt;   &lt;div id="content"&gt;&lt;/div&gt;   &lt;div id="sidebar"&gt;&lt;/div&gt; &lt;/div&gt;   There seem to be numerous methods of fixing the clear bug in Firefox:   &lt;br clear="all"/&gt; overflow:auto overflow:hidden   In my situation, the only one that seems to work correctly is the &lt;br clear="all"/&gt; solution, which is a little bit scruffy. overflow:auto gives me nasty scrollbars, and overflow:hidden must surely have side effects. Also, IE7 apparently shouldn't suffer from this problem due to its incorrect behaviour, but in my situation it's suffering the same as Firefox.  Which method currently available to us is the most robust?
Calculating the peak voltage of a zener diode output I have a problem with this homework, I have to calculate the peak voltage of the output after stabilizing with a zener diode.  My Input Voltage is Vin = 5V + 0.7Vsin (2pif*t) with f=10kHz  My circuit is a simple regulator with no load resistor. The series resistance is 82 Ohms, Zener voltage is 3V, max. current through the diode is 33.3mA. How can I calculate the peak output ? My problem is the offset created by 5V, wouldnt the Zener voltage be reached immidiately with this configuration ?         &ndash; Schematic created using Linear regression with fixed point I have a data set to which I want to add a trend line. For my system, there will always be a fixed point on (2, 0). I have the line representing this system, but currently I do not account for the fixed point. Is there functionality to achieve this?  \begin{figure} \begin{tikzpicture} \begin{axis} [     ylabel={Some Time [ms]},     ]     \addplot[only marks, color=red, error bars/.cd,                        y dir=both, y explicit]         table [x=num_of_nodes, y=MyData, y error=stdev_delay_var] {MyData.dat};     \label{plot_one}     \addplot +[mark=none, dashed]          table[y={create col/linear regression={y=MyData}}]         {MyData.dat}; \end{axis} \end{tikzpicture} \caption{Test Results} \label{fig:test_results} \end{figure} How to select the most recent set of dated records from a mysql table When it's OK to omit "where?" Is one preposition enough for multiple months? A colleague of mine has written her thesis and requested me to read and correct its grammar. I have seen some sentences like     The maximum deviation of the concentration values were obtained in the growing season, especially in May, in July, in August and in September.   As you see there is one 'in' for each month. I think that one preposition would be enough for all:     The maximum deviation of the concentration values were obtained in the growing season, especially in May, July, August and September.   Which one is more suitable? Creating compressed GeoTIFF with QGIS Clipper tool? the largest integer $n$ for which $n+5$ divivides $n^5+5$? When we divide $n^5+5$ by $n+5$, we get a remainder $-620$, i.e., $n^5+5=K(n+5)-620$ , now how to proceed further? How to get function's name from function's pointer in Linux kernel? Can you use two "and"s in a sentence? For example,      I like chocolate, vanilla, and lemon and orange ice cream.    Indicating "lemon and orange" is a combined flavor, as an item in the list needing an initial and. Does anybody know how to make a 'always-on-bottom'-windows, or a window pinned to the desktop? It should receive focus and mouseclicks, but should stay at the bottom of the Z-order. It would also be great if it could stay on the desktop even when user do a minimize all or show desktop operation.  Both delphi and c# solutions (or partial solutions/hints) would be great. How can text selection be disabled in Android 3.0 Honeycomb? Too many of your edits were rejected, try again in 7 days First time I've got the following message on SO:     Too many of your edits were rejected,   try again in 7 days.   Although, I have made ~50 accepted edits this day.  I'm sure that should outweigh the ~5 rejected edits, right?    My suggestion:  bool allowEdit(USER u) {     if(u.rejected * 5 &gt; u.accepted)         return(false);     else         return(true); }   Think of it this way: if I do a 1000 accepted edits, and mess up on 5 [rejected], does that mean I should get banned for 7 days?    Hmmm... There seems to be a bug; the message only appears when clicking edit from review.  But otherwise, I can't edit , even when going to it from the homepage. So, I'm trying to figure out how to run the scene from the beginning of Lost Mine of Phandelver (5e starter set) where the party is ambushed by goblins and I'm really confused as to how Passive Wisdom (Perception) works.  The included rulebook mentions on page 6 :     When you hide, there’s a chance someone will notice you even if they aren’t searching. To determine whether such a creature notices you, the DM compares your Dexterity (Stealth) check with that creature’s passive Wisdom (Perception) score, which equals 10 + the creature’s Wisdom modifier, as well as any other bonuses or penalties. If the creature has advantage, add 5. For disadvantage, subtract 5. For example, if a 1st-level character (with a proficiency bonus of +2) has a Wisdom of 15 (a +2 modifier) and proficiency in Perception, he or she has a passive Wisdom (Perception) of 14.   So the party is being ambushed by goblins and at that point the DM guide mentions on page 7 :     Check to see who, if anyone, is surprised. [...] Make a Dexterity (Stealth) check for the goblins, rolling once for all of them. Roll a d20, add the goblins' Stealth skill modifier (+6) to the roll and compare the result to the characters' Passive Wisdom (Perception) scores.   So to me this reads like I should roll 1d20+6 for the goblins and compare that to the static Passive Wisdom (Perception) score on the character sheet of a PC. The PCs don't get to roll anything as they're not actively looking for enemies, even though they are investigating the dead horses.  I would also think that if the characters were supposed to roll, the DM guide would clearly instruct so, given that this is the starter set.  However, watching  at around 8:01 I notice that the DM is explicitly asking his party for a perception roll. And the same thing happens on a couple of other videos where people are running the Lost Mine adventure. The DM always requests a roll.  So what gives? Shall I take it that the DMs ask for the roll because they consider the party to be actively seeking for hidden foes? Or am I just misreading the rulebook and the DM guide? Why use foreign keys if cascade action is not need? Q1. Find the general solution to the difference equation  $$ a_{n} - 4a_{n-1} + 3a_{n-2} = 6 $$    Q2. Solve the difference equation   $$ a_{n} - a_{n-1} - 2a_{n-2} = 0, a_0 = 2, a_1 = 4 $$    I am completely lost in solving recurrence relation questions. Can anyone guide me in steps to solve the following 2 questions? Browsing Quora, I saw the following  with contradicting answers.  For the :     The bits are represented by certain orientations of magnetic fields   which shouldn't have any effect on gravitational mass.   But,  contradicts that one:     Most importantly, higher information content correlates with a more   energetic configuration and this is true regardless of the particular   type of storage... Now, as per Einstein's most famous formula, energy   is equivalent to mass.   Which answer is correct? Find the population size that maximizes the probability that two random samples of size $20$ will have exactly $2$ members in common Ten fish are caught in a lake, marked, and then returned to the lake. Two days later 20 fish are again caught, 2 of which have been marked.  (a) Find the probability of 2 of the 20 fish being marked if the lake has $k$ fish (assuming the fish are caught at random). (b) What value of k maximizes the probability?    Progress:     I got the (a), $$\binom{10}{2}\binom{k-10}{18}\bigg/ \binom{k}{20}$$ But how do I get part (b) where $k$ is to maximize the probability? Which Answer to Accept: Better Solution or Answer to Actual Question? Possible Duplicate:          I received two answers to a question I asked. One solution suggested I do things in a completely different manner than I have been. Another acknowledged that the first solution was correct but went on to explain how to do what I was asking.  Should I accept the first answer because it provides the better way of doing things or should I accept the second one because it answers the precise question that was asked? How can I set the processor affinity of a process on Linux? How can I set the processor affinity of a process on Linux? What is the volatile keyword useful for? At work today, I came across the volatile keyword in Java. Not being very familiar with it, I found . Given the detail in which that article explains the keyword in question, do you ever use it or could you ever see a case in which you could use this keyword in the correct manner?