
Giving every logo the same width rarely makes a grid look balanced. A long wordmark and a compact symbol have very different visual weight. Start with consistent tile dimensions and generous padding, then give each logo a small size adjustment. These three fictional marks make the difference easy to see.
Change the CSS below. The preview updates as you type. Your edits stay in this browser tab.
Adjust --logo-width on each tile. The three brands in this demo are fictional.
HTML for this example
<div class="logo-grid"><div class="logo-tile"><svg viewBox="0 0 240 60" role="img" aria-label="Fictional Northline logo"><text x="120" y="43" text-anchor="middle" font-family="sans-serif" font-size="38" font-weight="800" fill="currentColor">NORTHLINE</text></svg></div><div class="logo-tile"><svg viewBox="0 0 100 100" role="img" aria-label="Fictional Arc logo"><circle cx="50" cy="50" r="43" fill="none" stroke="currentColor" stroke-width="7"/><path d="M24 70 L50 24 L76 70 M36 52 H64" fill="none" stroke="currentColor" stroke-width="7"/></svg></div><div class="logo-tile"><svg viewBox="0 0 180 100" role="img" aria-label="Fictional Field Studio logo"><text x="90" y="45" text-anchor="middle" font-family="serif" font-size="40" fill="currentColor">Field</text><text x="90" y="76" text-anchor="middle" font-family="sans-serif" font-size="20" letter-spacing="4" fill="currentColor">STUDIO</text></svg></div></div><p class="example-note">Three fictional logos with different proportions.</p>
Make the container consistent
Grid centers each mark inside a tile with the same minimum height. The image rule preserves proportions with height: auto and caps both dimensions. object-fit: contain helps images fit within their available box. Use an image element for a meaningful logo, with the company name as its alternative text.
Adjust visual weight, not just pixels
Each tile sets --logo-width. Try widening the wordmark or shrinking the circular symbol until neither dominates. The last three rules set the custom property on individual tiles. Adjust a specific tile with a selector such as .logo-tile:nth-child(2) { --logo-width: 4rem; }. This is optical balancing, so the final decision needs your eye.
Watch for invisible whitespace
A file can include a large transparent margin around its actual artwork. That makes the mark look small even when its image box is large. Ask for a properly trimmed source asset rather than stretching or distorting the logo. Check dark and light marks against their backgrounds, and confirm you have permission to display client identities.
Reference: MDN on object-fit.
Have a client website that needs this kind of attention? See our WordPress development for agencies and case studies.


Leave a Reply