I want to make any elements inside of div to be centered vertically and horizontally.  Here's my HTML :  &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Login&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;div class="login"&gt;     &lt;form action="prosesLogin.php" method="post"&gt;         &lt;h1&gt;Login&lt;/h1&gt;         &lt;table&gt;             &lt;tbody&gt;                 &lt;tr&gt;&lt;td&gt;Username&lt;/td&gt;&lt;td&gt;&lt;input type="text" name="username"&gt;&lt;/td&gt;&lt;/tr&gt;                 &lt;tr&gt;&lt;td&gt;Password&lt;/td&gt;&lt;td&gt;&lt;input type="password" name="password"&gt;&lt;/td&gt;&lt;/tr&gt;                 &lt;tr&gt;&lt;td colspan="2" align="right"&gt;&lt;input type="submit" value="Login"&gt; &lt;input type="reset" value="Batal"&gt;&lt;/td&gt;&lt;/tr&gt;                 &lt;tr&gt;&lt;td colspan="2" align="center"&gt;Belum memiliki akun ? &lt;a href="register.php"&gt;&lt;b&gt;Daftar&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;             &lt;/tbody&gt;         &lt;/table&gt;     &lt;/form&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt;   and this is my CSS :  .login{    height: auto;    margin: 0 auto;    border:1px solid blue; }   But it doesn't work, please tell how to make it. Thank you.
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;
Can we have a list of all the Stack Exchange domains somewhere, for firewall purposes? I work behind an really annoying firewall, and I just want the net admin to add all the SE websites to the whitelist. Right now I've lost access to Stack Overflow's authentication, but not Meta's... so I have to come here before I log in there.  It's driving me nuts. Basically I just want to add an exclusion rule for all SE domains; not only the website domains, but also the content domains such as gravatar.com, quantserve.com, the domain that holds static content, etc... Fish vs Fishes for plural use Now, I encountered a sentence in a text book, saying     Many fish are specially adapted to live only in certain places.   I know that plural of the word fish can be fish as Merriam says    But wouldn't it someway or somewhat sound unusual or "too unique"?  Is it only to me? Anyone have a good resource or provide a sample of a natural order sort in C# for an FileInfo array?  I am implementing the IComparer interface in my sorts. Minecraft crashes on launch with EXCEPTION_ACCESS_VIOLATION, Problematic frame: ig4dev32.dll or ig4dev64.dll or ig4icd32.dll or ig4icd64.dll What's wrong with these two cron jobs? I have the following cron jobs defined.  55  8   *   *   3   /usr/bin/php /home/mark/dev/processes/customClient/events.php &gt; /home/mark/dev/processes/customClient/events-`date +%Y-%m-%d --date='last Wednesday'`-`date +%Y-%m-%d`.csv 0   9   *   *   3   /usr/bin/echo 'The csv for last week, trying my hand at automatiging this' | /usr/bin/mutt &lt;emailaddress&gt; -s 'Events from `date +%Y-%m-%d --date='last Wednesday'`-`date +%Y-%m-%d`' -a '/home/mark/dev/processes/customClient/events-`date +%Y-%m-%d --date='last Wednesday'`-`date +%Y-%m-%d`.csv'   It seems to work properly if I run it the above command directly from the command line. But when I checked the running of the script this morning I got an e-mail stating (I'm paraphrasing because I accidentally deleted them) that the back ticks weren't closed properly. What are 'closures' in .NET? What is a closure? Do we have them in .NET?  If they do exist in .NET, could you please provide a code snippet (preferably in C#) explaining it? I'm using  and trying to switch from Web Applications to Stack Overflow.   I enter sta into "Switch sites" field, but search showing unrelated results first (3D Printing, 3D Printing Meta, Software Engineering ...): How can I make a Click-once deployed app run a startup?  The best option I found by searching was to set the Publisher on the app to Startup, so the Start menu shortcut would be placed in the Startup folder, but that seems like a huge hack and I would like there to be a Start menu icon people can find.  What options do I have? I think my device got a malware. A lock screen with ads sometimes appear, and I must swipe an area at the bottom of the screen to open the phone. I am in Eastern Europe, some ads are in Slavic languages, and they are seemingly related to travel.    Image resized. Click to view the full image  I have seen ads for Lot Air (Polish carrier). I recently went to their site.  Considering my recent surfing activity and the nature of the ads, I guess the malware is connected to airlines active in Eastern Europe.  The lock screen also promotes the app "DU Quick Charger" by claiming it has recharged the phone extra fast during screen off. (!?) It also shows battery level. I have never installed DU Quick Charger. I doubt DU Quick Charger is installed on the phone.  The problem started after installing Ryanair app. The problem is maybe, but not surely, related to this. Uninstalling Ryanair and restarting the phone doesn't remove the occasional appearance of this lock screen. After a while the situation has changed for the worse, now this lock screen appears after EVERY screen off.  I have always used Avast. I am not rooted and only install via Google Play.  What is this? And how do I remove it? Is there anything I can do about someone who has pointed their domain at my ip? This is kind of a weird request. For some reason whoever owns safeandbuy.com has pointed their domain at my IP address. The reason it's a problem is that I'm having all kinds of crawlers that are trying to crawl my site with that domain name.   Is there anything I can do about this? Elected moderators can nominate themselves , and I can nominate myself again, despite having won the first round of election.    I understand this isn't going to be easy to fix, given that SE only knows about community mods, employees and developer roles, and pro-tempore mods need to be able to nominate themselves. Let $g$ be a function on $\mathbb R$ to $\mathbb R$ which is not identically zero and which satisfies the equation $g(x+y)=g(x)g(y)$ for $x$,$y$ in $\mathbb R$.   $g(0)=1$. If $a=g(1)$,then $a&gt;0$ and $g(r)&gt;a^r$ for all $r$ in $\mathbb Q$.   Show that the function is strictly increasing if $g(1)$ is greater than $1$, constant if $g(1)$ is equal to $1$ or strictly decreasing if $g(1)$ is between zero and one, when $g$ is continuous. I've had an issue for a while now which makes my Alt + Tab not work and function correctly.  I can't:   Click on it It displays items which are supposed to be hidden (?) It doesn't use the Aero theme   I've tried the following:   Rebooting Closing dwm.exe Updating Windows.   If there is a need for OS: I'm running Win 8.1 x64.  Example: For example, if I revisit a memory of mine where I'm inside a castle and talking to someone, can the present-me explore different parts of the castle meanwhile the past-me continues her conversation? Is that possible? Create element in pdf that doesn't print to paper Are there rules for creating level 0 characters? Are there rules for creating level 0 characters in 5e? I've been running a campaign where the players begin sub-standard and 1st Level characters are generated in-game as the story unfolds. I just made them all begin with a couple of hp and 9's across the board for ability scores (since I wanted them at a disadvantage compared to the average human, and to fail at a generic DC10 task more often than succeed).  It was a real grind, with many opportunities for TPK (total party kill) when faced with even a single challenge rating 1/2 adversary (obviously I fudged the dice a little to prevent this). Are there published rules for this?  If there aren’t published rules for this, has anyone tried doing something like this? Any first hand experience on how it has played out would be welcome. Let $R$ be a commutative ring with identity, and $S$ a multiplicative subset of $R$ not containing $0$. Which step in my reasoning is wrong?   Every element of $S$ is a unit in $S^{-1}R$. Every element of $S$ that's a zero divisor in $R$ is a zero divisor in $S^{-1}R$. But zero divisors can't be units. Therefore it's not possible to localize $R$ at $S$. How to use hook_node_presave to change field's value Construction of a right triangle It's a high school level question which we can't seem to solve. Here it is:      Given $2$ lines, one of the length of the hypotenuse and the other with the length of the sum of the $2$ legs, construct with straightedge and compass the corresponding right triangle   I didn't make much progress. It seems that there's a theorem or a few basic facts about right triangles that I'm missing. What path do you suggest I take?  Thanks for your help. How can I switch a 32-bit installation to a 64-bit one? I've got a 32-bit Ubuntu installation running on 64-bit hardware. Now that , I would like to switch to 64-bit without having to reinstall the OS.  This is one of the :  Shawn installed his system using the 32-bit version of Ubuntu, but his hardware is 64-bit and he wants to switch over. He manually installs the amd64 versions of dpkg and apt, replacing the i386 versions and changing which architecture is used as the default; then he installs the amd64 ubuntu-minimal package; then he installs the amd64 ubuntu-desktop package. Over time the remaining i386 packages are replaced automatically on upgrade.  However, when trying to follow the instructions in there, I cannot find any 64-bit version of dpkg or apt.  Did this user story got implemented in a different way in the final spec, or do I need to do something differently?  In short, how can I switch my 32-bit installation to 64-bit?