I have 2 divs. One inside of another. The one on the outside has a width and height of 500px, and the one on the inside have a width of auto. I'm trying to center the div on the inside, but I'm also trying to get the width of it to be auto. It's not adjusting the width to auto, and instead it's spanning the entire 500px of the outer div. I'm not sure what I did wrong, so please take a look at my code:   &lt;style&gt;  #outer { border: 1px solid black; width: 500px; height: 500px; } #inner { border: 1px solid black; width: auto; margin: auto; }  &lt;/style&gt;  &lt;div id = 'outer'&gt;  &lt;div id = 'inner'&gt; Inner &lt;/div&gt;  &lt;/div&gt;
Best way to center a &lt;div&gt; element on a page both vertically and horizontally?  I know that margin-left: auto; margin-right: auto; will center on the horizontal, but what is the best way to do it vertically, too?
Expected number of rolling a pair of dice to generate all possible sums A pair of dice is rolled repeatedly until each outcome (2 through 12) has occurred at least once. What is the expected number of rolls necessary for this to occur?  Notes: This is not very deep conceptually, but because of the unequal probabilities for the outcomes, it seems that the calculations involved are terribly messy.  It must have been done already (dice have been studied for centuries!) but I can't find a discussion in any book, or on line. Can anybody give a reference? SQL Server, convert a named instance to default instance? I need to convert a named instance of SQL server 2005, to a default instance.  Is there a way to do this without a reinstall?    The problem is, 2 out of 6 of the developers, installed with a named instance. So its becoming a pain changing connection strings for the other 4 of us. I am looking for the path of least resistance to getting these 2 back on to our teams standard setup.    Each has expressed that this is going to be, too much trouble and that it will take away from their development time. I assumed that it would take some time to resolve, in the best interest of all involved, I tried combing through configuration apps installed and didn't see anything, so I figured someone with more knowledge of the inner workings would be here. When looking at my objects in 3d view I'm seeing a gray cone that seems to be hiding other objects.   Can anyone help me turn this off and explain what it is please.  Screenshots attached. If $f^3=\rm id$ then it is identity function Let $f:\mathbb{R}\to \mathbb{R}$ be a continuous function such that $f^3(x)=f\circ f\circ f(x)=x$ for all $x$.  How can I prove $f$ is the identity function? How to completely remove Notepad++ in Ubuntu 18.04 terminal?  I can't find it in Synaptic package manager, and don't know where is on system, but I can see an icon in Activity. It is probably not completely installed, because I can't open it. Traditional search-as-you-type on newer Nautilus versions Until now I was using a "traditional" version of Nautilus: that that comes with Ubuntu 10.10. Now I'm using 3.6.3, included with Ubuntu 13.04 (most likely any recent version is equivalent for the scope of my question, anyway).  One major difference between the two is the search-as-you-type behavior: in classic versions of Nautilus, when you typed an input, the file with the closest alphabetical match would become the selected one, the eligible files/folders being restricted to the current directory.  The new behavior is to perform an optionally-global search instead.  Can one configure Nautilus to provide the previous functionality ? Process descendants Unfortunately MyApp has stopped. How can I solve this? Steps to solve this system of equations: $\sqrt{x}+y=7$, $\sqrt{y}+x=11$ I want to solve this system of equations, I have been out of Maths for a long!!  $$\sqrt{x}+y=7$$  $$\sqrt{y}+x=11$$  Just wondering easiest step to find values for $x$ and $y$ from the above equations? How can I iterate over an enum? Is there a way to disable file:/// protocol in google chrome?  Is there some option, or some switches that can disable this feature?  Please help How do I clone a subdirectory only of a Git repository? I have my Git repository which, at the root, has two sub directories:  /finisht /static   When this was in , /finisht was checked out in one place, while /static was checked out elsewhere, like so:  svn co svn+ssh://admin@domain.com/home/admin/repos/finisht/static static   Is there a way to do this with Git? I need to show the following: $$\lim_{k\rightarrow \infty} \left(1 + \frac{z}{k}\right)^k=e^z$$  For all complex numbers z. I don't know how to start this. Should I use l'Hopitals rule somehow? I use ubuntu to deal with daily job. Now I buy a new laptop, and I want to migrate my whole system(programs, packages, data, settings, etc) to the new machine.  I know I can copy my home folder to new machine and I will get (almost) all data and settings. But is there a safe way to copy the whole system? Or it's a bad idea? No internet after upgrade to 17.10 If replicators allowed humans to stop working, why were replicators shut down in the Voyager? Mouseover events in beamer: hovering on \eqref and a comment containing the original equation popping up This idea came into my mind while I was listening to a speaker presenting his results in a seminar, he used lots of equation references in his later slides, however I can't remember which equation he was referencing to for he gave several models during an earlier stage of the presentation.   We could use hyperref to get hyperlinks on the \eqref, but clicking it would go back to the original page where the equation was labeled, and somehow interrupt the presentation.  I have several workarounds in mind: (1) exploit the \pause option as the overlay, once hitting space, the referenced equation would show. (2) use tikz to insert a minipage into the frame that contains the referenced equation.  However, both solutions require the referenced equation taking up spaces in the current slide the presenter is on, the best solution is still I said in the question title: mouse over the \eqref number, then a comment popping up showing the equation.  My google-fu leads me to a package called comment, however I didn't find any nice examples of how to use that package to produce beautiful slides.  Hence I wonder is it possible to produce some mouseover events like the title said, or any other workarounds are welcome too. I want to include some Cyrillic with a TeX Gyre Pagella text and math font document. I'm using TeXLive 2019.  As indicated in , running pdflatex on the following source works just fine:  \documentclass{article}  \usepackage[T1,T2A]{fontenc} \usepackage[russian,main=english]{babel} \usepackage{paratype} \usepackage{tgpagella} \usepackage{substitutefont} \substitutefont{T2A}{\rmdefault}{PTSerif-TLF}  \usepackage{amsmath}  \usepackage[math]{blindtext}  \begin{document}  The topologist is {\Russian Алекс\'{а}ндров}.  \blindmathpaper  \end{document}   However, running xelatex on the following surce produces output from which the indicated Cyrillic just disappears:  \documentclass{article}  \usepackage[T2A,T1]{fontenc} \usepackage[russian,main=english]{babel} \usepackage{amsmath} % load here to avoid \dddot clash \usepackage{fontspec} \usepackage{paratype} \setmainfont[Ligatures=TeX]{TeX Gyre Pagella} \usepackage{substitutefont}% \substitutefont{T2A}{\rmdefault}{PTSerif-TLF}%  \usepackage{unicode-math} \setmathfont{TeX Gyre Pagella Math}  \usepackage[math]{blindtext}  \begin{document}  The topologist is {\Russian Алекс\'{а}ндров}.  \blindmathpaper  \end{document}   Question: How should this second source be fixed so as to allow the Cyrillic to appear, too?  (I did put Map paratype-truetype.map into my local updmap.cfg file and did run updmap-user.) Which Stack Exchange sites use MathJax? As the title says, I could use an exhaustive list of all Stack Exchange sites that use MathJax.  If the list included any site-specific customizations made to the MathJax configuration on each site, that would be even better. Setting NTP on Windows 2008 Domain