Saturday, July 23, 2016

Paragraph Alignment in CSS

Paragraph Alignment in :

Cascading Style Sheet (CSS)

for Text

using properties: text-align
value:
  • left
  • right
  • center
  • justify
default value in many CSS properties:
  1. initial = like reset.
  2. inherit = follow it properties value.
for image
using objects, images, tables, frames, etc.
using : float and clear.

alternative:

HyperText Markup Language (HTML)

Using HTML 4 align attribute, but not supported in HTML 5
attribute "justify" is supported by element :
  • p, div, h1, h2, h3, h4, h5, h6
  • col, colgroup, tbody, thead, tfoot, tr, th, td.
  • or block elements (tables, images, objects, paragraphs, etc.) 

HTML Special Character

soft hyphens (­)

No comments:

Post a Comment