Closed valeriebordeleau closed 8 years ago
Is it just in Finder that you're seeing the extra space or in your website too? Because Finder always seems to add extra space to the bottom of its preview.
On my site as well. I tried to use the svg to make an iconic font and the icon had the extra apace as well
Can I see the code?
I added the weird svg to the 404 page (so I didn't wreck the homepage)
404.html
Line 11: <i class="portfolio-wordmark-for-web name"></i>
Hmm... It must be something to do with it matching the font metrics of the other letters in the icon font. I don't have much experience with generating icon fonts—I generally avoid them and use something else instead.
I chose to use it because the svg hover state styling wasn't working in chrome. Do you think that creating a second iconic font and linking that would work? or would that be too heavy and slow load times too much?
Yeah, a second font may work well, but you're right that it'll likely slow down your website. Do some performance testing with the second font and see how bad it is.
Okay. Will do. I'm really not sure why the hover state stopped working in chrome. I swapped out my logo for an updated version and the hover state stopped working. All of the code remained the same. On the project pages the logo stays black in chrome rather than white with a hover state
Possibly the colour of black is embedded in the SVG itself instead of referring to CSS.
Look for a fill=""
in the SVG.
No luck with that. No fill on it.
I tried using a second iconic font family and the extra space is still there. The error seems to be with the file itself.
Maybe come to my office hours next week so I can look. Or ask me in the grad class.
I feel like we should be able to make it work without the custom font, just as an SVG.
sounds like a plan. I'll aim for your Tuesday hours if you're busy in class. I'm sure it's just a weird setting or something. Honestly I'm most concerned about my forwarder not working (I just tried it again), as its my only contact info on the grad site/my site aside from social media. What room number is your office?
What room number is your office?
J104
thanks
@thomasjbradley I'm having some issues saving out svg's, I went back and followed your video just to double check my settings and they match up. However every time I save out an svg extra padding is added to the bottom of the file that didn't exist in illustrator. I've tried using SVGOMG on it after to see if compressing it would make any difference and also selecting the "use artboards" check box when saving. Nothing is making a difference. Any suggestions? Thank-you
In Finder/How it looks coded:
How it looks in illustrator: