My HTML code is like below    Some of my CSS code is like below  .content {   min-height: 58vh;  }  footer {   position: fixed;   bottom: 0px;    width: 100%; }  body {   font-family: 'Roboto', sans-serif;   color: #a0a6ad;   font-size: 14px;   font-weight: 400;   background: #fff;   overflow-x: hidden; }  html {   overflow-x: hidden; }  .footer-Content {   padding-top: 36px; }   I would like to make the footer responsive. So that when I decrease screen size it will stay at the bottom of the page.     If content is larger that page and I use below code then footer is fixed not scrolling with the page.  footer {     position:fixed;     bottom:0; }   Actually I need a footer which will stay at the bottom of the page if screen size is increase or decrease and it will scroll with the page if the content is larger than the screen size.
3362
I have a simple 2-column layout with a footer that clears both the right and left div in my markup.  My problem is that I can't get the footer to stay at the bottom of the page in all browsers.  It works if the content pushes the footer down, but that's not always the case.
13266
I must place footnotes and footcites at the bottom of the frames, like shown in the picture:   The line above the footnotes must always be there, and it must have a minimum distance to the bottom of lets say 2.5em.  So I see two possible solutions:   Add the footnote via \setbeamertemplate to the footline. Change the format of the footnoteline and let it always appear, even if no footnote was used.   For the last hours, I tried to accomplish point 1, but I had absolutely no success. Can you please help me? Otherwise I have to use *whisper* Powerpoint. ;)    EDIT: Do you know the phenomenon that only after you ask someone, you can get the right ideas? ;)  Here is a MWE of my current solution:  \documentclass[xcolor={dvipsnames}]{beamer}  \usepackage[absolute, overlay]{textpos} \usepackage{environ}   \usetheme{default} \setbeamertemplate{navigation symbols}{}%remove navigation symbols   \newcommand{\makemyrule}{%     \setlength{\unitlength}{14pt}%      minimum distance to bottom     \ifdim\footnoteheight&gt;\unitlength \setlength{\unitlength}{\footnoteheight} \fi%     check which distance is bigger     \begin{textblock*}{\linewidth}(0pt,\dimexpr\textheight-\unitlength)%    place with use of textpos         \textcolor{blue}{\rule{\paperwidth}{.3ex}}     \end{textblock*} }   \let\oldfootnote\footnote%      redefine the footnote command \renewcommand{\footnote}[1]{\Addheight{#1}\oldfootnote{#1}}  \newlength{\footnoteheight} \newsavebox{\mytext} \newcommand{\Addheight}[1]%     measure height of the text         {%                 \savebox{\mytext}{\small\strut\parbox{\textwidth}%                 {\hspace*{2em}\thefootnote#1}\strut}%       approximated by eye, not perfect!                 \addtolength{\footnoteheight}{\ht\mytext}%                 \addtolength{\footnoteheight}{\dp\mytext}%         }     \NewEnviron{myframe}[1]{%     \begin{frame}{#1}%     \setlength{\footnoteheight}{0pt}%     \BODY%     \makemyrule%     \end{frame}%     }    \renewcommand\footnoterule{}  \begin{document} \begin{myframe}{} \frametitle{Beamer example} using\footnote{Y LUSPIN, et al} footnotes\footnote{P. GHOSEZ, et al and a lot more information to create a linebreak} excessively \footnote{You do not need to read this, this is only blindtext to create even more and more text. Blindtext will go on forever, nobody can stop the allmighty blindtext. I think I am a blindtext author.} \end{myframe}{} \begin{myframe} \frametitle{Beamer example} using\footnote{Y LUSPIN, et al} footnotes\footnote{P. GHOSEZ, et al} \end{myframe}{} \begin{myframe} \frametitle{Another example} without footnotes\\ \end{myframe} \end{document}   What this does: At the beginning of each myframe-environment, the length \footnoteheight is reseted to zero. When a \footnote is placed, the height of the text is added to this length. At the end of each frame, via \makemyrule the bottom rule is created, which is above the footnote texts (my solution is not perfect) or, if there are no footnotes, at least 14pt above the bottom.  My wishes (not real problems, but I want it to work better) are   The height of the footnotetext is only approximated. I would like a solution where you can measure the height of the formatted footnote. The frame environment needs to be renamed to myframe. I would like a solution which works without changing the document. But it all failed, because I could not execute \makemyrule before \end{frame} automatically.
45831
I want the footnote mark to be superscripted in the text body (e.g. Footnote mark²), but normalsize in the foot, to be shown like:  ________________ 2. Some footnote text   Also, it would be nice if the mark appeared hanging in the left margin, like     ________________ 2. Some footnote text   (That is recommended by Bringhurst in his Elements of Typographic Style)
86609
Google Search Console is saying:  CLS issue: more than 0.25 (desktop) First detected: 5/27/20 Status: Poor   But the  is simply a table containing UTF-8 text. It has an external style sheet, but no images, scripts, or forms. The one possibly uncommon thing is that I serve it as XHTML. Why would this page experience shift? Strangely, the complaint occurs only for desktop, not for mobile, even though it is a wide table that can be read much better on a large screen. (Note that I'm not especially concerned about performance, etc. itself; the page is mostly only for my own use.  I'm simply curious about how and why layout shift could be detected.) UPDATE: I've found a related problem, which I've posted as
33387
I have a problem with the fancy package: I use the report documentclass and I have a chapter, a lot of text and then a new page starting with a section (or the next page has no chapter starting on that particular page).  The problem be, that what I defined for my header and footer is NOT on the chapter-page but only on the non-chapter page. How come? What did I miss?  Minimal example:  \documentclass[]{report}  \usepackage{lastpage} \usepackage{fancyhdr} % for use of \pageref{LastPage}  \fancypagestyle{IHA-fancy-style}{% \fancyhf{} %Clear header and footer \fancyhead[LE,RO]{\slshape \rightmark} \fancyhead[LO,RE]{\slshape \leftmark} \fancyfoot[C]{\thepage of \pageref{LastPage}} %Custom footer \renewcommand{\headrulewidth}{0.4pt} %Line at the header visible \renewcommand{\footrulewidth}{0.4pt}} %Line at the footer visible  \title{A short example}  \begin{document}  \maketitle \tableofcontents  \pagestyle{IHA-fancy-style} \chapter{A chapter} Look at the footer  \newpage \section{A section} Look at the footer  \end{document}   Take notice: No line on page 2 at the bottom - a line on page 3 at the bottom.  Any clues?
55993
I'm trying to embed an iFrame, and because I set up some CSS using responsive design, I wish to NOT have width="" and height="" attributes whatsoever.   When I type this into the HTML editor field..  &lt;iframe src="https://docs.google.com/document/pub?id=1fsm-cvpdfX-8tXauGrQgRmgWONTpX8J3almvZhzBeCA&amp;amp;embedded=true" class="scale-with-grid"&gt;&lt;/iframe&gt;   And then I switch to visual mode and come back, it immediately removes the class="scale-with-grid" and changes it to width="320" height="240"  &lt;iframe src="https://docs.google.com/document/pub?id=1fsm-cvpdfX-8tXauGrQgRmgWONTpX8J3almvZhzBeCA&amp;amp;embedded=true" width="320" height="240"&gt;&lt;/iframe&gt;   How do I avoid this? I used this "Raw HTML" plugin but it didn't apply to this iframe situation whatsoever.
72617
I am building my first responsive WP site with my own custom WP Theme. The primary templates are part fluid, part fixed. This enabled me to create only 3 "versions", a desktop, tablet and mobile version. All changes happen due to media queries. (Sizes are 768 to 1200 px for desktop, 530 to 767 for tablet, 300 to 529 for mobile.)  The homepage (which has it's own template) will show a slideshow. The slideshow claims to be responsive (I haven't set it up yet) and I am anticipating it working through the tablet sizes. But when I get to the mobile size I just want to have a static photo.  I don't want to just use "display:none" for the slideshow as it will still eat up space/power for the mobiles. I DO want to keep all the versions on the same templates, so I'm thinking I'm going to need some php or javascript to make this happen. (Unless there's some other way, which I'd be thrilled to hear about!)  Can anyone help with the code? I have a slideshow div in the CSS:  #slideshow {  height: 296px;  margin: 20px 20px 10px 20px;  padding: 0; background-color: #f00; }/*by not setting a width the sshow box fills the space minus the margins*/   and in the template the slideshow shortcode or template code will go between the open and close slideshow div tags. But I would also want to place a photo there for the mobile version. So I think I would need some kind of "if 529px or more, get slideshow; if less, get photo" right? I'm not a php or javascript programmer, tho I'm great at cutting and pasting!  The site is viewable at   -- we are now at the stage of adding page content and the blog needs attention and the sidebars need work, etc. But shell pages are up and content is getting loaded as I write.  Help greatly appreciated!
84424
This is the document:  \documentclass[12pt]{article} \usepackage[top=3in, bottom=3in, left=3in, right=3in]{geometry} \usepackage{lipsum} \interlinepenalty=10000 \begin{document} This is first short par\footnote{foot note}  \lipsum[1] \end{document}   As you can see the foot note is "glued" to the text and is not a "foot" note any more.. How can I make drop it down to the bottom of the page, where it will look like a real foot note?
92740
Consider the minimal code below, which produces two different layouts depending on the  table position marks.    The first layout uses   \begin{table}   which results in the table ending below the footnotes and the second,  \begin{table}[htbp]   results in the table ending above the footnotes. Is this normal behaviour in LaTeX? I think a better algorithm would have been to try and position images or tables above the footnotes; is it some form of a bug? Here is the MWE.  \documentclass{book} \usepackage[paperwidth=4.75in,paperheight=7.25in,             textwidth=4.5in,textheight=6.5in,             headsep=0.1in, footskip=0.15in,             marginratio=1:1]{geometry} \usepackage[latin,english]{babel} \usepackage[demo]{graphicx} \usepackage{booktabs,lipsum} \begin{document}  \selectlanguage{latin} \chapter{Errora}  Una imagine tabula, figura et \ae nigma.\footnote{translatio via google}.   \begin{figure}[htbp] \centering \includegraphics[width=0.3\textwidth]{./graphics/amato} \caption{Uno pictorum}  \end{figure} \begin{table}%[htbp] %uncomment to see difference \centering \begin{tabular}{cccc}   \toprule   Error &amp;Errors &amp;error &amp;errors\\   \bottomrule \end{tabular}       \caption{Test} \end{table} %\lipsum[1-3] \end{document}   Edit:  I had a look at the documentation of the footmisc recommended by Thorsten Donig as a workaround where  Robin Fairbairns describes this behaviour as an "infelicity". There is a further infelicity, if you let both floats to float freely, the table floats to the next page and the image goes in the footer area, while there is ample space to have stayed exactly in its position in the text.
40592
\footnote[1]{\nameref*{8.1.16} is an अधिकार सूत्र it goes upto \nameref*{8.3.55}} \&amp; अङ्गाधिकार (अङ्गस्य)\footnote[2]{\nameref*{6.4.1} is an अधिकार सूत्र it goes upto \nameref*{7.4.97}}  I am using footnote as shown above. However the footnote appears to be floating and when I don't have much in the page it appears in the middle of the page. I got by so far with \vspace{} but I think there must be a way to position this at the bottom of the page despite whats in the page. Thanks for your help
37085
I noticed now that Stack Overflow has its padding set to 0, unlike before. Note the padding on left side of the page; it looks shifted to the left and everything is touching the left-hand side of the screen.   Edit: Back to normal on mobile (iPhone 4 v6.1.3 / Safari). Edit: Same problem on mobile full site version, mobile version is fine  (iPhone 5 v6.1.4 / Safari).
115998
I am using the following code set my headers.  \fancypagestyle{plain} \fancyhf{} \pagestyle{fancy} \fancyhead{} \fancyhead[L]{\textit{\sffamily\ifthenelse{\isodd{\value{page}}}{\leftmark}{\rightmark}}} \fancyhead[R]{\textit{\sffamily\thepage}} \fancyfoot[C]{} %\headrulewidth{0.1pt}  \renewcommand{\headrulewidth}{0.1pt}    The \headrulewidth (line below the head) is also appearing at the beginning of a chapter and I WANT TO DISABLE this.  How can I change the behaviour of the headrulewidth for the first page of a chapter?
100341
I wonder why the compiler shift the item that does not fit the rest of the page to the next pages ?! How to tell the compiler to break such item ?!   Here is a screenshot     and here is code regarding this part   \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsthm} \usepackage[utf8]{inputenc} \usepackage{titlesec} \usepackage{titletoc} \usepackage{enumitem} \usepackage{mathtools} \setlength{\footskip}{15pt}  \begin{document}  XXX\\[17.5cm] YYY \begin{align*} [\textbf{a},\textbf{b}]_{\mathbb{R}^9}  = \phi\bigl([\phi^{-1}(\textbf{a}),\phi^{-1}(\textbf{b})]_{\mathfrak{u}(3)} \bigr) . \end{align*}  We check the verification of the conditions the bracket $[\,\, , \,\,]_{\mathbb{R}^9}$ must satisfy in the following three steps:  \begin{enumerate}[nolistsep] \item[(i)] (The $\mathbb{R}$-linearity of $[\,\, ,\,\,]_{\mathbb{R}^9}$) For arbitrary $\textbf{a},\textbf{b},\textbf{c} \in \mathbb{R}^9$ and $\alpha_1,\alpha_2 \in \mathbb{R}$, it follows by the $\mathbb{R}$-linearity of $[\,\, \,\,]_{\mathfrak{u}(3)},\phi$ and  $\phi^{-1}$ that \begin{equation*} \begin{split} \bigl[\alpha_1 \textbf{a} + \alpha_2 \textbf{b} , \textbf{c}    \bigr]_{\mathbb{R}^9}   &amp;= \phi\bigl( [\phi^{-1}(\alpha_1\textbf{a}+\alpha_2 \textbf{b}), \phi^{-1}(\textbf{c})]_{\mathfrak{u}(3)}  \bigr) \\&amp;= \phi\bigl( [\alpha_1 \phi^{-1}(\textbf{a}) + \alpha_2 \phi^{-1} (\textbf{b}), \phi^{-1}(\textbf{c}) ]_{\mathfrak{u}(3)}    \bigr) \\&amp;= \phi\bigl( \alpha_1 [\phi^{-1}(\textbf{a}), \phi^{-1}   (\textbf{c})]_{\mathfrak{u}(3)} + \alpha_2 [\phi^{-1}(\textbf{b}), \phi^{-1}  (\textbf{c})]_{\mathfrak{u}(3)}       \bigr) \end{split} \end{equation*}  \end{enumerate}  \end{document}   latex split the block of equations normally except that when I use enumerate environment latex shifts the item entirely to the next page.. This is the only exception and I unfortunately do not know why !
61850
I'm trying to horizontally center a &lt;div&gt; block element on a page and have it set to a minimum width. What is the simplest way to do this? I want the &lt;div&gt; element to be inline with rest of my page. I'll try to draw an example:  page text page text page text page text page text page text page text page text                -------                | div |                ------- page text page text page text page text page text page text page text page text
66310
I am doing a proof of concept with responsive design. One web page that I am modifying has some extremely wide tables. I really don't know how to shrink the tables width so there is no horizontal scroll bar in a mobile browser.  I was just wondering if anyone had the same issue with wide tables and what they did to overcome a horizontal scroll bar in a mobile browser using responsive design. Oh and I wanted to add that I can not hide columns in the table.
37341
When styling text on web pages, both font size and line height can be set. For example, the text of this post will be displayed using a font-size of 14px and a line-height of (about) 18px, set using the value 1.3em.  Looking at other websites, it seems that a ratio around 1.2 is a common practice.  What is the best practice regarding this? What are some good resources from which I can learn more on the subject?
8738
I have a layout that is working, but it has one very annoying problem.. when the content is taller than the screen, the background stops.  This is the desired layout in bad-ASCII-art format:  _____________________  _ |    | long    |logo|   | |    | content |    |   | |    |         |    |   | |    |         |    |   | |grad|         |grad|   | Viewport |    |         |    |   | |    |         |    |   | |    |         |    |  _| |    |         |    | |    |         |    | _____________________  |2em| &lt;-20em-&gt;| 2em|   ..or with short content..  _____________________  _ |    | short   |logo|   | |    | content |    |   | |    |         |    |   | |    |         |    |   | |grad|         |grad|   | Viewport |    |         |    |   | |    |         |    |   | |    |         |    |   | |    |         |    |   | _____________________  _|   Basically it looks like a single column, with a glow as a column either side. Over the left-glow is a logo. When the content is short, it is still the full-height.  I have tried using the , which fixes the middle column, but then the gradients only extend as far as the content (in the left column, a single &amp;nbsp;, in the right column the logo)    Here is what the layout looks like:    And the problem (when the browser window is shrunk vertically):    Finally, the problem HTML/CSS,