Philip P. Ide

Author, programmer, science enthusiast, half-wit.
Life is sweet. Have you tasted it lately?

User Tools

Site Tools


blog:articles_on_writing:spacing_indents_4_stories

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
blog:articles_on_writing:spacing_indents_4_stories [2019/03/18 12:17] – created Phil Ideblog:articles_on_writing:spacing_indents_4_stories [2019/05/15 14:37] – [Proper Paragraph Spacing and Indenting on Web Pages] Phil Ide
Line 20: Line 20:
 <code css> <code css>
  div.story {  div.story {
- width: 60%;+ width: 60%;  /* or use px or em for fixed width */
  }  }
  .story p {  .story p {
Line 32: Line 32:
  font-size: 2em;  font-size: 2em;
  }  }
-< 
 </code> </code>
-Simply wrap your story in a <code><div class=story></code> tag, and enclose each paragraph as usual in <code><p></p></code> pairs.+Simply wrap your story in a <code><div class=story></div></code> tag, and enclose each paragraph as usual in <code><p></p></code> pairs. The css can be located in a style sheet, or embedded in <code><style></style></code> tags in the page.
 ==== Example ==== ==== Example ====
 <html><div class=story></html> <html><div class=story></html>
blog/articles_on_writing/spacing_indents_4_stories.txt · Last modified: 2019/05/15 14:39 by Phil Ide

Except where otherwise noted, content on this wiki is licensed under the following license: Copyright © Phil Ide
Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki