I am trying to center an icon in my header navigation.  I have the basics down but the center changes depending on if there are multiple icons in the same header.  How can I keep the center icon centered even if the left or right icons are removed?    HTML  &lt;br&gt;    &lt;br&gt;    &lt;div class="mp-myheader"&gt;         &lt;div class="mp-center-wrapper"&gt;             &lt;i class="mp-icon-hamburger mp-icon-xsm mp-float-left"&gt;&lt;/i&gt;             &lt;i class="mp-icon-hamburger mp-icon-xsm"&gt;&lt;/i&gt;             &lt;i class="mp-icon-hamburger mp-icon-xsm mp-float-right"&gt;&lt;/i&gt;         &lt;/div&gt;     &lt;/div&gt;  &lt;br&gt;     &lt;div class="mp-myheader"&gt;         &lt;div class="mp-center-wrapper"&gt;             &lt;i class="mp-icon-hamburger mp-icon-xsm"&gt;&lt;/i&gt;             &lt;i class="mp-icon-hamburger mp-icon-xsm mp-float-right"&gt;&lt;/i&gt;         &lt;/div&gt;     &lt;/div&gt;   CSS  .mp-center-wrapper{     text-align: center; }  .mp-myheader {     background: #015688 !important;     width:100% }  .mp-icon-hamburger {     background-image:       url("http://icons.iconarchive.com/icons/klukeart/summer/128/hamburger-icon.png");     background-position:center;     background-repeat:no-repeat; }  .mp-icon-xsm {     width: 25px;     height:25px;     background-size: 25px;     display:inline-block; }  .mp-float-left {     float:left; }  .mp-float-right {     float:right; }
How can I horizontally center a &lt;div&gt; within another &lt;div&gt; using CSS? &lt;div id=&quot;outer&quot;&gt;   &lt;div id=&quot;inner&quot;&gt;Foo foo&lt;/div&gt; &lt;/div&gt;
If humans were able to catch all sun energy reaching the earth for their use, will the climate change? I guess that energy will be used up and, at the end, will contribute to heat the earth, so I see no big differences...  please explain your point of view. How to deal with variable income in the budget We have a budget planned out for various categories, and in order to make ends meet we count on child support for my wife's child from a previous marriage.  However, lately we have not been receiving this amount.  How do we deal with this in the budget?    My wife has just been "borrowing" it from our savings, but I don't think that is reasonable given that I find it highly unlikely we will ever be able to recover it.  On the other hand, she doesn't think it reasonable to cut out of her budget and cutting it out of the budget for the kids (which is where it really should be going!) isn't reasonable either. difference between "function foo() {}" and "foo() {}" I can define bash functions using or omitting the function keyword. Is there any difference?  #!/bin/bash  function foo() {   echo "foo" }  bar() {   echo "bar" }  foo  bar   Both calls to functions foo and bar succeed and I can't see any difference. So I am wondering if it is just to improve readability, or there is something that I am missing...  BTW in other shells like dash (/bin/sh is symlinked to dash in debian/ubuntu) it fails when using the function keyword. Ubuntu 18.04 Dock mouse hover tooltips - how to disable? I need to know if it is possible and how to disable the Ubuntu 18.04 Dock tool-tips for mouse hover the pinned application. It is well known from Noether's Theorem how from continuous symmetries in the Lagrangian one gets a conserved charge which corresponds to linear momentum, angular momentum for translational and rotational symmetries and others.  Is there any elementary argument for why linear or angular momentum specifically (and not other conserved quantities) are conserved which does not require knowledge of Lagrangians? By elementary I mean, "if this is not so, then this unreasonable thing occurs".   Of course, we can say "if we want our laws to be the same at a different point in space then linear conservation must be conserved", but can we derive mathematically the expression for the conserved quantity without using the Lagrangian?  I want to explain to a friend why they are conserved but he doesn't have the background to understand the Lagrangian formalism. Does the concept of infinity have any practical applications? I know what you're thinking: "of course it has, for example, it can be used to tell you how many times you can go around a circle". But that isn't really true, now is it? You'd be dead or the world would go under long before an infinite amount of loops had been reached.  Are there any practical applications for the concept of infinity? Is it a useful concept in maths at all?  I know that Donald E. Knuth has argued that for all practical purposes, a very, very large number has the same effect as infinity, in his book "Things a Computer Scientist Rarely Talks About" (can't remember the exact quote, nor find it online, unfortunately).  Examples are appreciated. The link to the recommended job in the app brings you to a page with the text: Not Found    Looking at the link it seems like after changing the URL structure in Stack Overflow Jobs they have not been updated in the apps.  For the job in the screenshot this is the used URL in the app:    The correct URL is: This has been a old live-action movie from Asia, most likely Japan. I've seen it some time in the late 80's and I think it's been black/white only.  Earth is invaded by UFOs (small and round, like flying balls), coming from Mars.  Japan (I think) built some kind of super spaceship, initially hidden within some secret port in some kind of island/mountain.  The spaceship looks similar to a classic battleship, but with an added drill below the front.  In the movie's finale it's revealed that this is some kind of   super weapon/bomb that has to be manually piloted by someone. When launched it starts rotating and flies (formed like a bullet but with the drill/corkscrew head).   To defend Earth, the ship is sent on a mission to Venus, where the UFOs seem to originate. I don't remember the specific reason or conclusion here.  The ship starts underwater or launches from the mountain on the island, then taking off and fighting UFOs while leaving Earth's atmosphere. Adding only specific text from a file to an array list, part 2 - Java Proof that any self-complementary graph has to have $4k$ or $4k+1$ vertex, for some $k \in \mathbb N$ How can install Desktop Toggl on Ubuntu 13.04? I try type:  sudo add-apt-repository ppa:official-toggl/ppa sudo apt-get update sudo apt-get install desktop-Toggl    But getting information desktop-Toggl not found. Should laptops remain plugged in when their battery is 100% charged? When your laptop's battery is 100% charged, should you leave it plugged in so any battery power doesn't get used, or will that cause overcharging, overheating, etc.? Should the laptop be unplugged when the battery level is 100%?  I'm asking because my laptop's screen tends to get dim when unplugged, so I don't like to run it on battery. Does there exist a matrix $\mathbf{A}\in\mathbb{R}^{3\times3}$ such that $\mathbf{A}^{2}=-\mathbf{I}$? Is it possible for a matrix $\mathbf{A}\in\mathbb{R}^{3\times3}$,  $$\mathbf{A}^2=-\mathbf{I}$$  I know that It is possible for $2\times2$ matrix, but is it possible for $3\times3$ matrix ? Can you re-equip equipment to the same creature? Proving that $GF(p^n)$ contains a unique subfield isomorphic to $GF(p^m)$ if and only if $m$ is a divisor of $n$. I am looking to prove that $GF(p^n)$ contains a unique subfield isomorphic to $GF(p^m)$ if and only if $m$ is a divisor of $n$. In the Wikipedia article:    They say that this statement has been proven by E. H. Moore in 1893.  How to go about proving the theorem? I know first I need to generate a subset, prove that it's a subfield, and then assume they are two and show it's unique.  But how to generate it in the first place? Consider the set of polynomials of the form $x^{p^m}-x=0$? Is there a way to show that it's a subfield without checking all the axioms? Would you please tell me which of the following terms is correct? If both are correct, are they equal?     I have no [...] I don't have any [...] Some kind of + (singular or plural)? I have a question about using the phrase "some kind of _".  Is it incorrect to say "some kind of + plural noun"?     For example, is it wrong to say "are these rock-like things some kind of chocolates?"   I didn't use "kinds" and that kind of adds to my question. Is "kind" always plural, like "some kinds of chocolates"? Because although I'm using "some", it feels like "kind" shouldn't be a countable noun.  Anyway, I don't think I've heard of "some kind of + plural", but I think it makes more sense then using singular, since I think chocolates are countable. Please help! Find the value of $a^2-b^2+c^2$ I am new to TeX/LaTeX. How do I install TeX on Windows (7)? It seems that there are many different implementations, so which one is best for my OS? Can a deb package contain a PPA dependency and install packages from the PPA? When creating a .deb package I create a file named control that contains some fields:  Package: my-qt-app-name Version: 0.01 Architecture: all Maintainer: my name &lt;my email address&gt; Installed-Size: 2 Depends: some-package-from-ppa Section: extras Priority: optional Homepage: my homepage Description: some description   some-package-from-ppa is not installed on the computer. It can be installed only adding a PPA, running apt-get update and then apt-get install some-package-from-ppa.  Can a control file from a deb package contain a PPA address and install that package when the deb file is installed?