Re: Two questions about formatting



John Salerno wrote:

> Hi everyone. I have a couple of (probably simple) questions about how
> to format some text in a paragraph.
>
> First up is the easier one to explain: If I have scientific words
> that I want italicized, is that best done with <em> or a <span>? (My
> guess is span).

Depends. <em> is emphasized, not italic, though most browsers will show
it that way. Do you want to "emphasize" the words, or being scientific,
do you want some other type of .. emphasis? If so, then customize a
<span> for them.

<p>The following is a <span class="scientific">special</span> word.</p>

..scientific {
font-style: italic; font-weight: bold;
color: red; background-color: transparent;
}
or whatever trips your trigger.

> Second thing: If I have several lines of text to put into a <p> and I
> want to keep the text within a certain number of columns in my text
> editor (instead of having the whole paragraph taking up one really
> really long line), is it a good idea to manually press ENTER where I
> want the text to stop, or does that somehow affect the formatting?
> One thing it does affect, I can say, is when you need to go back and
> change the text, then you can see where you pressed ENTER. Should I
> just do a wordwrap instead?

The text in a paragraph element will wrap to fit the available space
when your page is displayed by the browser. You seem to be talking about
how it appears in your source editor. That's your choice. I usually type
about 80 characters and press return so my source is easily readable.

--
-bts
-Warning: I brake for lawn deer
.



Relevant Pages

  • Re: Set list level number in MS Word with AppleScript
    ... Sometimes, an straight paragraph format gets inserted into a numbered list, ... tell paragraph format of selection to set style to style list ... Reading your code, it appears you are setting the "List Level" property, not ...
    (microsoft.public.mac.office.word)
  • Re: Office 2008 Question
    ... The "Format Painter" will do the same job these days, ... Elliott, of course, has to copy the whole paragraph mark because he has ... We Mac people had a fit when Microsoft made Office 4.2.1. ...
    (microsoft.public.mac.office.word)
  • Re: Word 2003 "Not Responding" after Find and Replace
    ... saved under a filename.doc format. ... and indicate where paragraph marks might sensibly ... The log file runs from 8-20MB. ... I had gotten it into the format of using linefeeds and not ...
    (microsoft.public.word.vba.general)
  • Re: Outline Styles
    ... Styles pane and choose Modify from the context menu. ... Click Format, Paragraph. ... them hang because I hang the second line. ...
    (microsoft.public.word.docmanagement)
  • Re: automatic cross-references generate unwanted page breaks when
    ... Select each cell in the top row and go to Format Paragraph | Line and Page Breaks to see if the box is checked. ... > in front of figure or appendix cross-references. ... >> If you then go back and insert a page break before the caption by ...
    (microsoft.public.word.application.errors)