It's part of my blog's logo. I have logo image and text inside the div. Now, the image is aligned middle but the text is not in the middle of the div. How can I do this without using margins? Here's my code:    &lt;head&gt; &lt;style type="text/css"&gt;   #titleimage {     background: red;     display: inline-block;   }   #titleimage a {     text-decoration: none;   }   #titleimage img {     width: 33px;     height: 36px;     vertical-align: middle;   }   #titleimage span {     color: white;     font-family: sans-serif;     font-size: 26px;   } &lt;/style&gt; &lt;/head&gt;  &lt;body&gt;   &lt;div id="titleimage"&gt;     &lt;a href="#"&gt;       &lt;img src="images/vk8.png" /&gt;&lt;span&gt;PORTFOLIO&lt;/span&gt;     &lt;/a&gt;   &lt;/div&gt; &lt;/body&gt;
Why won't vertical-align: middle work?  And yet, vertical-align: top does work.   span{   vertical-align: middle; } &lt;div&gt;   &lt;img src="https://via.placeholder.com/30" alt="small img" /&gt;   &lt;span&gt;Doesn't work.&lt;/span&gt; &lt;/div&gt;
Citing a range of papers using numeric keys as in \cite{a, b, c} -> [1-3] Edit:  Of course my real code doesn't look exactly like this. I tried to write semi-pseudo code to make it more clear of whay I wanted to do.  Looks like it just messed things up instead.  So, what I actually would like to do is this:  Method&lt;Interface1&gt;(); Method&lt;Interface2&gt;(); Method&lt;Interface3&gt;(); ...   Well ... I thought that maybe I could turn it into a loop using reflection. So the question is: How how do I do it. I have very shallow knowledge of reflection. So code examples would be great.  The scenario looks like this:  public void Method&lt;T&gt;() where T : class {} public void AnotherMethod() {     Assembly assembly = Assembly.GetExecutingAssembly();      var interfaces = from i in assembly.GetTypes()     where i.Namespace == "MyNamespace.Interface" // only interfaces stored here     select i;      foreach(var i in interfaces)     {         Method&lt;i&gt;(); // Get compile error here!     }       Original post:  Hi!  I'm trying to loop through all interfaces in a namespace and send them as arguments to a generic method like this:  public void Method&lt;T&gt;() where T : class {} public void AnotherMethod() {     Assembly assembly = Assembly.GetExecutingAssembly();      var interfaces = from i in assembly.GetTypes()     where i.Namespace == "MyNamespace.Interface" // only interfaces stored here     select i;      foreach(var interface in interfaces)     {         Method&lt;interface&gt;(); // Get compile error here!     } }   The error I get is "Type name expected, but local variable name found". If I try  ...     foreach(var interface in interfaces)     {         Method&lt;interface.MakeGenericType()&gt;(); // Still get compile error here!     } }   I get "Cannot apply operator '&lt;' to operands of type 'method group' and 'System.Type'" Any idea on how to get around this problem? What is the main difference between an inner class and a static nested class in Java? Does design / implementation play a role in choosing one of these? What does this notation mean? $f(x) \equiv A$? If $\lim_{x\rightarrow\infty}f(x) = A$, prove that $f(x)\equiv A$.  Any help would be appreciated! I just don't even understand the question. Is there a way to scale up the bevel object on one end of a curve, a little bit over each point?  I notice the vertex "weight" slider will tweak how much influence each vertex has on the others, is there something like this that can scale the bevel object up a little bit?  Preferably with the option to constrain X,Y,Z independently What do the different colours in Ubuntu's ls command mean? For example, when I type the ls command in one of my folders, I get one of the files in light green, the other (which is a folder) in blue with green highlighting.   What do those colours mean, and there is any manual about all the colours? "Eat" is to "feed" as "drink" is to what? I need to find the caller of a method. Is it possible using stacktrace or reflection? Find $P(12)$ when $P(x)={1\over(x+1)}$, for $x=0,1,2,......11$ let $P(x)$ be a polynomial of degree $11$ such that  $P(x)={1\over(x+1)}$, for $x=0,1,2,......11$  then find value of $P(12)$ Stopping to eat is tedious, is there any way to automate the process? While I've managed to optimize and automate almost everything, constantly having to stop and eat is annoying (I run around a lot, so I get hungry quickly). Is there any device or tool that will keep me well fed at all times without having to stop and feed? How can a singularity in a black hole rotate if it's just a point? I guess nobody really knows the true nature of black holes, however, based on everything I know about black holes, there is a "singularity" at their center, which has finite mass but is infinitely small and thus infinitely dense.  So a black hole is really just a point mass that dramatically warps the space-time around it so that an event horizon is achieved.  What doesn't make sense to me is how a true mathematical "point" can rotate, or at least how it is even possible to determine if a point is rotating (or if it should even make a difference about whether or not it is rotating, for the same reason it would be impossible to tell if a perfect, featureless sphere were rotating (I know it would have higher rotational energy but lets assume you can't measure that because a true "point" can't attain rotational energy since it has no radius)).  The only conceptual solution I have to describe a rotating black hole would be to compare it to a rotating whirlpool, where the surface of the water is the fabric of space-time... but this is different because there is no "singularity" in a whirlpool that causes the water around it to rotate, whirlpools form from flow of water around a point (put into motion perhaps by some kid swirling water in a 2-liter bottle... it's due to an external cause), but the only thing that could cause rotation around a black hole would be the singularity itself, which doesn't make sense because, once again, how can we know if a true point is actually rotating?  Aside from everything I've said, here is what I am actually asking:  Why/how do some black holes rotate... what is the mechanism of their rotation (is analogous to a spinning point or a 3-d whirlpool, or something different)? Uncaught ReferenceError: $ is not defined? Is there any scientific experiment that can lead us to conclude we live in 3 spatial dimensions without the premise of the conception of limited dimensions?  Thank you all who helped in the improvement of this question (which was not clear at first).   EDIT:  I know that this can be a little philosophical, but it is also a scientific question.  Let's consider the scenario where the mankind was not ever able to see.  Let's also consider that this limitation could be surpassed thus not limiting us to reach a scientific and technological knowledge "similar" to what we have today.  Would this civilization of blind people reach the conclusion that they are living in a 3D spatial world?  Is the sense of touch enough to reach that conclusion? Is there any scientific experiment that can lead us to that conclusion without the premise of the conception of limited dimensions?  Would it be easier, harder, or just different to reach a conclusion predicted by the M-Theory? (please do not focus only on this last question) Show that $f(X - D) \cap f(D) = \varnothing$ with $f$ continuous in $X$, $D$ dense in $X$ and $f|_{D}$ homeomorphism Special Relativity - Regarding the Simultaneity of Events During the Train Paradox Why are effect size estimates (such as $R^2$) difficult in mixed-effects models? How can I make a list with most used commands in terminal? Algorithm for minimization of sum of squares in regression packages Area 51 reputation changes do not show up in the new Top Bar How to parseInt a string with leading 0