Streaming live at 10am (PST)

Link Block throws a row's vertical alignment off


#1

http://delevantecreative.webflow.io/

In the "client section", I want some of the logos to be links and some to not be. I want to add a rollover to the logos that link to another page. When I add the link blocks into my rows of logos, it throws off the vertical alignment I had going. I can't seem to find any built in padding or margins in the link block. Any idea what could be causing this?


#2

Hi @sarastrese, This may have to do with the display property, however I'm not 100% sure without having access to your read only link.

Can you please share it here? help.webflow.com/faq/how-do-i-share-my-sites-read-only-link

Thanks in advance! smile


#3

Sorry, here it is:

https://preview.webflow.com/preview/delevantecreative?preview=4538200cb061c0e46ea60c9b6d06cff3


#4

@thewonglv were you able to find anything from the read-only link I sent?


#5

Hi @sarastrese, empty elements have a baseline that is different than elements with an image inside it.

It's sort of a strange concept, but display: inline-block has vertical alignment settings that rely on the element's "baseline" More info here: http://stackoverflow.com/questions/12950479/why-does-inline-block-element-having-content-not-vertically-aligned

What I would do? I would continue to use images and avoid using background images. This will help your site be more responsive as is easier to manage.

Try adding your images to the link block and remove the height and width settings.

Hope this helps! smile


#6

Thanks @thewonglv. I would love to keep all the logos as images, but wasn't able to find a way to achieve the rollover I need, i.e. the gray logo turns to the full color logo?


#7

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.


#8