Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

White Space Above And Below SVG File

New Here ,
Mar 26, 2020 Mar 26, 2020

Copy link to clipboard

Copied

I am using a .svg file for my logo. This is the first time I've worked with a .svg file. I literally just uploaded my new website and discovered extra white space above and below my logo. The logo looks perfect when viewed on a desktop, but from my iPhone the extra space is there and I can not figure out why. I have spent hours searching the Internet, watching YouTube videos, and reading article after article on .svg files. I've tried everything, but nothing seems to works.

 

I have run numerous tests, replacing the .svg file with a .png file, same size, same everything, and the .png file displays with no white space, the .svg does. With my .svg code, I've used height and width; height and width with viewBox; just viewBox. I've tried linking to the .svg file and straight inline. The same thing, over and over again. White space. 

 

I have tried dozens of exporting options from Illustrator, trying all different combinations of options. Same thing!

 

The images below are screenshots of the header of my website I took from my phone. My logo size is 540 x 235. For testing purposes I just filled the 540 x 235 with a gradient; its not my logo.

 

Any assistance would be greatly appreciated.

 

website: www.theresatreeforthat.com

 

Thank you

Michael

 

 

PNG 540 X 235PNG 540 X 235SVG 540 X 235SVG 540 X 235

Views

189
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Adobe