Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 629717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:46:37+00:00 2026-05-13T19:46:37+00:00

How I can align a text/pargaph both to left and right in HTML? Like

  • 0

How I can align a text/pargaph both to left and right in HTML? Like in the office programs.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T19:46:38+00:00Added an answer on May 13, 2026 at 7:46 pm

    text-align: justify; in css

    but beware: unlike in proffesional DTP applications or even in word, HTML/browser often do not play nicely with this – you might end having humongous gaps in your text, completely destroying any typogtaphy you try to achieve in your document.

    Edit:

    As reply to Brian, my experiences are following:

    • haven’t tried % for width, because I either set width in px or not at all and let display:block; element fill whole width of parent
    • text-align: justify works best with small font-size with slightly higher line-height – line-height is for readbility and smaller font size puts more characters in one line (abstract characters-per-line width), therefore gaps between words/justified text looks better
    • regarding images instead of small non changing parts of text – I tend to use as few image replacement parts as possible – I have very good results with Cufón, if you learn to count with it’s cons
    • I don’t advice using justified text for sidebars and one-liners – it mostly seems ugly

    Edit2:
    The main problem is, that browsers don’t know how to part your text (i.e. unbreakable to un-breakable) – soft hyphyen, ­ should solve this (link: soft hyphen overview), but browser support is wild at best 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I align text in the vertical middle of a Div element provided
Can we align our text line by line(I mean whatever the text we have
As gathered from Why align="center" not overriding on {text-align:right;} this article, CSS should take
The line td img { text-align: center } won't work. It has to target
I'm wondering how you can have the text also under the Logo. This is
I cannot find a way to set the text alignment in a QTabWidget. After
in my Model I have a string property Feeds with value like that: <img
How can I append style element to DOM without eliminating existing style on the
how can I force the attribute small to a specifically size? (ex: 13px) I'm
Just wondering if someone can help me code the following. I want to use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.