This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Circle Icon – Increase Height and Center Content

9 years ago · Last reply by Alex S 9 years ago

I read the thread here (https://siteorigin.com/thread/making-circle-icon-widget-background-the-same-size/) about increasing the height of the circle icon container. This was fantastic and did what I wanted except for one thing. How can I center the content in the container?

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Alex S Staff 9 years, 9 months ago

    Hi Samstifter,

    I suspect you’re asking about vertically centring the icons. This is notoriously hard in CSS but you should be able to do this with the following CSS. Please be sure to replace the CSS referenced in that thread with the following. If you navigate to AppearanceCustom CSS, you’ll get our custom CSS editor. Just add the following code.

    .circle-height {
    	min-height: 300px;
    	position: relative;
    }
    .circle-height .circle-icon-box {
    	position: absolute;
    	top: 50%;
    	right: 0;
    	left: 0;
    	transform: translateY(-50%);
    }

    You might also need to install the SiteOrigin CSS Editor.

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread