Writing the "quote box in HTML

<b> Forum for the discussion on how to use computers and technology in the ESL/EFL classroom </b>

Moderators: Dimitris, maneki neko2, Lorikeet, Enrico Palazzo, superpeach, cecil2, Mr. Kalgukshi2

Post Reply
Andrew Patterson
Posts: 922
Joined: Mon Feb 02, 2004 7:59 pm
Location: Poland
Contact:

Writing the "quote box in HTML

Post by Andrew Patterson » Wed Feb 18, 2004 11:43 am

When I do transformations with my students, I like to point out that there is usually what I call a "live" and "dead" part of the sentence. "The dead" part just sits there and isn't involved in the transformation. Identifying the "live" and "dead" parts of a sentence greatly speeds up the process of doing transformations. Prepositional phrases are often "dead".

I'd like to show this on a website and the quote box at Daves ESL cafe looks like a good way of showing the "live" part of the sentence. I could leave the "dead" part outside the box.

Does anyone know how to write the HTML code to do this.

Dave do I have your permission to use the code?

Andrew Patterson

Al
Posts: 42
Joined: Wed Jul 16, 2003 1:59 pm
Location: Sussex, UK

Post by Al » Fri Mar 12, 2004 5:06 pm

This should work:

<span class="alive">The alive bit is here,</span><span class="dead"> but the dead part is here</span>.

In the head of your document, put the following:
<style>
.alive{
color:#cc0000;
background:#ccccff
}
.dead{
color:#333333;
background:#999999
}
</style>

PS - it's not Dave's code. It's released under something called the GPL for free - the only stipulation is that you preserve that freedom for others by making your modifications available to others to use in the same way, and attribute where you got your ideas from.

If you have a good enough connection, www.phpbb.com has all the source code.

Enjoy, Al

Andrew Patterson
Posts: 922
Joined: Mon Feb 02, 2004 7:59 pm
Location: Poland
Contact:

Post by Andrew Patterson » Sat Mar 27, 2004 1:11 am

Thanks Al.

Post Reply