Book Image

Moodle Theme Development

By : Silvina Paola Hillar
Book Image

Moodle Theme Development

By: Silvina Paola Hillar

Overview of this book

Theming is one of the main features of Moodle, and it can be used to customize your online courses and make them look exactly how you want them to,according to your target audience. If you have been looking for a book that will help you develop Moodle themes that you are proud of, and that your students will enjoy, then this is the book for you. We start off by introducing Moodle 3 and explaining what it is, how it works, and what tools you might need to create a stunning Moodle theme. We then show you how to choose and change the pre-installed Moodle themes in detailed steps, and explain what Moodle themes are and how they work. Next, we show you how to change an existing theme and test the changes that you have made. You can not only plan the customization of theme, but also tailor it using advanced Moodle theming processes; this book is your one-stop guide to creating your own personalized Moodle 3 theme.
Table of Contents (19 chapters)
Moodle Theme Development
Credits
About the Author
Acknowledgements
About the Reviewer
www.PacktPub.com
Dedication
Preface

Setting the height and width of an image element with CSS


We can change the height and width of elements such as images. In this example, we will continue using the editor and we will work with an example of an image to learn how to locate it within the code. Thus, we need to visit the following website: http://www.w3schools.com/css/css_dimension.asp   (the website from the previous example).

Follow these steps to set the height and width of an image element:

  1. Scroll down until you find Try it Yourself - Examples, as shown in the following screenshot:

  2. Click on Set the height and width of Elements, as shown in the previous screenshot.

  3. A new tab appears displaying code on the left-hand side and the elements on the right-hand side, that is to say, images and information. It looks as shown in the following screenshot:

  4. The code reads as follows:

          <!DOCTYPE html> 
          <html> 
          <head> 
          <style> 
          img.one { 
              height: auto...