Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Moodle Theme Development

You're reading from   Moodle Theme Development Build customized themes to make your Moodle courses engaging and interactive

Arrow left icon
Product type Paperback
Published in Dec 2016
Publisher
ISBN-13 9781786463210
Length 302 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Silvina Paola Hillar Silvina Paola Hillar
Author Profile Icon Silvina Paola Hillar
Silvina Paola Hillar
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. An Introduction to Moodle 3 and MoodleCloud 2. Themes in Moodle 3 on-premises and MoodleCloud FREE CHAPTER 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 A. Test Your Knowledge Answers

Locating the information of an image element


Before customizing the height and width of an element in Moodle on-premises with CSS, we need to locate the information of said element. It is not a very difficult task because we have already been working with similar information. Therefore, we need to enter Moodle on-premises's site and proceed with the following steps:

  1. Right-click on the logo and click on Inspect, as shown in the following screenshot:

  2. Information about the element appears, as shown in the following screenshot:

  3. The following code appears, highlighted in the previous screenshot; it reads as follows:

          <a class="logo" href="//localhost" 
             id="yui_3_17_2_1_1468231690835_326"></a> 
    
  4. The following code defines the element and its style:

          #page-header 
          a.logo 
    
  5. The height is 158px and its width is 200px. The information is shown highlighted in the following screenshot:

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 $19.99/month. Cancel anytime