Start Users Private Logout
| Course overview | Translate | Grade overview

Date: Tue Sep 29 10:28:56 1998
Author: Jacob Palme ( 5 )
In-Reply-To: KOM 2000 development
To: TEKNIK I SAMHŸLLET
Language: English

Avoding too wide message text

Avoding too wide message text in KOM 2000

icon for the activity type Name of the activity

This example show how you can use Style Sheets to avoid too wide paragraphs in KOM 2000 message texts.

Do the following:

  1. Inser the following text in the style sheet in the web page head:

    .message {
    background-color : #FFFFCC;
    width : 60ex;
    margin-left : 1em;

  2. Put, immediately before the start of the message text part of the page, the following HTML statement:

    <DIV class=message>

  3. Replace the <BR> after the end of the message text, with

    </DIV>

Note 1: Fixed width text, such as plain text e-mail messages, should not use this feature, they should be rendered using the <TT> HTML tag instead. Do not use the <PRE> tag, since some e-mail messages have one single line for a whole paragraph, and they will not be readable if rendered using <PRE>.

Note 2: A user who wants wider margins for his text, can get this by just putting </DIV><DIV> at the top of his/her message.


Write Reply
In Reply To: Re: Kommetar till Kling
Reply to all: TEKNIK I SAMHŸLLET
Personal reply: Jacob Palme
Language:
Subject:
Enter the text...

Plain Message
Plain Message
Reply
Reply
Question
Question
Idea
Idea
More
More
Promise
Promise
Sad
Sad
Happy
Happy
Angry
Angry
Summary
Summary
Decision
Decision
Insert file:
...as:


You are logged in as Jacob Palme
Last modified: Tue Sep 29 10:28:57 1998