I am trying to make a result template in Overleaf. I have split my page into 5 parts using minipages. The upper half of my page has 3 minipages which allow me to have a text in between 2 images and I want it to have black background colour. While the lower half of my page is split into 2 minipages and I want them to have grey background colour. How can I do it?
When I try \pagecolor{black}\color{white} it makes the entire page black.
Thanks to Fran for solving my issue above. But, now I'm stuck with their alignment.
Here's my current code:-
\documentclass[landscape]{article}
\usepackage[margin=0pt]{geometry}
\usepackage{xcolor,graphicx}
\usepackage[export]{adjustbox}
\usepackage{parskip}
\begin{document}
\pagecolor{gray!30}
\sffamily\bfseries
\fboxsep0.8cm
\colorbox{black}{\color{white}
\begin{minipage}{\dimexpr\linewidth-2\fboxsep}
\includegraphics[valign=c,width=.1\linewidth]{Zaariya.png}\hfil
\parbox[c]{.75\linewidth}{\centering\Huge Sci\textcolor{red}{Q}uest 2\textcolor{red}{K}20 \par}\hfil
\includegraphics[valign=c,width=.1\linewidth]{Niser_logo.png}
\end{minipage}}
\hspace{0.5cm}
\begin{minipage}[c]{0.4\textwidth}
\Large \textbf{Name:-} <<Students Name>>\\
\textbf{Class:-} <<His Class>>\\\vspace{1.2cm}
\textbf{Roll No:-} <<ROLL>> \\
\textbf{Marks:-}\\
\begin{itemize}
\item \textbf{Subject 1 :} <<Marks1>>
\item \textbf{Subject 2 :} <<Marks2>>
\item \textbf{Subject 3 :} <<Marks3>>
\item \textbf{Subject 4 :} <<Marks4>>
\item \textbf{Total :} <<Total>>
\end{itemize}\vspace{1.3cm}
\textbf{Class Rank:-} <<Rank1>>\\
\textbf{Overall Rank:-} <<Rank2>>\\
\end{minipage}
\begin{minipage}[c]{0.6\textwidth}
\includegraphics[width=0.4\textwidth]{Bar_Graph.png}\\
\includegraphics[width=0.4\textwidth]{Subject_pie_chart.png}\\
\includegraphics[width=0.4\textwidth]{Tot_pie_chart.png}
\end{minipage}
\end{document}
Here's a picture of the result:-

I am trying to move both the text and the images to move more right but am unable to.

\colorbox{yourcolor}{yourminigage}? – Fran Mar 05 '20 at 20:09\documentclass{article} \usepackage{xcolor} \begin{document} \colorbox{blue!20}{\color{red} \begin{minipage}{4cm} Bla bla bla \par Bla bla bla \par Bla bla bla \par \end{minipage}} \end{document}Of course, the blue will be covered by the background of images ... except for PNG or PDF images with a transparent background. – Fran Mar 05 '20 at 21:07\fboxsep2cm(before of the\colorbox, of course). – Fran Mar 05 '20 at 21:27\fboxsep2cmit does not keep the background of a uniform rectangle shape as the minipages that I have created are of different sizes. – Shashank Saumya Mar 05 '20 at 22:00