Tags:
create new tag
, view all tags

Question

I sometimes need to pack some text together in a clearly visible area, e.g. an example or so. I could use manual divs like that:

bla bla bla bla... Here is an example:

<div style="padding: 10px; background-color: green">
bla bla bla bla
</div>

bla bla bla bla

But this is not very nice. So is there a way of creating such areas in an easier way?

Thanks, Josh

Environment

TWiki version: TWikiRelease04x00x05
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories:  

-- JoshuaMuheim - 05 Jan 2007

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

Personally, I find a bit of html/css for that kind of occasional use quite satisfactory. However, if need to use that alot, you could define your own variable (in WebPreferences or Main.TWikiPreferences), such as:

   * Set GREENBLOCK = <div style="padding: 10px; background-color: green">
   * Set ENDBLOCK = </div>

-- LynnwoodBrown - 05 Jan 2007

 
Change status to:
Topic revision: r3 - 2007-01-05 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.