It looks like you're using an Ad Blocker.

Please white-list or disable AboveTopSecret.com in your ad-blocking tool.

Thank you.

 

Some features of ATS will be disabled while you continue to use an ad-blocker.

 

How do you use Justify attribute in <P>

page: 1
1

log in

join
share:

posted on Mar, 12 2016 @ 12:30 AM
link   
I am confused with this attribute. How do you use Justify attribute in HTML



posted on Mar, 12 2016 @ 12:42 AM
link   
a reply to: 2head

As far as I know, it's the same as any other html text align attribute:

...< p align="justify"> (ignore the space in front of the p and the 3 periods)


edit on 12-3-2016 by CranialSponge because: (no reason given)



posted on Mar, 12 2016 @ 01:12 AM
link   
a reply to: 2head

as an alternative, you could try using the style attribute and the text-align property:
<p style="text-align:justify;">This is a paragraph.</p>

...but you still need enough text (multiple lines) to actually see it working.

This site has an interactive feature at the bottom of the page that might help:
www.w3schools.com...



posted on Mar, 12 2016 @ 01:45 AM
link   
Or you could create a div with an custom id and style it in css the right way. Keep your html and css separate, makes for cleaner structure and ease of reading.

Html
< div id=test>Chunk Of Text< /div>

Css
#test [
text-align: justify;
text-justify: inter-word;
]

Edit: Seems ATS converts the brackets...BOO
edit on 3/12/2016 by shaneslaughta because: (no reason given)



posted on Mar, 12 2016 @ 02:41 AM
link   
This is why I hate coding HTML. Its all different.



posted on Mar, 12 2016 @ 03:43 AM
link   
align
can be left right or center

try w3schools - great website coding resource


(post by daisyeden removed for a serious terms and conditions violation)

posted on Jul, 14 2016 @ 06:00 AM
link   
Syntax:
div [
text-align: justify;
text-justify: inter-word;
]
edit on 17am7kamThursdayppam31 by sankalppatil because: (no reason given)


(post by eminentit removed for a serious terms and conditions violation)

posted on Aug, 3 2019 @ 02:37 PM
link   
 




 


(post by Cresttechnosoft removed for a serious terms and conditions violation)

new topics

top topics



 
1

log in

join