Problem: unable to horizontally center the image: Please see the code example here:   .row {   background: #f8f9fa;   margin-top: 20px; }  .col {   border: solid 1px #6c757d;   padding: 10px; }  .index-img-container {   width: 200px;   height: 200px; }  .index-img {   max-width: 100%;   max-height: 100%; } &lt;link href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.css" rel="stylesheet"/&gt;  &lt;div class="card "&gt;   &lt;div class="card-block m-1"&gt;     &lt;a href="" target="_blank" class="nounderline"&gt;       &lt;div class="index-img-container d-flex align-items-center justify-content-center"&gt;         &lt;img class="index-img" src="https://picsum.photos/536/354"&gt;       &lt;/div&gt;       &lt;div class="card-body card-body-fix"&gt;         &lt;div class="text-secondary font-italic"&gt;Title here&lt;/div&gt;         &lt;h6 class="card-title text-dark card-title-text"&gt;           Some text is shown here with The Lorem Ipsum for photos.         &lt;/h6&gt;         &lt;span class="text-space-no-wrap"&gt;                                                  &lt;span class="card-text text-danger"&gt;Important message&lt;/span&gt;         &lt;span class="card-text h5 text-secondary small"&gt;&lt;/span&gt;         &lt;/span&gt;         &lt;br&gt;&lt;span class="font-italic text-secondary small"&gt;+ Some note&lt;/span&gt;       &lt;/div&gt;     &lt;/a&gt;     &lt;a class="btn btn-info w-100" href="" target="_blank" role="button"&gt;View Details&lt;/a&gt;   &lt;/div&gt; &lt;/div&gt;    If I removed the css class &quot;index-img-container&quot;, the image will be centered. .index-img-container {     width: 200px;     height: 200px; }  I am unable to understand how this size-defining class can cause the image to align to left. But in order to keep all images the same size this class cannot be removed. Is there a solution? Thanks.
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;
Why is $\mathbb{C}[x,y]/(y^2 - x^3 + 1)$ normal? Let $(X, \mathcal{T})$ be a metrizable space. Prove that $X$ Lindelöf   implies that $X$ is separable.   My attempt:  Let $d$ be the metric that induces the topology $\mathcal{T}$.   For every $n \geq 1$, consider the open cover: $$\{B_X(x,1/n)\mid x \in X\}$$  Because the space is Lindelöf, this implies that for every $n \geq 1$, there is a countable (or finite) subcover given by $$\mathcal{B}_n:= \{B_X(x,1/n) \mid x \in I_n, |I_n| \leq |\mathbb{N}|\}$$  Now, define $D:= \bigcup_{n\geq 1} I_n$. Let $y \in X$. Let $\epsilon &gt; 0$. Choose $m$ a positive integer so large that $1/m &lt; \epsilon$.  Because $y\in X =\bigcup\mathcal{B}_m$, it follows that there exists $x \in D$ such that $y \in B_X(x,1/m)$, meaning that $d(x,y) &lt; 1/m &lt; \epsilon$, such that $x \in B_X(y, \epsilon) \cap D$. Hence, $y \in \overline{D}$ and it follows that $D$ is a dense countable set in $X$, such that $X$ is separable.  Is this correct? Which is correct, "neither is" or "neither are"? How to specify an arbitrary (possibly non-integer) font size in LaTeX I may be wrong, but it seems to me that I cannot obtain non-integer (or non-preloaded) font sizes (say, 9.876pt) using \fontsize.  If this is true, how do I do this in LaTeX?  Do I have to resort to the \font ... at ... primitive?  (The reason I need this is that I'd like to implement a more LaTeXy way to do the \diminuendo macro from .) Detecting an undefined object property What's the best way of checking if an object property in JavaScript is undefined? example of discontinuous function having direction derivative Is there a function (non piece-wise unlike below) which is discontinuous but has directional derivative at particular point? I have a manual that says the function has directional derivative at $(0,0)$ but is not continuous at $(0,0)$. $$f(x,y) = \begin{cases} \frac{xy^2}{x^2+y^4} &amp; \text{ if } x \neq 0\\  0 &amp; \text{ if } x= 0 \end{cases}$$  Can anyone give me few examples which is not defined piece wise as above? Integrating $\int^2_{-2}\frac{x^2}{1+5^x}$ $$\int^2_{-2}\frac{x^2}{1+5^x}$$  How do I start to integrate this?  I know the basics and tried substituting $5^x$ by $u$ where by changing the base of logarithm I get $\frac{\ln(u)}{\ln 5}=x$, but I got stuck.  Any hints would suffice preferably in the original question and not after my substitution.  (And also using the basic definite integrals property.)  Now I know only basic integration, that is restricted to high school, so would prefer answer in terms of that level. Why does $(g^b \bmod m)^a \bmod m = (g^a \bmod m)^b \bmod m$? I have been trying to understand why the diffie hellman key exchange algorithm works, specifically why the two exponents can be swapped in it without the result changing.   So my specific question is why:  (g^b mod m)^a mod m  = (g^a mod m)^b mod m  I am interested in the reasoning/proof/explanation behind why it is true.    Thank you I'm trying to create a multi-page table with all cells having the same height (as well as certain fixed widths) so that certain manual cut-and-paste operations are a lot easier.  One issue is that one column in particular is text-heavy and should line-break within the cell.  As I don't want it justified, I looked into alternatives such as .  This is doing exactly what I want for horizontal alignment.  For vertical alignment, I've looked at  and the \vphantom method detailed in the above link doesn't seem to be working.  Here's what I'm currently working with:  \documentclass[11pt]{article} \usepackage{array}  \newcolumntype{P}[1]{&gt;{\raggedright\hspace{0pt}\arraybackslash}p{#1}} \def\Z{\vphantom{\parbox[c]{1.7in}{\Huge Something Long}}}  \begin{document} \begin{tabular}{| c || P{0.5in} || P{0.5in} || P{5in} |}\hline  1.  \Z &amp;&amp;&amp; Long long long long long long long long long             long long long long long long long text  \\\hline 2.  \Z &amp;&amp;&amp; More long long long long long long long long             long long long long long long long text  \\\hline \end{tabular}   When I compile, the cells do not have a uniform height, and none of them are as large as 1.7 inches vertically.  So this suggests that somehow the \vphantom method is failing.  Does anybody know of a relatively straightforward solution to this problem? How can I use quotas in samba? I have a simple set-up with just one public share on my configuration file. How can I restrict its size? Low current battery monitoring Is the collapse of the wave function inherently time asymmetric? Why are the shebang parts of the following elementary scripts not working:  $ cat hello.sh #! /bin/sh echo Hello $ ./hello.sh bash: ./hello.sh: /bin/sh^M: bad interpreter: No such file or directory  $ cat hello.py #! /usr/bin/env python3 print("Hello") $ ./hello.py : No such file or directory   whereas calling the interpreter manually is working:  $ sh hello.sh Hello $ python3 hello.py Hello I want to get records from custom object sort by a field as number. The field I want to sort is string type. Is there any way to do that? I am storing result in list, is there a way to sort list based on the string field but sort it as number? I work with QGIS 2.10.1 on Windows 7 (x64). I have dissolved polygons from an attribute value and the polygons geometries being not perfectly joined together, I get some 'garbage' nodes I need to delete. I have tried to edit the layer and using nodes tool, selecting and deleting the nodes, but it seems impossible to do (nodes are not deleted at all!). Any idea on how to process this kind of clean-up?  EDIT : you can  for testing. How to use figure inside a minipage? I'm trying to include an image, and keep it centered, and prevent from wrapping from the next page.  The following code works for that:  \begin{minipage}{\textwidth}     \begin{center}         Caption for image          \includegraphics[scale=0.5]{myimage.png}      \end{center} \end{minipage}   I'd like this image to be in a figure, with a caption.  The following doesn't compile:  \begin{minipage}{\textwidth}     \begin{figure}         \includegraphics[scale=0.5]{myimage.png}         \caption{Caption for image}         \label{fig:sample_figure}     \end{figure} \end{minipage}   I get the errors:  ! LaTeX Error: Not in outer par mode. ! Undefined control sequence.   How can I fix this? I've created a simple mesh consisting of a cube that has been modelled out into a corner by extrusion:    I'm now trying to sculpt detail onto it in sculpt mode using dynotopo, however I'm getting different results on different sides of the mesh.  The bottom of the mesh (which was the original cube that I extruded from) sculpts nice and smoothly as expected, however the other side is jagged and distorted which I can't sculpt as nicely. Why is this? The original faces appear to be the same. Inner join vs Where Is there a difference in performance (in oracle) between  Select * from Table1 T1  Inner Join Table2 T2 On T1.ID = T2.ID   And  Select * from Table1 T1, Table2 T2  Where T1.ID = T2.ID   ? Show $f$ is analytic if $f^8$ is analytic This is from Gamelin's book on Complex Analysis.  Problem: Show that if $f(z)$ is continuous on a domain $D$, and if $f(z)^8$ is analytic on $D$, then $f(z)$ is analytic on $D$. (I assume the intention is that $D$ is nice, i.e. open and connected)  I'm not exactly sure how to approach this. I'm guessing it has something to do with zeroes of $f$. For example, around non-zeroes, $f$ is analytic since $z^{1/8}$ is nonzero in a neighborhood. Or something along those lines. The details are eluding me.  Any help would be appreciated! Effective way to find any file's Encoding