I need to vertically centre the ion-menu contents so that it is easier to access from a UX perspective. I am not sure of the best way to do it.  This is the  code, which was set up by ionic start myProjectName sidemenu.   &lt;ion-content&gt;     &lt;ion-card class="welcome-card"&gt;       &lt;ion-img src="/assets/shapes.svg"&gt;&lt;/ion-img&gt;       &lt;ion-card-header&gt;         &lt;ion-card-subtitle&gt;Get Started&lt;/ion-card-subtitle&gt;         &lt;ion-card-title&gt;Welcome to Ionic&lt;/ion-card-title&gt;       &lt;/ion-card-header&gt;       &lt;ion-card-content&gt;         &lt;p&gt;Now that your app has been created, you'll want to start building out features and components. Check out some of the resources below for next steps.&lt;/p&gt;       &lt;/ion-card-content&gt;     &lt;/ion-card&gt;     &lt;ion-list lines="none"&gt;       &lt;ion-list-header&gt;         &lt;ion-label&gt;Resources&lt;/ion-label&gt;       &lt;/ion-list-header&gt;       &lt;ion-item href="https://ionicframework.com/docs/"&gt;         &lt;ion-icon slot="start" color="medium" name="book"&gt;&lt;/ion-icon&gt;         &lt;ion-label&gt;Ionic Documentation&lt;/ion-label&gt;       &lt;/ion-item&gt;       &lt;ion-item href="https://ionicframework.com/docs/building/scaffolding"&gt;         &lt;ion-icon slot="start" color="medium" name="build"&gt;&lt;/ion-icon&gt;         &lt;ion-label&gt;Scaffold Out Your App&lt;/ion-label&gt;       &lt;/ion-item&gt;       &lt;ion-item href="https://ionicframework.com/docs/layout/structure"&gt;         &lt;ion-icon slot="start" color="medium" name="grid"&gt;&lt;/ion-icon&gt;         &lt;ion-label&gt;Change Your App Layout&lt;/ion-label&gt;       &lt;/ion-item&gt;       &lt;ion-item href="https://ionicframework.com/docs/theming/basics"&gt;         &lt;ion-icon slot="start" color="medium" name="color-fill"&gt;&lt;/ion-icon&gt;         &lt;ion-label&gt;Theme Your App&lt;/ion-label&gt;       &lt;/ion-item&gt;     &lt;/ion-list&gt; &lt;/ion-content&gt;     So I am trying to do something like below.    Edit: Ionic component directives already use flex. I'm seeking a solution specific (preserving the responsiveness) to Ionic 4 where an ion-menu is nested in an ion-list inside an ion-content directive. None of the answers provided in the SO links is applicable to my question.
173
I want to center a div vertically with CSS. I don't want tables or JavaScript, but only pure CSS. I found some solutions, but all of them are missing Internet Explorer 6 support. &lt;body&gt;     &lt;div&gt;Div to be aligned vertically&lt;/div&gt; &lt;/body&gt;  How can I center a div vertically in all major browsers, including Internet Explorer 6?
68895
This code:  \begin{figure*}[t] \begin{center}         \begin{subfigure}[a]{0.3\textwidth}                 \label{im:device_front}         \includegraphics[width=\textwidth]{images/bsn_side}         \caption{a) Frontal view of the sensor system}     \end{subfigure}                 \quad         \begin{subfigure}[b]{0.3\textwidth}                 \label{im:device_schuin}         \includegraphics[width=\textwidth]{images/bsn_front}         \caption{b) Perspective view of the sensor system}     \end{subfigure}              \quad     \begin{subfigure}[b]{0.25\textwidth}                 \label{im:device_side}         \includegraphics[width=\textwidth]{images/bsn_schuin}         \caption{c) Side view of the sensor system}     \end{subfigure}  \caption{Overview of the system as worn by the subjects} \label{default} \end{center} \end{figure*}   produces result:    But I want them to be vertically aligned. How can I do this?
58040
I want to add background image, to part of my header i wrote code like this.  but its not working.   &lt;div style="{!'background:' + v.backgroundColor + ' url(' + v.backgroundImageURL +') no-repeat;background-position: center;background-size: cover;'}"&gt;  &lt;/div&gt;     doInit : function(component, event, helper) {          var url = $A.get('$Resource.RollingHillsGrey1');         component.set('v.backgroundImageURL', url);     }
37482
I am trying to center this page but it will not work.  All is get is for the first line to be indented about one "tab" space to the right, but the second line will not shift.  However, the first line's indent does not appear to be centered either.  Is it possible that the binding offset or the indentfirst package is interacting with this negatively?  All of the other pages seem to work just fine. Any help would be appreciated.  \documentclass[12pt, a4paper, twoside]{article} \usepackage[margin=1in,bindingoffset=15.5mm,heightrounded]{geometry} \usepackage[T1]{fontenc} \usepackage{indentfirst} \begin{document} \pagestyle{empty} \vspace*{36 pt} {\centering \textbf{\emph{\Huge{Since I Saw You Last,\\There's a Change Upon You}}} } \end{document}
3482
This might seem like a very simple question, but what is the easiest way to turn a normal vertical list into a horizontal one?
61190
I asked a  a while ago about vertically aligning enumerate labels to the top of table. Now I am having the same problem, but with images. Since my problem was solved in my previous thread, I tried sticking the image in a single-cell table and aligning that with the tabular's alignment parameter, but it seemed to have no effect.  Can someone explain what is the correct way to align this image and why didn't sticking it in a table work as expected? I am simply trying to align the enumerate label with the top of my image.    \begin{enumerate}[label=(\alph*)]   \item\begin{tabular}[t]{l}\includegraphics[width=10cm]{13a.png}\end{tabular} \end{enumerate}
42
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;
66188
On a windows 7 computer how might one set the desktop to be a webpage. I want to have a local html file that I can edit as needed. Then windows should show that file as the background for the desktop but I should be able to click on links and interact with the page. Certain links would launch certain programs.   So I want to go this route because there is no way that I know to corral a group of icons to a certain part of the screen. When I disconnect and reconnect monitors and such things move around. No icons are forced to stay in part of the group they are supposed to be a part of. At this point I just have folders on the desktop with the app links in those folders. This means I have to open multiple folders to get where I want.   Any ideas on the html angle or other ideas on how to accomplish this?  thanks,  bye.
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.
51052
I'm working on a new version of a corporate website. As it stands, it has about 6 different sections. Each of those sections have between 3 to 6 sub-pages. My nav is at the top of the page and looks a bit like the wireframe below:         &ndash; Wireframes created with   I have made some simple dropdowns with js to handle the desktop side of things. For tablets and mobile devices I have gone with the standard right aligned hamburger menu button. The more I look at the site on a tablet, the more I like the lack of clutter at the top.  Apart from potentially confusing some users, what are the downsides of going with the hamburger menu for all devices?    and a number of other sites do this already.
69643
It seems as if with some of the modern front-end development frameworks there is a blur between the different types of 'container' elements. Whether this is an attempt to abstract the design from implementation or if this is due to there not being any standardization of terminologies I am not sure, but it leads to the fact that in some design frameworks I see the term panels being used but not cards (e.g. Bootstrap 3) while in others the term cards exists but not panels (e.g. Iconic), and perhaps both exist in others?  From a design perspective, it seems that both cards and panels are just containers, and since there's nothing that defines how big a card can get and how small a panel can be, I am wondering whether there's really any difference. From an implementation perspective, it seems that cards should be used for smaller size design elements and are preferred on mobile specific applications, whereas panels are used for a wider range of design elements and are preferred on desktop specific applications.  Is there any evidence/reference/examples that will help to illustrate or highlight the (lack of) differences? For some reason I think cards and tiles are more closely related to each other, and that panels seem to be in a slightly different class/family?  If we take the argument that there are no differences, then it is hard to understand why people associate 'tiles' with Microsoft 'Metro' style home pages, while on Google and Android apps it is 'cards' and for Java and Gnome applications it is 'panels'. Perhaps there are some contextual or implementation differences?  UPDATE: with the release of Bootstrap 4, it seems like cards are basically equivalent to panels (since one component has replaced the other), but with this comes the cost of having to maintain a more flexible container that will make it difficult to implement consistently. According to Bootstrap:      A flexible and extensible content container. It includes options for   headers and footers, a wide variety of content, contextual background   colors, and powerful display options.   FURTHER UPDATE: It seems as if Bootstrap 5 and Material.io have adopted the card UI component in the new world of responsive and mobile first/multi-device ecosystem design systems while "tiles" have a very specific meaning in the Microsoft Fluent Design System:      A tile is an app's representation on the Start menu. Every app has a tile. When you create a new Universal Windows Platform (UWP) app project in Microsoft Visual Studio, it includes a default tile that displays your app's name and logo   Panels don't seem to be part of the vocabulary anymore, as least in terms of a UI component, but in the Microsoft and Java world it still represents an abstract concept of organisation layouts of UI components.
72063
This is a follow-up question regarding the extra vertical space in amsmath's align environment. Why when in use align uses so much vertical space in contrast with other environments like for example tabular or itemize?  \documentclass[12pt]{article} \usepackage[top=0.3in, bottom=1.2in, left=0.8in, right=0.8in]{geometry}   \usepackage[fleqn]{amsmath} \usepackage{unicode-math}  \setlength{\mathindent}{0cm} \newcommand{\3}{\vspace{0.3cm}}  \title{} \author{} \date{}  \begin{document}  70  \begin{align*} &amp;e^{jz}=\cos z+j\sin z\\ &amp;\cos z=(1/2)(2\cos z)=\\ &amp;=(1/2)(2\cos z+j\sin z-j\sin z)=\\ &amp;=(1/2)(\cos z+j\sin z+\cos z-j\sin z)=\\ &amp;=(1/2)(e^{jz}+e^{-jz}) \end{align*}  80  \begin{itemize} \item Item 1  \item Item 2  \end{itemize}  90  \begin{tabular}{c|c}  Entry 1&amp; Entry 2  \\  Entry 3&amp; Entry 4 \end{tabular}  \end{document}     Also another image of the huge space between two align environments. Even without the blank lines the space is a lot.    \begin{document}  \begin{multicols*}{2}   \begin{align*} &amp;\text{70}\\ &amp;e^{jz}=\cos z+j\sin z\\ &amp;\cos z=(1/2)(2\cos z)=\\ &amp;=(1/2)(2\cos z+j\sin z-j\sin z)=\\ &amp;=(1/2)(\cos z+j\sin z+\cos z-j\sin z)=\\ &amp;=(1/2)(e^{jz}+e^{-jz}) \end{align*}    \begin{align*} &amp;\text{207}\\ &amp;x(t)=A_{c}\cos \theta(t)\\ &amp;\theta(t)=2\pi f_{c}t+\phi(t)\\ &amp;\phi(t)=K_{p}m(t)\\ &amp;x(t)=A_{c}\cos[2\pi f_{c}t+K_{p}m(t)] \end{align*}   Edit I:  As I mention in a comment I have tried the following code and there is no difference between two align environments, only between text and an align environment. Why doesn't work in the case of the two environments and how can I fix it so to work? Also what is the reason that this space exists?  \setlength{\abovedisplayskip}{0pt} \setlength{\belowdisplayskip}{0pt} \setlength{\abovedisplayshortskip}{0pt} \setlength{\belowdisplayshortskip}{0pt}
56181
I have the following type of code in my document:  \begin{align*}        (-m)+m &amp; \stackrel{\mathrm{Ax 1.1 (i)}}{=}  m+(-m)\\   &amp;\stackrel{\mathrm{Ax 1.4}}{=}  0 \   I want to align on the = but that is complicated by the fact that there is something hovering over it.  It would seem to be easier to align their centers (no matter what, that is where the = will be).  How can I center a column in align (or align* to be honest, I am not that clear on the difference)
3791
Why are login forms always centered on the screen? Most horizontally, some vertically also. Sites like Apple/Amazon/Adobe/Microsoft/Google/PayPal/Instagram/Twitter etc. are all centered! Is this an undocumented best practice everyone unanimously decided to use?         &ndash; Wireframes created with   Obviously it's most aesthetically pleasing, but is there any other reasons why?  Edit: Many of these sites do not support mobile either, so it wasn't done specifically for that.
82815
I need to position an example block:  \begin{exampleblock}{}    Proposed and implemented \end{exampleblock}   Without disturbing other frame content. Something like:  -------------------- ------------- -------------------- -------------------------- -----------    --/============\--------- -----|            |-- -----| Proposed   |-------- -----| and        |-------- -----| implemented|------ -----\============/ -------------------- --------------------------    -----------------   Let it overlay the text behind it. And not to be taken into account during layouting.  Update The Claudio Fiandrino's way is not apropriate to me, because, i need an Itemize environment working inside, and it would be great, if block style is the same as theme-style.
60624
In the markup shown below, I'm trying to get the content div to stretch all the way to the bottom of the page but it's only stretching if there's content to display. The reason I want to do this is so the vertical border still appears down the page even if there isn't any content to display. Here is my DEMO:   body {     font-family: Trebuchet MS, Verdana, MS Sans Serif;     font-size:0.9em;     margin:0;     padding:0; } div#header {     width: 100%;     height: 100px; } #header a {     background-position: 100px 30px;     background: transparent url(site-style-images/sitelogo.jpg) no-repeat fixed 100px 30px;     height: 80px;     display: block; } #header, #menuwrapper {     background-repeat: repeat;     background-image: url(site-style-images/darkblue_background_color.jpg); } #menu #menuwrapper {     height:25px; } div#menuwrapper {     width:100% } #menu, #content {     width:1024px;     margin: 0 auto; } div#menu {     height: 25px;     background-color:#50657a; } &lt;form id="form1"&gt;   &lt;div id="header"&gt;       &lt;a title="Home" href="index.html" /&gt;   &lt;/div&gt;    &lt;div id="menuwrapper"&gt;       &lt;div id="menu"&gt;       &lt;/div&gt;   &lt;/div&gt;    &lt;div id="content"&gt;   &lt;/div&gt; &lt;/form&gt;
5290
I have 3 levels in my information architecture for my desktop dashboard. In the vertical navigation which measures H:500px W:200px I have;   Top level: 8 items Second level: 9 items in total (one of my top level item has 7 second levels) Third level: 12 items   Would you use an accordion style (which will make the menu long when expanded) or a sequential drill down menu? and why?  Cheers,  Chris