Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Moodle Theme Development

You're reading from  Moodle Theme Development

Product type Book
Published in Dec 2016
Publisher
ISBN-13 9781786463210
Pages 302 pages
Edition 1st Edition
Languages
Author (1):
Silvina Paola Hillar Silvina Paola Hillar
Profile icon Silvina Paola Hillar

Table of Contents (19) Chapters

Moodle Theme Development
Credits
About the Author
Acknowledgements
About the Reviewer
www.PacktPub.com
Dedication
Preface
1. An Introduction to Moodle 3 and MoodleCloud 2. Themes in Moodle 3 on-premises and MoodleCloud 3. Setting Up Logos in Moodle Themes 4. Customizing the Header and the Footer 5. Customizing Elements with CSS 6. Locating, Editing, and Using New Icons 7. Optimizing Themes for Mobile Devices 8. Exploring Layouts 9. Course Formats 10. Extending Moodle Theming to Specific Sections Test Your Knowledge Answers

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...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}