I am trying to center a DIV vertically and horizontally in a page:   * {   box-sizing: border-box; }  div.wrapper {       border: 1px solid red;   position: relative; }  div.window {   border: 1px solid blue;   max-width: 300px;   position: absolute;   top: 50%;   left: 50%;   transform: translate(-50%, -50%); } &lt;div class="wrapper"&gt;   &lt;div class="window"&gt;     Sed blandit augue quis diam tristique fringilla. Morbi tortor leo, efficitur sit amet ultrices non, lacinia ut nunc. Donec ut odio a diam semper consequat quis in leo.    &lt;/div&gt; &lt;/div&gt;    Somehow this is not vertically centered. What am I doing wrong?
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;
Windows Backup & Restore: What to Keep from AppData? A couple years ago, my father made a backup of one of our computers using Windows Backup and Restore. It was either Windows Vista or Windows 7, not sure which. He backed up the entire computer, including Program Files, AppData, My Documents, everything, and now it is on .zip files on a WD Passport with 300GB, I'm not sure exactly what it is called. Now I am trying to decide which files to keep and which to delete. Most of what we would keep are files, as we would need CD's to use the programs, and I'm pretty sure they would install everything all over again. That pretty much leaves out Program Files, however, I'm not sure about AppData. For example, my mother used Greetings Workshop and wants some files from there, and she may want to keep some default settings she used. I am talking generally here, as I'm sure some programs have different ways of saving things in AppData.  What, if anything, should I keep from AppData, and what should I delete? VMware won't work after Ubuntu Upgrade I upgraded to Ubuntu 15.10 and now if I want to open VMware Player it doesn't do anything. I also uninstalled and installed it again, still nothing.  What can I do? I really enjoyed that site. I've only posted on it once, but I enjoyed seeing other people's posts and appreciated reading about entrepreneurial dilemmas. style=apa causes bibliography to fail How to Recover truncate table in MySQL? I am getting the "wrong input table name" when use TRUNCATE as following:  TRUNCATE `stats`   The table should bans.  How to recover stats table?  I am using CentOS 6, and MySQL-Server. crm 2011 how to hide/show the ribbon button with javascript Proving that cardinality of the reals = cardinality of $[0,1]$ Displaying layout marks in a document set with different layouts Is there any package that allows for the display of layout marks within a document where the layout changes several times throughout? I'm using the geometry facilities to issuing \newgeometry commands throughout my document, but it doesn't update the displayed layout and neither does the showframe package or the facilities of the memoir class.  EDIT: As Werner has pointed out, the showframe option of the geometry package displays correctly any updated page layout set by issuing \newgeometry commands.   My trouble came out of the fact that I'm issuing also \pagecolor commands and the page color seems to be hiding the layout lines typeset according to the geometry package. My confusion only worsened because the showframe package layout lines were not hidden by the page color (the package got the layout wrong on some pages, though). So, it all boils down to a conflict with the page color.   Even though I'm using geometry's showframe option for "debugging" ends, and I don't mind to have no page color at that stage of development, is it possible to override this problem and have at the same time both the page layout displayed by geometry as well as the page colored?   Btw, should I open a new question given that the problem is actually different from the originally posted one? Wifi disabled, no hardware switch available, rfkill list reads "Hard Blocked" anyway on an Acer Aspire One How to find Oracle's installed version and release from a program? Transforming Differential Equation to a Kummer's Equation I'm trying to transform an equation of the form $$ yw^{\prime\prime}(y) - [b - ay] w^\prime(y) - [d + ey]w(y) = 0 $$ into the form of a Kummer's or confluent hypergeometric differential equation: $$ y w^{\prime\prime}(y) + [f - y] w^\prime(y) + g w(y)  = 0 $$ I know it may have something to do with merging two of the singularities of the original equation, and maybe doing something with $y$, making it $\frac{y}{b}$ and taking b to infinity, but I don't know and can't find the details for this process, and for my equation specifically. There's not too much difference between the two but just enough so that I can't get it. Thanks in advance for any help! Why is college tuition high, but academic salaries low? Editing Subject in new Gmail For , the answer given on 7 Feb about how to edit the subject line in the new format of Gmail does not work for me.   There is no box on the left with a down arrow to options to reply, forward or edit subject in my version. There is a book on the right offering options to    Reply Reply to all Forward Filter message Print Delete Report spam Report phising Show original Message text garbled Translate message Mark answered    But, no option to edit subject Effect of linear terms on a QFT I was told when first learning QFT that linear terms in the Lagrangian are harmless and we can essentially just ignore them. However, I've recently seen in the linear sigma model, \begin{equation}  {\cal L} = \frac{1}{2} \partial _\mu \phi _i \partial ^\mu \phi _i - \frac{m ^2 }{2} \phi _i \phi _i  - \frac{ \lambda }{ 4} ( \phi _i \phi _i ) ^2  \end{equation}  with $m ^2 =-\mu^2 &gt; 0$, adding a linear term in one of the fields $\phi_N$, does change the final results as you no longer have Goldstone bosons (since the $O(N)$ symmetry is broken to begin with).   Are there any other effects of linear terms that we should keep in mind or is this the only exception of the "forget about linear terms" rule? I have now almost completed my family tree, having each branch going back to approximately the French revolution, discovering dozens of previously unknown ancestors.  I would like to share the family tree with my family, the problem is that I cannot have a tree in a nice format that could be printed on a standard A4 sheet (maybe using both sides or whathever).  I have a SVG tree that use graphics, but it is unconventionally large and if scaled down to a A4 sheet, the text would be so small that it would not be legible. The maximum width is of about 50 ancestors of a generation, then it goes sparse again.  I'd like to know if a format exist where the family tree (with direct ancestors only) would be printable, with names but also other complementary information, and the format should be printable as not all my family users are particularly skilled with computers. I am trying to INSERT INTO a table using the input from another table. Although this is entirely feasible for many database engines, I always seem to struggle to remember the correct syntax for the SQL engine of the day (, , , , and ).  Is there a silver-bullet syntax coming from an SQL standard (for example, ) that would allow me to insert the values without worrying about the underlying database? How to install a deb file, by dpkg -i or by apt? Command for forcing a pointer ungrab (captured mouse release) Sometimes Firefox doesn't release the mouse after dragging, so I need to kill the application to force it to release its pointer grab.  Is there any command to force an application to ungrab the pointer without killing it? How to check internet access on Android? InetAddress never times out Show the number of up-votes and down-votes on the mobile site theme