Changing size of site logo (image at top)

This forum is closed to new entries, and is archived here for reference.


Home › Forums › Lorina Pro › Changing size of site logo (image at top)

Tagged: 

Viewing 4 posts – 1 through 4 (of 4 total)
  • Author
    Posts
  • #14747
    #14748
    kristincali
    Participant

    website is kristinbytheocean.com

     

    #14750
    Andy
    Keymaster

    Your logo image is 500×195 so it will never display larger than those dimensions.

    I can see on your site you have already added some custom CSS to give the logo a maximum display width of 283px.

    Yes you can use a percentage instead, example:

    .custom-logo {
        max-width: 50%;
    }

    One thing to note is that using percentage will give the image a maximum width of the available area in which it sits.
    So for example, the width of the inner container of the header is say 980px, then using max-width: 50% would display the logo at 490px width. This is 50% of the 980px container, not 50% of the 500px wide image.

    So it may make more sense in some instances to use a pixel value instead, example:

    .custom-logo {
        max-width: 283px;
    }
    #14762
    kristincali
    Participant

    Very helpful. THANK YOU.

Viewing 4 posts – 1 through 4 (of 4 total)
  • The topic ‘Changing size of site logo (image at top)’ is closed to new replies.