Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #865747

    https://caltech-mics.org/

    Logo is either vertical-aligned when full, or vertical-aligned when shrunk, but I cannot get it to be vertical-aligned in both states!

    #866147

    Hey Nancy,

    It looks good on my end in both states, not sure if you got it working or if you want to change something? If you want to change something then please try to explain a bit further.

    Best regards,
    Rikard

    #866151

    what kind of logo file did you use. If you are using a svg file there are some tricks to determine the shrinking center.

    you can open the svg with a good text-editor (on mac sublime-text or notepad++ on windows)
    there you can place on top in the <svg … just after viewbox something like this: preserveAspectRatio="xMinYMin meet"

    looks this way:

    <svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
    	 viewBox="110 33 400 120" enable-background="new 110 33 400 120" preserveAspectRatio="xMinYMin meet" xml:space="preserve">

    xMinYMin means the svg shrinks to the top left
    xMinYMid means the svg shirnks to left mid
    xMaxYMax shrinking to bottom right
    etc.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.