2.3. theme_blockcenter_c.html

Line 1-6:

<div style="padding: 5px;">
  <fieldset>
    <legend class="blockTitle"><{$block.title}></legend>
    <div class="blockContent"><{$block.content}></div>
  </fieldset>
</div>

This HTML file dictates the general layout of the Center-Center Blocks which gives them a consistent look. This is called by the theme.html file through a Smarty <{include}> tag.

All center blocks are placed inside a div and enclosed in a fieldset. The block title becomes the legend of that fieldset. The block content is placed in a nested div inside the fieldset.

It uses the Smarty tags <{$block.title}> and <{$block.content}>.

[Tip]Theme-Building Tips
  • The rendering of fieldsets often differ from browser to browser. Although it is possible to change its look through the style.css by creating a class for the fieldset, some theme-builders rely on divs or tables to display the block title.

  • Take note that the padding of the divs of the center blocks are embedded in the tag rather than linked from the style.css. Edit the file directly for changes in the displayed padding of the block.