&lt;tr&gt;     &lt;td style='text-align: center;'&gt;             &lt;img style='height: 50px;width:50px;' src='./images/01.png' &gt;                &lt;img style='height: 15px;width:15px;'src='./images/02.png' &gt;         &lt;/td&gt;  &lt;/tr&gt;  How can I position  the 02.png   to the center  of the 01.png? For 1 layer.
914
I want to overlay one image with another using CSS. An example of this is the first image (the background if you like) will be a thumbnail link of a product, with the link opening a lightbox / popup showing a larger version of the image.   On top of this linked image I would like an image of a magnifying glass, to show people that the image can be clicked to enlarge it (apparently this isn't obvious without the magnifying glass).
26505
I think I'm not going to solve my problem with the Floats and positioning of figures. I have 4 diagramms and I need to place them on two pages and at the end of the second page the caption for all 4 figures. So two figures on each page. For the the diagramms on the second page I need to place the upper image near to the top because I need some place for the caption. On the page before I need both figures to be centered in the middle with some spacing between them. So this is my code:   \begin{figure}[c] \centering \includegraphics[width=\linewidth]{45.pdf} \end{figure} \begin{figure}[c] \centering \includegraphics[width=\linewidth]{46.pdf} \end{figure} \makeatletter \setlength{\@fptop}{0pt} \makeatother \begin{figure}[t!] \centering \includegraphics[width=\linewidth]{47.pdf} \captionsetup[figure]{font=small,skip=0pt} \includegraphics[width=\linewidth]{48.pdf} \caption{Konzentrationsprofile von Al, Re, Ta und W entlang der &lt;110&gt;-Richtung in der UC. } \end{figure}   The problem for the secong page was solved, but the figures on the first page were also forced to the top which I don't want!
20903
I have 6 images, and I want to align them in this way  (a)image1 (c)image3 (e)image5  (b)image2 (d)image4 (f)image6  Any one know how to do that?  The problem for me is how to make (a), (b),..., (f) in vertical direction.
20717
What is the best way to vertically center the content of a div when the height of the content is variable.  In my particular case, the height of the container div is fixed, but it would be great if there were a solution that would work in cases where the container has a variable height as well. Also, I would love a solution with no, or very little use of CSS hacks and/or non-semantic markup.
3281
I am using jQuery and trying to find a cross browser way to get the pixel coordinates of the caret in &lt;textarea&gt;s and input boxes such that I can place an absolutely positioned div around this location.  Is there some jQuery plugin? Or JavaScript snippet to do just that?
51169
\documentclass{mwrep}  \usepackage[draft]{graphicx} \usepackage{hyperref} \usepackage[all]{hypcap}  \makeatletter \g@addto@macro\@floatboxreset\centering \makeatother I use figures with captions.  \begin{document}  \listoffigures  \chapter{foo}  First paragraph (previous).  \begin{figure}[h]   \includegraphics{a.jpg}   \caption{Opis} \end{figure}  Second paragraph (following).  \end{document}   How can I change vertical space (padding?) between caption and following paragraph? Also, I want to change (increase a little) space between previous paragraph and top of image.
116699
Please consider the following MWE  \documentclass{article}  \usepackage[demo]{graphicx}  \begin{document}    \begin{figure}     \centering     \begin{minipage}[c]{0.45\textwidth}       \centering      \includegraphics[width=3cm,height=4cm]{mypicture.png}      \caption{Caption 1}     \end{minipage}     \begin{minipage}[c]{0.45\textwidth}       \centering      \includegraphics[width=3cm,height=2cm]{mypicture.png}      \caption{Caption 2}     \end{minipage} \end{figure}  \end{document}   which produces     How could I, without moving downward figure 2, align the two captions to obtain
85494
I have three images and I want to align them in the way that one image is above the other two. Here's an example:    How can I achieve this? For my other figures I use the subcaption package, but I am not able to align the pictures that way with it.    Thanks for all your replys! The answer that is working for me is the one supposed by karlkoeller:  \documentclass{article} \usepackage{graphicx} \usepackage{subcaption}  \begin{document}  \begin{figure} \centering \begin{subfigure}[b]{.45\linewidth} \includegraphics[width=\linewidth]{example-image-a} \caption{A mouse}\label{fig:mouse} \end{subfigure}  \begin{subfigure}[b]{.45\linewidth} \includegraphics[width=\linewidth]{example-image-b} \caption{A gull}\label{fig:gull} \end{subfigure} \begin{subfigure}[b]{.45\linewidth} \includegraphics[width=\linewidth]{example-image-c} \caption{A tiger}\label{fig:tiger} \end{subfigure} \caption{Picture of animals} \label{fig:animals} \end{figure}  \end{document}
67076
I'd like to create something similar to what is give below: text on either side of a vertically centred image:
52724
In my table, in order to have texts centered in each cell, I am using  \newcolumntype{P}[1]{&gt;{\centering\arraybackslash}p{#1}}    and instead of a simple p{1.5cm}, I am using   &gt;{\centering\arraybackslash}p{1.5cm}    I am also using \toprule, \midrule, and \bottomrule along with \usepackage{booktabs}.  My code is the following:  \documentclass[12pt]{article}    \newcolumntype{P}[1]{&gt;{\centering\arraybackslash}p{#1}} \usepackage{multicol} \usepackage{multirow} \usepackage{booktabs}   \begin{document}   \begin{table}[h] \centering \begin{tabular}{| &gt;{\centering\arraybackslash}p{1.5cm} | &gt;{\centering\arraybackslash}p{1.2cm} | &gt;{\centering\arraybackslash}p{1.2cm} |  &gt;{\centering\arraybackslash}p{1.2cm} | &gt;{\centering\arraybackslash}p{1.2cm} |&gt;{\centering\arraybackslash}p{1.2cm} | &gt;{\centering\arraybackslash}p{1.2cm} | &gt;{\centering\arraybackslash}p{1.2cm} | &gt;{\centering\arraybackslash}p{1.2cm}|} \toprule \multirow{2}{*}{} &amp; \multicolumn{4}{c|}{Payoffs} &amp;  \multicolumn{4}{c}{ROR} \\ \cline{2-9}  &amp; $\theta =1$ &amp; $\theta =2$ &amp; $E(P)$ &amp; $\sigma(P)$ &amp; $\theta =1$ &amp; $\theta =2$ &amp; $E(r)$ &amp; $\sigma(r)$ \\ \midrule Asset 1 &amp; 110 &amp; 95 &amp;   &amp;   &amp;   &amp;   &amp;   &amp;   \\ Asset 2 &amp; 105 &amp; 90 &amp;   &amp;   &amp;   &amp;   &amp;   &amp;   \\ Asset 3 &amp; 120 &amp; 90 &amp;   &amp;   &amp;   &amp;   &amp;   &amp;   \\ \bottomrule \end{tabular} \end{table}    \end{document}    And my result looks very strange like this:    First, the far right vertical line is short; the first row is not closed on the right.  Second, all the vertical lines are cut.  Any thoughts?
20230
I just got a short algorithm on my page, and it keeps getting aligned at the center of the page. But I want to have it aligned at the top, what do I have to do?
47848
I want to align two numbers in two different rows the decimal point.    I do see a link for that here:   However, I don't understand how to incorporate that into my code.  What follows is a reduced version of my code.  \documentclass[12pt,english]{article} \usepackage{longtable} \usepackage{fullpage} \usepackage{times} \usepackage[flushleft]{threeparttable} \usepackage[font=large,labelfont=bf,tableposition=top,textfont=bf]{caption} \usepackage{tabularx} \usepackage{booktabs} \newcolumntype{C}{&gt;{\centering\arraybackslash}X}  \begin{document}  \clearpage \newpage \begin{table}[!ht] \caption{Table Title} \def\arraystretch{1.05} \vspace{-0.2cm} \begin{threeparttable} \small \begin{tabularx}{\textwidth}{l*{10}{C}} \hline \hline \addlinespace &amp; (1)  \\   Variable Name &amp; 0.1234566  \\ &amp; (0.1234566) \\ \hline \hline \addlinespace  \end{tabularx} \begin{tablenotes} \vspace{0.1cm} \footnotesize{  \item \noindent \hspace{-1.8mm} Notes:    \noindent Sources:   } \end{tablenotes} \end{threeparttable} \end{table}  \end{document}
22340
I mess up with things when I try to use the figure-thing: the picture is not appearing with the correct alignment (apparently because I forget the float package). Now I want to use only the graphicx package with \includegraphics. How can I center the \includegraphics without figure?  Not working or doing centering to the document afterwards.  \includegraphics[width=0.5 \textwidth]{./Pictures/r.png}{\centering} \includegraphics[width=0.5 \textwidth]{./Pictures/r.png}\centering
10949
I have multiple figures placed in my document (all of which are using [htbp], [ht] etc. and are placed correctly). The last figure receives a separate page (which is alright) but it's centered on this page, which looks weird as the figure is quite small.  Is there any way to get this figure on top of this page? As written above, its a separate page and the last one in this chapter.  I can't really provide a minimal example (since I guess that the position depends on my previous figures), but here's the code I use for the figure (I've tried [ht], [ht!], [htbp] etc but none of them work - I've also deleted the .aux files before compiling):  \begin{figure}[t!] \centering \begin{tabularx}{\columnwidth}{cc} \subfloat[Results 1] { \centering    \includegraphics[width=0.47\textwidth,height=0.47\textheight,keepaspectratio]{images/plot1} } &amp; \subfloat[Results 2] { \centering    \includegraphics[width=0.47\textwidth,height=0.47\textheight,keepaspectratio]{images/plot2} } \end{tabularx} \caption{Blabla} \end{figure}   Thanks in advance!
69778
I'm designing a website for a rather unknown software company. The company likes the design but cannnot get along with our desicion to center their logo on the top of their page, although all the other elements are centered. Therefore a left aligned logo wouldn't look good. I know, it seems all UX studies prove them right, but positioning the logo in the center isn't a unpopular practice anymore.   Furthermore I think the way we read a website has adapted the last 10 years. Are there any studies about this topic that could help prove my point?  Thanks
86984
I can't put my equation in the center, i don't know if is related to be using the srcbook package.    I tried using the amsmath package, the nccmath package and fleqn command, also i used the align* command, but the equation is always as you can see in the image.  What can i do?
75865
I found an asnwered question concerning this topic already here:  Copying \captionsetup[subfigure]{justification=centering} doesn't help me thought for I am using different packages.  I would like my Captions and Subcaptions to be justified as the text below. Just under my pictures. Any suggestions?  Thanks a lot  \documentclass{article} \usepackage{subfig} \usepackage[labelfont=bf, justification=justified]{caption} \usepackage[demo]{graphicx}% Remove demo option in real document  \begin{document}     \begin{figure} %   \captionsetup[subfigure]{justification=centering}     \centering       \subfloat[Subcaption one \newline including a linebreak ]   {     \includegraphics[width=0.2\textwidth]{image1}     }     \hspace{1cm}     \subfloat[Subcaption two \newline including a linebreak]     {     \includegraphics[width=0.2\textwidth]{image2}     }        \caption{Figure caption \newline with additional text right here} \end{figure}  \begin{center} This is correctly justified Text \\ including a longer linebreak than blabla. \end{center} \end{document}