* {   margin: 0px; } .container {   background: #ccc;   line-height: 50px;   verticle-algn: middle;   clear: both; } .float {   overflow: hidden;   float: right; } &lt;div class="container"&gt;   &lt;button class="inside"&gt;inside&lt;/button&gt;   &lt;button class="float"&gt;float&lt;/button&gt; &lt;/div&gt;     Please check this example.I want the .float element to be vertically centered of the .container element as the .inside element.But no matter I trigger BFC or add a pseudo element, I can not clear the impact of the float element.I don't think margin is a best way to solve this.Can you tell me how to fix it, thanks for your help.
I have a div with two images and an h1. All of them need to be vertically aligned within the div, next to each other. One of the images needs to be absolute positioned within the div. What is the CSS needed for this to work on all common browsers? &lt;div id=&quot;header&quot;&gt;   &lt;img src=&quot;..&quot; &gt;&lt;/img&gt;   &lt;h1&gt;testing...&lt;/h1&gt;   &lt;img src=&quot;...&quot;&gt;&lt;/img&gt; &lt;/div&gt;
How do I make a redirect in PHP? Canonical Isomorphism Between $\mathbf{V}$ and $(\mathbf{V}^*)^*$ For the finite-dimensional case, we have a canonical isomorphism between $\mathbf{V}$, a vector space with the usual addition and scalar multiplication, and $(\mathbf{V}^*)^*$, the "dual of the dual of $\mathbf{V}$." This canonical isomorphism means that the isomorphism is always the same, independent of additional choices.   We can define a map $I : \mathbf{V} \to (\mathbf{V}^*)^*$ by $$x \mapsto I(x) \in (\mathbf{V}^*)^* \ \text{ where } \ I(x)(f) = f(x) \ \text{for any } \  f \in \mathbf{V}^*$$  My Question: what can go wrong in the infinite-dimensional case? The notes I am studying remark that if $\mathbf{V}$ is finite-dimensional, then $I$ is an isomorphism, but in the infinite-dimensional case we can go wrong? How? Windows & Ubuntu dual boot.No menu to choose OS? I just installed Ubuntu alongside Windows 7. Now I cant boot Windows 7 because it automaticaly boots Ubuntu without displaying boot menu. How can I get menu with options to choose which Os to boot? Can anyone help? I've found that while using Vim on Windows Vim saves the file, a .ext.swp file that's deleted on closing the Vim window and a .ext~ file.   I assume the .ext.swp file is a session backup in case Vim crashes. What's the purpose of the .ext~ file however? Is this a permanent backup file? It's annoying as I'd like to copy all the files I'm working on to my host, without these duplicates. How can I turn this off or, if it's there for a good reason, hide the files? Drop or change automatic migration-rejection based on non-existing tags I believe this feature creates more issues than it solves and thus would like to see it gone. (This is an out-growth of , which I repost here as it concerns several/all sites.)  The main reason why I think so is that there can be numerous reasons other than the subject being off-topic why some tag does not exist on some site, for one thing it could be a spelling, typesetting, or other formalistic reason. For example, for the two sites I know best MathOverflow and Mathematics hardly any of the most popular tags have a strictly matching tag on Mathematics but only because on MO there is the convention that certain tags are formatted in a specific way, which is not in place on Mathematics (for example nt.number-theory vs number-theory).  On top of that a user choosing the wrong site in the first place is likely not too well aware of the tags of the site they are posting too so that the question might be poorly tagged in the first place.         There is an additional detail I do not understand (it is obsolete if the actual request should be followed but in case it is not):   Even if on the source site a tag has a synonym and that synonym exists as a tag on the target site the migration is rejected. I do not understand the logic behind this at all. Possibly this is just an oversight.   I could also think of some other ways to improve the process while keeping the idea, but since I believe that it is best dropped I do not (yet) elaborate on this. This weekend is a "Supermoon" (the largest full moon of the year, in perigee, the closest to Earth). Would someone please advise how I could make the most out of my Canon PowerShot to photograph this phenomenon?    What settings should I use?    What times are the best with respect to the exact times of moonrise and moonset provided by the U.S. Naval Observatory? In other words, is it better 30 min before it crosses the horizon? Or just at the crossing? Are there any tips and tricks for a beginner to benefit from?  Are moonrises or moonsets generally better/easier to capture? Are there different techniques for different phases of the moon?   I read that full moon tends to come out flat, but I also want to benefit from the perigee. No group of order 400 is simple Unable to preserve ownership in a copy but able with a move? interaction between mathematical structures From a physicist's perspective there are several situations in which somehow arbitrary choices of mathematical structures can be made. One can describe a system from different perspectives, etc. without changing anything in the physical properties. (see gauge invariance, picture changing etc.) In the situation when these choices impose a mathematical structure one has limitations in the subsequent choices (are these limitations physical???). However, there are situations when this prescription does not hold. The best example is in this case the Black-Hole complementarity principle (if it is well defined in the first place). So, the question about how mathematical structures "interact" in a logical way is not a bad one. Again: what is the interaction between, say, locality and Hausdorff-ity in the case of a black hole? Or what is the true relation between metrizability and hausdorff-ity of a space in the context of a black hole? The question about how mathematical structures assigned (innocently) at some point interact in different situations is in my opinion a quite relevant one... I am trying to install Ubuntu 12.10 for quite some time, and passing hurdles one by one. Now I am in a situation as follows.  I have got a PC and 10 GB HDD which will be totally dedicated to Ubuntu so no option of Wubi and dual boot.  I was trying to install from DVD, but it is getting stuck at "Out of frequency" error. So I had to adapt for USB boot option. But my PC is USB non bootable, so workaround is "Plop Boot Manager". So I am doing the installation procedure as follows:   starting  from a CD drive which is having plop installed. opting for for USB boot in plop options. booting begins from USB. monitor eventually gives "out of frequency" error press Shift+Alt+F1 to get the terminal. open the grub with sudo nano /etc/default/grub. do necessary changes. sudo update-grub.   Now here I am getting error as follows:   /usr/sbin/grub-probe:error:failed to get canonical path of /cow.     My system is   P4 3.06 GHz, 1 GB ram , 10 GB HDD without an OS, monitor CRT lg StudioWorks (7 years old). Mobo Mercury P4 266a NDMx (865 equivalent). The whole system is perfectly in working condition under XP, but it is USB non bootable, and all other devices working perfectly.  What should I do next? Convert ls -l output format to chmod format DNS, multiple nameservers and geolocation? Currently, when a DNS client makes a request for a DNS record (say, www.example.com., it needs to traverse the DNS tree. It asks the root servers for the location of com., which it then asks for the location of example.com., which it then asks for the location of www.example.com.. Thankfully, much of this is cached.  If example.com. has multiple, geographically diverse NS records listed, my understanding is that these are listed in random order to avoid all queries going to the first (or last) NS record listed.  This would appear to imply that a DNS resolver in Australia could choose a NS record for a nameserver that's located far away, perhaps in Europe, when there may be another authoritative nameserver that is much closer.  So, my question is: Is there any provision within the DNS spec to allow DNS resolvers to select an authoritative nameserver that's local to them? The only way I can see to achieve this is to have the NS records behind an anycast address and do local resolution that way. Would this work? Is there any other option? How to make listings code indentation remain unchanged when copied from PDF? So I am using  package for code examples. But there is a problem. When I copy the code examples from the final PDF document, they are usually not the same - the indentation is gone, there are random spaces after parenthesis, etc. Does anyone know how to make sure that the code that I copy from the final document is the same as I wrote it in the LaTeX document?  Here is what I mean. Compile this document:  \documentclass[12pt,oneside]{memoir}  \usepackage{listings} \usepackage[T1]{fontenc} \usepackage{xcolor} \usepackage{textcomp}  \definecolor{codebg}{HTML}{EEEEEE} \definecolor{codeframe}{HTML}{CCCCCC}  \lstset{language=Awk} \lstset{backgroundcolor=\color{codebg}} \lstset{frame=single} \lstset{framesep=10pt} \lstset{rulecolor=\color{codeframe}} \lstset{upquote=true} \lstset{basicstyle=\ttfamily} \lstset{showstringspaces=false}  \begin{document}  This code example prints out all users on your system:  \begin{lstlisting}[language=c] #include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; #include &lt;string.h&gt;  #define MAX_LINE_LEN 1024  int main() {     char line[MAX_LINE_LEN];     FILE *in = fopen("/etc/passwd", "r");     if (!in) exit(EXIT_FAILURE);      while (fgets(line, MAX_LINE_LEN, in) != NULL) {         char *sep = strchr(line, ':');         if (!sep) exit(EXIT_FAILURE);         *sep = '\0';         printf("%s\n", line);     }     fclose(in);     return EXIT_SUCCESS; } \end{lstlisting}  \end{document}   Now compile it, open it, select and copy the code example and paste it in a text editor. Here is the result I get:  # include &lt;stdio .h&gt; # include &lt;stdlib .h&gt; # include &lt;string .h&gt; # define MAX_LINE_LEN 1024 int main () { char line [ MAX_LINE_LEN ]; FILE *in = fopen ("/ etc / passwd ", "r"); if (! in) exit ( EXIT_FAILURE ); while ( fgets (line , MAX_LINE_LEN , in) != NULL ) { char * sep = strchr (line , ':'); if (! sep ) exit ( EXIT_FAILURE ); * sep = '\0 '; printf ("%s\n", line ); } fclose (in ); return EXIT_SUCCESS ; }   Jeez! What's this... The indentation is gone. There are spaces in included headers &lt;stdio .h&gt;, there are spaces after parenthesis [ MAX_LINE_LEN ].  Anyone knows how to fix this? I'd like the code examples in my book to be copy/paste-able into a text editor so people can try them out easily. Schengen visa for two subsequent short trips: One visa or two? I will go to France from 17/12/13 – 19/12/13, then I will come back to London. And again I will go back to Portugal and Spain from 26/12/13 to 03/01/14 which I will stay in Spain for the longest period. However, the Spanish consulate told me that I have to request for the visa from the French consulate.  The point is: Do I need to apply for a visa for a single trip two times (from French and Spanish consulate) or a single visa for multiple time (from French consulate). How to connect to wifi using just the terminal? is a dove a "she"? how to use "he" and "she" for animals? In the song &quot;Blowing in the Wind&quot; by Bob Dylan, there's a verse that reads:  Yes, and how many seas must a white dove sail Before she sleeps in the sand?  My question is, why he used &quot;she&quot; for a dove? What about other animals and other non-humans? Is there a general rule? We're building a feature for a website and trying to think of a hypernym for clients, partners and members so that the feature remains generic enough for re-use later on other websites. How do I safely investigate a USB stick found in the parking lot at work? I work at an embedded software company. This morning I found a USB stick in the parking lot in front of the building. With all the stories of "dropped USB stick attacks" in mind, I'm obviously not going to just plug it into my laptop. OTOH, I'm curious to know whether this was actually an attempt to compromise our systems, or it's really just an innocent case of somebody accidentally losing a USB stick. How do I safely inspect the USB stick without risking exposure?  I'm worried not just about malware and crafted file system images; there's also stuff like power surge attacks:.  EDIT: Many of the answers seem to assume I want to keep the drive and use it afterwards. I have no interest in that at all, I know USB sticks are cheap, and that it wouldn't be mine to keep anyway. I only want to know whether this was indeed a semi-targeted attack, partly out of curiosity whether this actually happens in real life and not just in security papers, but also so that I could warn my coworkers.  I want to know how I would figure out whether the stick contains malware. And that's not just a matter of looking at the drive contents and seeing a suspicious autorun.inf or a carefully crafted corrupt file system - I very much also want a way to inspect the firmware. I sort-of expected that there were tools for extracting that and comparing to known-good or known-bad binaries. How to connect RDS from a different account with allowed IP in AWS? Unity Performance: How many Materials per Object?