DesignWIKI

Fil Salustri's Design Site

Site Tools


wiki:content_blocks

Content Blocks

Create boxes to contain content.

The block below:

This creates a block that is/has (in order):

  • 80% of page width,
  • centered on page,
  • background of block is rgb(102, 51, 255),
  • text-color is rgb(255, 255, 153);
  • the box border is 2px wide, dashed, its color is rgb(255, 102, 255).
  • The font is 10pt Roboto.

Only width and alignment are required. In this case, if alignment is 'c' or 'r', then you must follow it with a colon: 'c:'.

was produced with the following syntax:

<block 80:0:rgb(102, 51, 255);rgb(255, 255, 153);2px dashed rgb(255, 102, 255);Roboto/10pt>
This creates a block that is/has (in order):
  * 80% of page width,
  * centered on page, 
  * background of block is rgb(102, 51, 255), 
  * text-color is rgb(255, 255, 153); 
  * the box border is 2px wide, dashed, its color is rgb(255, 102, 255).
  * The font is 10pt Roboto.
Only width and alignment are required. In this case, if alignment is 'c' or 'r', then you must follow it with a colon:  'c:'.
</block>

Blocks cannot be nested, unfortunately.

TODO There's too much space at the bottom of the block. Try to clean that up in CSS.

See Also

wiki/content_blocks.txt · Last modified: 2020.03.12 13:30 (external edit)