Connect with us

Hi, what are you looking for?

Tips

How to justify texts, objects and images in HTML 5?

Discover how to justify texts, objects and images using HTML 5 in just a few seconds and in a very simple way!

How to justify texts, objects and images in HTML 5

It is notable that many people need to make their text as professional as possible, and justifying the texts and objects that make up the page are essential for professionalism to be followed. With that in mind, here at DevSchool you will find a tutorial showing how to justify text on a web page or specific application that uses reading HTML. With that in mind, I decided to write this quick post to help you.


How to justify texts, objects and images in HTML 5

To justify your text and classify it whenever you want, just insert the following parameter in your HTML file:

.justificado {text-align: justify;text-justify: inter-word;}

If you prefer, you can create a file in .CSS and save it to your dedicated instance (recommended). In sequence, you must insert in your HTML file created right at the beginning (metadata):

<link rel=”stylesheet” href=”ENDEREÇO URL”>

After entering the commands in .CSS, you must “call” the global command where you want to use and justify the text as desired. See the example:

<div class="”justificado”">The text here will be automatically justified. But you need to call it using the variable “class” with an equal sign and the name in sequence, in quotes.</div>

Oh! Remember: when creating the external file, insert the parameter to be used.


Written By

My name is Juan de Souza, I'm 24 years old, I'm a businessman, investor, blogger, streamer and podcaster. I started my first business when I was 10 years old, using a dial-up connection in Brazil. Founded businesses like TFX, Coliseu Geek, among others.

Comments
Advertisement
Advertisement

See what we recommend about our Coliseu for you:

Java and JavaScriptJava and JavaScript

Technology

There are many similarities and many differences between Java and JavaScript. That's why it's very common to confuse JavaScript with the Java programming language. In...

Tips

Know the differences between Java and JavaScript languages and their individual applicability for each ecosystem in a practical way!

Mixed ContentMixed Content

Technology

There is no doubt that the SSL certificate (Secure Socket Layer) is one of the most important security elements for anyone who has a website or...







Disclaimer: We prioritize producing completely impartial content and follow this definition to the letter. Never, under any circumstances, will you find articles and productions with an ideological or political bias on our website. We analyze and question any side or point of view, in order to bring our audience the highest quality and transparent content possible.

Copyright © 2024 Coliseu Geek - All rights reserved. "Coliseu Geek" is a product and property of the company TFX.