Note: You are currently viewing documentation for Moodle 2.6. Up-to-date documentation for the latest stable version of Moodle may be available here: Course element : Definition.

Course element : Definition

From MoodleDocs

Back to index

The element "Definition" is a set of text parts (teacher formatted) that will be visually styled to give student elements of a primary definition. The "defintiion" is mafe of 2 parts:

  • A definition statement
  • A set of subdefinitions
Definition sample.jpg

Settings form

Definition settings.jpg

Default Template

  <table class="custombox-definition" cellspacing="0" width="100%">
  <tr valign="top">
      <td class="custombox-header-thumb definition" width="2%" rowspan="2">
      </td>
      <td class="custombox-header-caption definition" width="98%">
          Definition
      </td>
  </tr>
  <tr valign="top">
      <td class="custombox-content definition">
          <%%definition%%>
      </td>
  </tr>
  <%if %%hassubdeflist%% %>
  <tr valign="top">
      <td class="custombox-foo definition" width="2%"></td>
      <td class="custombox-subdefinitions definition">
          <%%subdeflist%%>
      </td>
  </tr>
  <%endif %>
  </table>

CSS Element list

.custombox-definition(TABLE) : Overal container

.custombox-header-thumb.definition(TD) : Left Icon container

.custombox-header-caption.definition(TD) : Right caption container

.custombox-content.definition(TD) : Text of the theorema

.custombox-subdefinitions.definitionTD) : A container for subdefinitions