0

I want to add two filled rectangle()red,blue in title page. How i can place the red rectangle above the blue one. The red rectangle is smaller than blue.

0

Kindly add a minimal working example so that we can understand what you need. Anyhow, as far I understood is, you have some title and you need to place some rectangle above (or below). Here is the simple solution using tikz.

    \documentclass{article}
\usepackage{tikz}
\begin{document}
    \begin{titlepage}
\centering
    \begin{tikzpicture}
    \draw[color = blue, fill]  (0,0) rectangle (2,2);
    \draw[color = red, fill]  (0,2.1) rectangle (2,3);
    \end{tikzpicture}   

    \huge \textbf{Do you want the title Here ?}

\end{titlepage}

\end{document}

Output:

enter image description here

| improve this answer | |
  • @tovino HI tovino.. Welcome. Always add a minimal working example which explains your effort in doing the same(or atleast document class with \begin{document} \end{document}). Then you will get your answer immediately in this site, most of the time. – David Jun 20 '18 at 11:01
  • @tovino upvote if it solve your question. Thats the way to thank the people who answers your question. – David Jun 20 '18 at 11:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.