For example, here is the HTML structure of a header(.header-block) which contains
a) logo
b) main navigation
c) client login CTA
<header class="header-block">
<div class="site-logo">
</div><!-- / site logo -->
<div class="navbar">
</div><!-- / main nav area -->
<div class="client-login">
</div><!-- / client login -->
</header>
In the CSS you can add following codes –
.header-block {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
direction: ltr; /* --- optional --- */
align-items: center; /* --- for positioning the child elements vertically center --- */
}
2
Answers
I can’t say for sure what is the problem unless you show me the html file. Perhaps try to add the following line of code in the .site-heading
If tha doesn’t work please provide the html where both logo and navbar are located.
Please use >
display: flex;
For example, here is the HTML structure of a
header(.header-block)
which containsa) logo
b) main navigation
c) client login CTA
In the CSS you can add following codes –
I hope you will get the desired result.
Here you can find the example ->
http://wtaxtest.designshowcase.co.za