I want my footer to stick to the bottom of my page, but it is not displayed at the bottom. It goes to aside or to the top close to navigation or, if it`s displayed at the bottom of the page then its background gradient color applies to the upper div element as well.   I have tried the following code:    body::after {     content: '';     display: block;     height: 90px; }  #footerindex {     position: absolute;     bottom: 0;     width: 100%;     height: 90px; }  Second code-  #footer {clear: both;     position: relative;     height: 40px;     margin-top: -40px;  }   &lt;footer style="background: linear-gradient(to bottom, #4e54c8, #8f94fb)"&gt;     &lt;div id="footerindex"&gt;       &lt;a href="terms.html"&gt; Terms and conditions &lt;/a&gt; &lt;a href="privacy.html" style="padding-left: 15px;"&gt;Privacy Policy&lt;/a&gt;        &lt;p&gt;&amp;#169; Copyright 2019 - jobg.xyz, All Rights Reserved. &lt;/p&gt;       &lt;p&gt;Website designed and developed by Riven Apwbihls&lt;/p&gt;     &lt;/div&gt;   &lt;/footer&gt;
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.
97536
My vf page     &lt;apex:page renderAs="pdf" Controller="testpdf1"&gt;     &lt;head&gt;         &lt;style type="text/css" media="print"&gt;             @page              {                 size: 8.5in 11in;/* width height */             }              @page              {                 @top-center                  {                     content: element(header);                 }                  @bottom-left                  {                     content: element(footer);                 }             }              div.header              {                 padding: 10px;                 position: running(header);             }              div.footer              {                 display: block;                 padding: 5px;                 position: running(footer);             }              .pagenumber:before              {                 content: counter(page);             }              .pagecount:before              {                 content: counter(pages);             }         &lt;/style&gt;     &lt;/head&gt;      &lt;div class="header"&gt;             &lt;div align="right"&gt;Header&lt;/div&gt;     &lt;/div&gt;      &lt;div class="footer"&gt;         &lt;div&gt;Page &lt;span class="pagenumber"/&gt; of &lt;span class="pagecount"/&gt;&lt;/div&gt;     &lt;/div&gt;      &lt;div class="content"&gt;         &lt;p&gt;             &lt;apex:repeat value="{!opp}" var="item"&gt;                 &lt;tr&gt;                     &lt;td class="tableContent"&gt;{!item.Name}&lt;/td&gt;                 &lt;/tr&gt;             &lt;/apex:repeat&gt;         &lt;/p&gt;     &lt;/div&gt; &lt;/apex:page&gt;   Controller  public class testpdf1 {     public list&lt;Account&gt; opp{get;set;}      public testpdf1()     {         opp=[SELECT Name  from Account limit 50];     } }   I am getting all records in pdf format but able to get header in first page only and i am not getting header from second pages how can i display header to all pages.
7598
I'm posting today because I would like to reduce white space in a document I'm writing. The content is two-columns but I have floating tables that span across both columns (table*).   At some point, the text ends in the beginning of the first column of a new page. I would like to include my table on this page since it has a lot of free space below the text, but when I insert the table* right after the text, it goes to the top of the next page instead:    Do you know a way of obtaining the desired behavior?  Minimal working example :  \documentclass{article} \usepackage{lipsum}  \begin{document} \twocolumn  \paragraph{} \lipsum[1]  \begin{table*} \centering \begin{tabular}{|c|c|c|c|} \hline Column 1 &amp; Column 2 &amp; Column 3 &amp; Column 4 \\ \hline Column 1 &amp; Column 2 &amp; Column 3 &amp; Column 4 \\ \hline \end{tabular} \end{table*}%   \end{document}
33718
I am trying to write a recommendation letter with a fancy heading at the top of the first page, using fancyhdr. I copy my code below.  The results are that the first page looks good but subsequent pages do not. Subsequent pages omit the logo (as desired) but leave enough space for it, and the text starts from the same place on every page. Starting from the second page, I would like the text to start higher.  It seems that the only code which could cause the text to appear lower is within the \fancypagestyle{firstpage}{...}, and I use \thispagestyle{firstpage} with the intent that this should only affect the first page -- but this is not what happens when I compile and view my document.  I read related posts  and , and attempted to modify my code based on what I read there, but without achieving the results I was looking for.  Thank you very much.  LaTeX code (which compiles):   \documentclass[11pt]{article} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsmath} \usepackage{color,hyperref} \usepackage{graphics} \usepackage{times} \usepackage{fancyhdr} \usepackage{datetime}   \definecolor{darkblue}{RGB}{0,0,50} \hypersetup{colorlinks,breaklinks,             linkcolor=darkblue,urlcolor=darkblue,             anchorcolor=darkblue,citecolor=darkblue}   %%%%%%%%%%%%%%%%%%date in format Sunday, October 25, 2011$$$ \usdate \def\theday {\dayofweekname{\day}{\month}{\year}} \def\mydate {\theday , \today}  %%%%%%%%%%return address%%%%%%%%%% \def\myname     {Frank Thorne} \def\mydeptname     {Department of Mathematics} \def\myaffiliation  {University of South Carolina} \def\mystreet       {1523 Greene Street} \def\mycitystatezip {Columbia,\ SC\ \ 29208} \def\myphone        {{\it Phone:} (803)404-4057 (home)} \def\office     {(803)777-4224} \def\fax        {{\it Fax:}(803)777-3783} \def\email      {thorne@math.sc.edu} \def\url        {http://www.math.sc.edu/$\sim$thornef} % NOTE: use $\sim$ for tilde %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  %%%%%%%%%%%%%%%margins%%%%%%%%%%%%%%%%%% \oddsidemargin   0in \evensidemargin  0in \topmargin  -0.75in \textwidth   6.5in \textheight  6.25in \headwidth  \textwidth \parindent      0ex %controls how the indentation of new paragraphs behaves \parskip        6pt %controls the space between paragraphs \headheight     1.25in \headsep    1in %This controls how far below the letterhead the text of the letter will begin    \addtolength{\textheight}{.5in} %%%%%%%%%%%%%%%%letterhead%%%%%%%%%%%%%%%% \fancyfoot{} \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt}  %\thispagestyle{fancy} \fancypagestyle{firstpage}{ \fancyhf{} %%%usc logo \fancyhead[L]{\resizebox{2.5in}{!}{ %\includegraphics{USC_Linear.jpg} } \vspace{0.6in}}  %%%%%%%%%%return address on right%%%%%%% \fancyhead[R]{ \parbox[t]{3.1in}{ \footnotesize   \em \vspace{0.5in}                 \myname \\                 \mydeptname   \\                 \myaffiliation \\                 \mystreet \\                 \mycitystatezip \\                 \email \\ \\                  \mydate                 }\hspace{-1.3in} \vspace{0.2in}} }  \begin{document}  \thispagestyle{firstpage}  Blah blah blah.   Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.    \hspace{.5\textwidth}\parbox[t]{2.95in}{             Sincerely,\\              Frank Thorne\\             Assistant Professor of Mathematics            }  \vfill      \end{document}
62536
I need to use a minipage environment and I need a footnote in that minipage. I want the footnote to be numbered in the normal footnote sequence and to occur together with the rest of the footnotes in my document. But, as this minimal example shows:  \documentclass{article}  \begin{document}  Spam  \begin{minipage}{.5\linewidth}     Foo\footnote{bar} \end{minipage}  Ham  \end{document}   the obvious thing produces a footnote that 1) appears at the bottom of the minipage, and not the page itself, and 2) is "numbered" alphabetically.   How can I get a regular footnote in a minipage?
17457
I have a table that is longer than one page. I have found the option to make the header of the table to be added to the second portion of the table after the page break. Is there a way to do the same thing with a footer on the table? I want to add a footer so that if my table was 1000 entries long (12 pages), that the first and last row of each page would be consistent; a header and footer for the table. If I edit the rest of the document (above the table) the table will shift up/down and I want to header and footer of the table to remain at the page breaks. Any ideas?     PAGE BREAK   HEADER OF TABLE TBL TBL TBL TBL TBL TBL TBL TBL TBL TBL TBL TBL FOOTER OF TABLE      PAGE BREAK   HEADER OF TABLE TBL TBL TBL TBL TBL TBL FOOTER OF TABLE  TEXT TEXT TEXT TEXT TEXT TEXT      PAGE BREAK
13107
I am having trouble typesetting multi-line headers using fancyhdr The header on the first page behaves differently than the header on subsequent pages. The first page header has no depth, but produces a greater vertical displacement on subsequent pages.  Here is a sample tex file to illustrate the difficulty  \documentclass{article}  \usepackage{fancyhdr}  \chead{line 1\\line 2\\line 3\\line 4\\line 5\\line 6\\line 7\\line 8}  \cfoot{footer}  \fancypagestyle{plain}{}  \pagestyle{fancy}  \begin{document} \thispagestyle{fancy} page 1 \newpage page 2 \newpage page 3    \end{document}
116083
I tried to use a header and footer layout I found here on this website. But I have some problems with changing the code to what I want. I want the pagenumbering to be like page x of y in the footer. It would be nice with this layout (just with page x of y instead of just page x):  \cfoot{\parbox{\textwidth}{\hrulefill\kern-0.6ex\raisebox{-0.5ex}{$\Bigl[$\makebox[2em][c]{\thepage}$\Bigr]$}\kern-0.5ex\hrulefill}}   But the pagenumbering is in the header and there aren't a space between the letters and the numbers as you can see in my minimal work example:  \documentclass[12pt,a4paper]{book}%generelt \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} % clear all headers and footers \renewcommand{\headrulewidth}{0pt} % remove rule between header and text \fancyhead[LE, RO]{\thepage of \pageref{LastPage}} % put page number in left header on even pages,                             % right header on odd pages \fancyhead[RE]{\nouppercase{\leftmark}} % remove uppercase on chapter title \renewcommand{\chaptermark}[1]{\markboth{#1}{}} % remove "Chapter N." prefi \usepackage{lastpage}   Another problem is that I would like to have a chapter numbering in the header. The design is really nice, but I would like to have the chapter number too, just like "CHAnumber| name of the chapter".  Is it possible to make this two changes? And how? Thank you very much for help!
120595
I'm having this problem, same as ever, but never try to find the right solution  code:   &lt;div id="ListOfTextAndPhotos"&gt;       &lt;div style="border-bottom: solid 1px silver;"&gt;           &lt;img src="photo.jpg" style="float: left"&gt;           Some text about the photo       &lt;/div&gt;       &lt;div style="border-bottom: solid 1px silver;"&gt;           &lt;img src="photo2.jpg" style="float: left"&gt;           Some text about the photo2       &lt;/div&gt;       &lt;div style="border-bottom: solid 1px silver;"&gt;           &lt;img src="photo3.jpg" style="float: left"&gt;           Some text about the photo3       &lt;/div&gt;   &lt;/div&gt;   Question: How do I to keep the photo inside the DIV? with the separator line under the photo
120764
Using the command   \newcommand\@makefntext[1]{% \noindent\makebox[.02\columnwidth][l]{\@thefnmark}% \parbox[t]{.98\columnwidth}{#1}}   I got the desired result for the foot notes, as shown in the image below.   I'd like to know if my code is the best way to do this.    edited: using footmisc with the option hang as suggested, the format of the foot number is different so the vertical space around the foot note is changed.
69162
It seems as if footnotes would have only a problem with the table environment but in my minimal example non of those answers        seem to work for the tabular environment.  \documentclass{scrartcl}  \begin{document} \begin{tabular}{l} Content\footnote{Footnote} \end{tabular} \end{document}
81269
I'm using the Madrid theme but I would like tu use images instead of colored backgrounds for the frametitle and the footline. This is what I have so far    I want to do the same thing I did for the frametitle in the footline. I've tried many things, the only one that has worked is   \setbeamertemplate{footline}[textline]{ \includegraphics[width=\paperwidth]{image}}   but I can't fill the width of the page nor move the image, and the text is covered by the image. This is an example of what i just described  \documentclass{beamer} \mode&lt;presentation&gt;{   \usetheme{Madrid}   \setbeamercolor{frametitle}{fg=yellow}   \setbeamercolor*{palette primary}{use=structure,fg=red}   \setbeamercolor*{palette secondary}{use=structure,fg=red}   \setbeamercolor*{palette tertiary}{use=structure,fg=red}   \setbeamerfont{frametitle}{size=\huge} } \usepackage{textpos} \usepackage{graphicx} \usepackage{tikz} \usepackage[export]{adjustbox}  \setbeamertemplate{footline}[text line]{ \includegraphics[width=\paperwidth]{foot_image}}  \addtobeamertemplate{frametitle}{ \begin{textblock*}{\paperwidth}(-30pt,0pt) \includegraphics[width=1.1\paperwidth,height=1.3cm]{frametitle_image} \end{textblock*} }  \title[Title]{\textbf{{\huge Big Title}}} \author[email]{Author} \institute[]{Department\\University} \setbeamertemplate{navigation symbols}{}  \begin{document}  \begin{frame}{Frametitle} slide 2 \end{frame} \end{document}   Which produces
93000
I use TeX Live on Mac and I get my weekly updates through the TeX Live Utility. I am working on some slides for an upcoming talk. I am using the same Beamer templates and settings that I always use, so I was surprised to see that the page numbers that I always include at the bottom of my slides suddenly appeared in a different color. Here's an MWE:  \documentclass{beamer} \useoutertheme{infolines} \usecolortheme{beaver} \title{Title} \date{\today} %\setbeamercolor{page number in head/foot}{fg=darkred!60!black} \begin{document} \begin{frame} \end{frame} \end{document}     As you can see in the bottom right corner of the slide the page number appears but its color looks off. Until recently it would look exactly the same color as the date appearing next to it.  By Googling around a bit I managed to figure out how to get this to look normal again using the line commented out in the code above:  \setbeamercolor{page number in head/foot}{fg=darkred!60!black}   By uncommenting this line I got back the desired behavior:    So my question is not so much about how to fix this problem, but about why this is happening in the first place. Is this a bug that was introduced in a recent update, and if so will it be fixed? Is this a deliberate choice on the part of the developers (if so I can't imagine why)? Or am I doing something wrong or is something broken in my TeX setup?  I'd appreciate any insight on this. Thanks in advance!
96923
I have a few payment brand images that need to go in the footer of a website, the footer is very dark grey, to the point where making the logos grey-scale wouldn't be much of a good idea, especially as we still need the logos to stand out.  For example I took the following logo:   And changed it to fit with our very dominant red theme:    Is this good in terms of the user's perspective? Is this legal or misrepresenting the brand? If so is completely changing a logo to white acceptable for dark backgrounds?
59405
I read somewhere that web designers' habit of placing a default "follow" link in the footer of their client websites is bad for SEO.  Is this true?  If so, should we use rel="nofollow" instead.  I have seen rel="designer" in some free WordPress themes.
31923
I'm using the following list:  &lt;ol id="footnotes"&gt;     &lt;a name="footnote1"&gt;&lt;li&gt;&lt;/a&gt;This is the first footnote...&lt;/li&gt;     &lt;a name="footnote2"&gt;&lt;li&gt;&lt;/a&gt;This is the second footnote...&lt;/li&gt; &lt;/ol&gt;   With the following .css:  #footnotes {list-style-type: decimal;             list-style-color: #f90;             }  #footnotes li            {color: #000;             }  #footnotes a li, #footnotes li a            {color: #f90;             }   The aim is to have the li/footer text itself black (#000), and the number styled to orange (#f90).  I've tried using the list-style-color property but this does nothing except upset the Web developer toolbar (in FF3.0.8/Ubuntu 8.04), Midori similarly doesn't display the number in orange (I thought I'd try it in the Webkit engine, just in case...).  Any ideas?  Edited the HTML (since I remembered that the  tag doesn't necessarily need to enclose anything to function as an anchor):  &lt;ol id="footnotes"&gt;     &lt;li&gt;&lt;a name="footnote1"&gt;&lt;/a&gt;This is the first footnote...&lt;/li&gt;     &lt;li&gt;&lt;a name="footnote2"&gt;&lt;/a&gt;This is the second footnote...&lt;/li&gt; &lt;/ol&gt;   In response to those that suggest using a &lt;span&gt; inside the &lt;li&gt;...yeah. That occurred, though I thank you for the suggestions and the time taken, but I was looking (li'l standardista that I am... ;) ) for a more...semantic option.  As it is, I think I'll probably use that approach. Though I accepted a different, Pete Michaud's, answer due to its sheer informative nature. Thanks!
772
I'm writing a document which contains a lot of big figures and tables. Usually I use [htb] for the float position, however, when the float occupies an entire page, it's placed in the next page, O.K!, but when I continue writing, the float jumps to the last page, E. G.:  \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{blindtext} \usepackage{tabularx} \usepackage{booktabs} \begin{document} \blindtext \begin{table}[htb] \centering \caption{Example table} \begin{tabularx}{\textwidth}{X} \toprule \blindtext \blindtext \blindtext\\ \bottomrule \end{tabularx} \end{table} \Blindtext \end{document}      Why the table is placed in the last page intead of the second page and continues the text in the last page? how can I avoid this?