Wondering how to make sure that the logo image placed in Oxygen Header Builder’s center div always remain centered irrespective of how much content is placed in the left and right divs?

Before:

After:

Watch the screencast below to learn how.

Here’s the CSS code:

.oxy-header-container {
	justify-content: center;
}

.oxy-header-center {
	flex-grow: 0;
}

.oxy-header-left,
.oxy-header-right {
	flex: 1;
}

@media only screen and (max-width: 992px) {

	.oxy-header-container {
		flex-direction: column;
	}

	.oxy-header-left,
	.oxy-header-right {
		justify-content: center;
	}

}

An alternate approach is to use CSS Grid like so:

.oxy-header-container {
	display: grid;
	grid-template-columns: 1fr 150px 1fr;
}

where 150px is the width of your image logo. Credit: Olly Cowan.

Need help implementing a tutorial in your site or want to hire me for custom work?

HIRE ME

Find the article helpful and wish to donate?

DONATE

Comments

For adding code blocks wrap the code in three backticks. Markdown should work.
Provide a URL of your site/webpage if something is not working.
magnifiercross
>
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram
%d bloggers like this: