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.
Credibly 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}
{/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.
Credibly 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}
{/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.
- Activate (and customize) the Captions plugin in Configurator (plugins > captions).
- Add a class of
.captionto your image. - 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
Credibly 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}
{/code}
Example 4: Right aligned with "img-right caption" class set
Credibly 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}
{/code}
Image borders
Example 5: Left aligned with "img-left img-border" classes set
Credibly 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}
{/code}
Example 6: Right aligned with "img-right img-border img-style1" classes set
Credibly 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}
{/code}
Example 7: Right aligned with "img-left img-border img-style2" classes set
Credibly 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}
{/code}
Example 8: Left aligned with "img-right img-border img-style3" classes set
Credibly 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}
{/code}
Example 9: Right aligned with "img-left img-border img-style4" classes set
Credibly 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}
{/code}
Example 10: Left aligned with "img-right img-border img-style5" classes set
Credibly 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}
{/code}

Feeling social? Connect with us!