Morph

The swiss army knife of Joomla template frameworks.

Documentation

  • Banner

How to use css for spacing around images

We have created an easy way for you to get your images lined up nicely within the content with the correct margin and padding depending on whether it is on the left or right side of the content. The only thing you have to do is add align"=right"or left to the image and the template and css will do the rest of the spacing for you.

Image alignment

Example 1: Left aligned image

This is an example of an image which has been left aligned, using the align="left" image attribute. A class of ".img-left" is automatically appended to the image, to allow for additional css tweaking.

left aligned imageCredibly visualize integrated experiences through vertical best practices. Enthusiastically generate empowered technology and holistic total linkage.

Quickly parallel task quality products rather than timely e-markets. Credibly visualize integrated experiences through vertical best practices. Enthusiastically generate empowered technology and holistic total linkage. Assertively redefine resource-leveling solutions via accurate potentialities.

Image credits: Love heart by leovdworp

Code: {code}left aligned image{/code}


Example 2: Right aligned image

This is an example of an image which has been right aligned, using the align="right" image attribute. A class of ".img-right" is automatically appended to the image, to allow for additional css tweaking.

right aligned imageCredibly visualize integrated experiences through vertical best practices. Enthusiastically generate empowered technology and holistic total linkage.

Quickly parallel task quality products rather than timely e-markets. Credibly visualize integrated experiences through vertical best practices. Enthusiastically generate empowered technology and holistic total linkage. Assertively redefine resource-leveling solutions via accurate potentialities.

Image credits: Face of Sun by clshearin

Code: {code}left aligned image{/code}


Image captions

The images below are examples of images that have caption enabled. This is done by adding a class of .caption to the image. Image captions are disabled by default, but can easily be enabled & customized in the "plugins > captions" tab in Configurator.

  1. Activate (and customize) the Captions plugin in Configurator (plugins > captions).
  2. Add a class of .caption to your image.
  3. Add some description text (which will be used for the caption) to your image, using the image "alt" attribute, eg: alt="This is my caption text".

Example 3: Left aligned with "img-left caption" classes set

This is an example captionCredibly visualize integrated experiences through vertical best practices. Enthusiastically generate empowered technology and holistic total linkage.

Quickly parallel task quality products rather than timely e-markets. Credibly visualize integrated experiences through vertical best practices. Enthusiastically generate empowered technology and holistic total linkage. Assertively redefine resource-leveling solutions via accurate potentialities.

Image credits: Dreaming in the grey reality by Vangel_PL

Code: {code}left aligned image{/code}


Example 4: Right aligned with "img-right caption" class set

this is the captionCredibly visualize integrated experiences through vertical best practices. Enthusiastically generate empowered technology and holistic total linkage.

Quickly parallel task quality products rather than timely e-markets. Credibly visualize integrated experiences through vertical best practices. Enthusiastically generate empowered technology and holistic total linkage. Assertively redefine resource-leveling solutions via accurate potentialities.

Image credits: Red lady by alicja_sto

Code: {code}left aligned image{/code}


Image borders

Example 5: Left aligned with "img-left img-border" classes set

left aligned imageCredibly visualize integrated experiences through vertical best practices. Enthusiastically generate empowered technology and holistic total linkage.

Quickly parallel task quality products rather than timely e-markets. Credibly visualize integrated experiences through vertical best practices. Enthusiastically generate empowered technology and holistic total linkage. Assertively redefine resource-leveling solutions via accurate potentialities.

Image credits: Love heart by leovdworp

Code: {code}left aligned image{/code}


Example 6: Right aligned with "img-right img-border img-style1" classes set

right aligned imageCredibly visualize integrated experiences through vertical best practices. Enthusiastically generate empowered technology and holistic total linkage.

Quickly parallel task quality products rather than timely e-markets. Credibly visualize integrated experiences through vertical best practices. Enthusiastically generate empowered technology and holistic total linkage. Assertively redefine resource-leveling solutions via accurate potentialities.

Image credits: Face of Sun by clshearin

Code: {code}right aligned image{/code}


Example 7: Right aligned with "img-left img-border img-style2" classes set

left aligned imageCredibly visualize integrated experiences through vertical best practices. Enthusiastically generate empowered technology and holistic total linkage.

Quickly parallel task quality products rather than timely e-markets. Credibly visualize integrated experiences through vertical best practices. Enthusiastically generate empowered technology and holistic total linkage. Assertively redefine resource-leveling solutions via accurate potentialities.

Image credits: Dreaming in the grey reality by Vangel_PL

Code: {code}left aligned image{/code}


Example 8: Left aligned with "img-right img-border img-style3" classes set

right aligned imageCredibly visualize integrated experiences through vertical best practices. Enthusiastically generate empowered technology and holistic total linkage.

Quickly parallel task quality products rather than timely e-markets. Credibly visualize integrated experiences through vertical best practices. Enthusiastically generate empowered technology and holistic total linkage. Assertively redefine resource-leveling solutions via accurate potentialities.

Image credits: Red lady by alicja_sto

Code: {code}right aligned image{/code}


Example 9: Right aligned with "img-left img-border img-style4" classes set

left aligned imageCredibly visualize integrated experiences through vertical best practices. Enthusiastically generate empowered technology and holistic total linkage.

Quickly parallel task quality products rather than timely e-markets. Credibly visualize integrated experiences through vertical best practices. Enthusiastically generate empowered technology and holistic total linkage. Assertively redefine resource-leveling solutions via accurate potentialities.

Image credits: Face of Sun by clshearin

Code: {code}left aligned image{/code}


Example 10: Left aligned with "img-right img-border img-style5" classes set

right aligned imageCredibly visualize integrated experiences through vertical best practices. Enthusiastically generate empowered technology and holistic total linkage.

Quickly parallel task quality products rather than timely e-markets. Credibly visualize integrated experiences through vertical best practices. Enthusiastically generate empowered technology and holistic total linkage. Assertively redefine resource-leveling solutions via accurate potentialities.

Image credits: Dreaming in the grey reality by Vangel_PL

Code: {code}right aligned image{/code}

Saturday, 20 August 2011

Introduction to Morph's architecture

Morph's architecture is quite different from most traditional Joomla! templates, so it's important to you understand the role that each of the three key parts play, as it will help you grasp the other key concepts that Morph introduces.

Fork on Github