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.


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.

    \draw[color = blue, fill]  (0,0) rectangle (2,2);
    \draw[color = red, fill]  (0,2.1) rectangle (2,3);

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




enter image description here

  • @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.