Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8860853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:21:22+00:00 2026-06-14T15:21:22+00:00

Using a svg as a logo here (with a fallback to png when needed)

  • 0

Using a svg as a logo here (with a fallback to png when needed)

On the desktop all fine, and when i shrink the browser all fine.
But on an actual real ipad, my logo(svg) is pushing the navigation down…a lot.

There is obviously something wrong, but it cant work out what it is.
Have tried adding a max-height to it, but makes no difference.
Have tried adding a max-height to the surrounding div….no luck

…i could ignore the svg and just use the png, but would like to get it to work.

Can anyone help as to why this is happening ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T15:21:23+00:00Added an answer on June 14, 2026 at 3:21 pm

    Ok i’ve sorted this out.

    I was using modernizr and an img tag

    if (Modernizr.inlinesvg) {
                   //SVG.
            //    $('#logosvg').html('<img src="BLogo_Intra_RGB.svg" alt="alt" />');
    
            } else {
                //No SVG.
            //    $('#logosvg').html('<img src="logo.png" alt="alt" />');
    }
    

    whereas i’ve now change this to using an object tag

                    <div id="logosvg" class="eleven columns" style="outline: 1px solid blue">
                <object data="Logo_Intra_RGB.svg" type="image/svg+xml" class="classsvg" alt="alt">
                    <a href="Logo_Intra_RGB.svg">
                        <!--[if lte IE 8 ]-->
                        <img src="log.png" alt="alt">
                        <--![endif]-->
                    </a>
                </object>
                </div>
    

    and this seems to be working fine
    I’ve got a css width 100% on the classsvg

    mind you i can see why svg are not more widely used 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using an app called Quarkee to convert a logo from SVG to Quartz
I am creating visualizations using svg and it renders fine in IE9. I am
I'm working on an interactive interface using SVG and JavaScript/jQuery, and I'm trying to
I am trying to export Telerik MVC chart to PDF using svg.dll (works well
I'm using an svg image as a background. I'm trying to use CSS3's background-size:
I'm encountering an odd problem showing .svg using simple img tags on Apache. On
I am using the .NET svg rendering engine to convert an svg file to
I've been using the jQuery.svg plugin to do some SVG rendering and it works
I am trying to serve a svg map using: <object data=map.svg type=image/svg+xml width=400 height=300>
I am using Phonegap file upload to upload SVG files to my server. It's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.