html - CSS word wrapping causes huge spaces between words -


huge space between words when wrapped

hi! when window resized, text automatically wraps fit container nicely. this, i'm using css code:

article {     overflow: auto;     word-wrap: break-word; } 

though seems, has no effect @ all. when remove piece of code, behavior doesn't change: text still wrapped near end of line.

i'm complaining huge gaps between words. i've observed few webpages no code used , still works nicely. can please me rid of space? thank you!

i agree text-align: justify has been inherited parent html tags. try modifying css follows:

article {     overflow: auto;     word-wrap: break-word;     text-align: start; } 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -