Why is my Gap property in SCSS not working? - css

I'm trying to put a gap on these icons to look appealing however it does not work. Which line did I go wrong with it? I've tried putting gap:20px; on both navlinks and icon divs still no changes.
Here's my SCSS
.navbar-container{
background-color:$color--navyblue;
width: 105px;
height: 100vh;
border-right: solid white 2px;
}
.SysDev-Logo{
margin: 0;
padding: 20px 25px;
}
.navlinks{
margin: 0;
justify-items: center;
align-items: center;
padding: 0px 25px;
.icon{
list-style: none;
cursor: pointer;
}
}
And my nextjs
<div className={styles['navbar-container']}>
<div className="container-wrapper">
<div className="Logo-wrapper">
<div className={styles['SysDev-Logo']}>
<Image
src="/img/SysDev LogoType.png"
width="50"
height="45"
objectFit="contain"
draggable="false"
/>
</div>
</div>
<ul className={styles['navlinks']}>
<li className={[styles['icon'], styles['icon--home']].join(' ')}>
<Image
src="/img/home.svg"
width="50"
height="50"
objectFit="contain"
draggable="false"
/>
</li>
</div>

Related

Center a divs within div?

I'm trying to center three div boxes within one large one. A grid is going to be 3 wide and auto height.
.t-box920g {
width: 960px;
height: auto;
background: #121212;
margin-left: auto;
margin-right: auto;
margin-top: 20px;
margin-bottom: 20px;
position: relative;
overflow: auto;
border: 1px dotted #363636;
padding-top: 10px;
padding-bottom: 10px;
text-align: center;
}
.i-box {
width: 279px;
height: 209px;
background: #ffffff;
margin-right: auto;
margin-left: auto;
float: left;
display: inline;
text-align: justify;
}
.i-pbox {
width: 276px;
height: 206px;
background: #121212;
border: solid 2px #ffffff;
margin-left: auto;
margin-right: auto;
text-align: justify;
}
#i-imageconstrain {
width: auto;
height: auto;
max-width: 276px;
max-height: 206px;
min-width: 276px;
min-height: 206px;
overflow-x: hidden;
overflow-y: hidden;
}
<div class="t-box920g">
<div class="i-box">
<div class="i-pbox">
<a data-fancybox="gallery" href="images/gallery/sample1.jpg">
<img id="i-imageconstrain" src="images/gallery/sample1.jpg" border="0" />
</a>
</div>
</div>
<div class="i-box">
<div class="i-pbox">
<a data-fancybox="gallery" href="images/gallery/sample2.jpg">
<img id="i-imageconstrain" src="images/gallery/sample2.jpg" border="0" />
</a>
</div>
</div>
<div class="i-box">
<div class="i-pbox">
<a data-fancybox="gallery" href="images/gallery/sample3.jpg">
<img id="i-imageconstrain" src="images/gallery/sample3.jpg" border="0" />
</a>
</div>
</div>
</div>
Everything works as planned EXCEPT for the content of t-box920g being left justified. I've tried a lot of combos and none have worked so far. Got a suggestion? I'll let you know if I tried already.
Tried text-align, align-content, align-items, margin: auto in combinations for all css.
I expect it to be center justified with nice even spacing. Actually is all left.
Use flexbox.
You can read more about how to use it here and here if you like to learn through games.
This question was asked and answered on Stack Owerflow already more than once, for instance here.
.t-box920g {
display: flex;
justify-content: space-between;
align-items: center;
}
.t-box920g .i-box {
background-color: blue;
width: 32%;
}
<div class="t-box920g">
<div class="i-box">
<div class="i-pbox">
<a data-fancybox="gallery" href="images/gallery/sample1.jpg">
<img id="i-imageconstrain" src="images/gallery/sample1.jpg" border="0" />
</a>
</div>
</div>
<div class="i-box">
<div class="i-pbox">
<a data-fancybox="gallery" href="images/gallery/sample2.jpg">
<img id="i-imageconstrain" src="images/gallery/sample2.jpg" border="0" />
</a>
</div>
</div>
<div class="i-box">
<div class="i-pbox">
<a data-fancybox="gallery" href="images/gallery/sample3.jpg">
<img id="i-imageconstrain" src="images/gallery/sample3.jpg" border="0" />
</a>
</div>
</div>
</div>

CSS for ride booking screen

How do I recreate the following effect in CSS?
This is my attempt so far: https://jsfiddle.net/cLqatpzf/.
I've tried to base it on: https://www.uber.com/en-GB/fare-estimate/.
HTML
<div class="soft-tiny palm-push--sides bg-primary-layer-color pointer-events--all" data-reactid="381">
<div class="bg-primary-layer-color pointer-events--all" data-reactid="382">
<div class="position--relative" data-reactid="383">
<div class="fare-estimate__input-connector z-10" data-reactid="384"></div>
<div class="fare-estimate__pickup push-tiny--bottom" data-reactid="385">
<div class="autocomplete-container" data-reactid="386">
<div class="autocomplete position--relative" data-reactid="387">
<div class="autocomplete__input hard flush--bottom autocomplete__input--icon" data-reactid="388">
<div data-reactid="389"><input value="" placeholder="Enter pickup location" autocomplete="off"
aria-label="Enter a pickup location: address, city and state required" data-reactid="390"></div>
</div>
</div>
</div><svg viewBox="0 0 64 64" width="16px" height="16px" class="_style_2ZI4zP _style_4wJp4e" tabindex="0"
role="button" aria-label="Locate me" data-reactid="391">
<path d="M28.0355206,31.9992104H7.978334L54.3777542,8.2149429c0.1557846-0.081008,0.3967628-0.2157388,0.6570473-0.2157388 c0.4893532,0,0.993042,0.4245925,0.993042,0.9369226c0,0.1713877-0.0173073,0.3512955-0.1097603,0.5290899L32.0355339,55.9992104 l-0.0000114-20C32.0355225,33.7900696,30.2446594,31.9992104,28.0355206,31.9992104z"
data-reactid="392"></path>
</svg>
</div>
<div class="_style_4nVh08 fare-estimate__destination-row" data-reactid="393">
<div class="_style_VxPAE fare-estimate__destination" data-reactid="394">
<div class="autocomplete-container" data-reactid="395">
<div class="autocomplete position--relative" data-reactid="396">
<div class="autocomplete__input hard flush--bottom autocomplete__input--icon" data-reactid="397">
<div data-reactid="398"><input value="" placeholder="Enter destination" autocomplete="off" aria-label="Enter a destination: address, city and state required"
data-reactid="399"></div>
</div>
</div>
</div>
</div><button style="line-height:0px;padding:13px;" tabindex="-1" class="_style_1PoMFk _style_16HNh4"
aria-label="Request estimate" kind="primary" disabled="" data-reactid="400"><svg viewBox="0 0 64 64" width="16px"
height="16px" class=" _style_26XEsq" data-reactid="401">
<path fill-rule="evenodd" clip-rule="evenodd" d="M59.9270592,31.9847012L60,32.061058L43.7665291,49.1333275l-3.2469215-3.5932007 L51.3236885,34H4v-4h47.3943481L40.5196075,18.4069672l3.2469215-3.4938126L60,31.946312L59.9270592,31.9847012z"
data-reactid="402"></path>
</svg></button>
</div>
</div>
</div>
</div>
CSS
ion-toolbar {
color: #919191;
}
.bg-primary-layer-color {
background-color: #FFF!important;
}
.fare-estimate__input-connector {
position: absolute;
top: 23px;
bottom: 21px;
left: 15.5px;
width: 1px;
background-color: #C6C6C6;
}
.fare-estimate__input-connector:before {
bottom: -1.5px;
background-color: #F32F00;
border: 1px solid #F32F00;
}
.push-tiny--bottom, .push-tiny--ends {
margin-bottom: 12px!important;
}
.autocomplete-container {
width: 100%;
}
.position--relative {
position: relative!important;
}
.autocomplete__input {
height: 44px;
width: 100%;
border: 1px solid #E5E5E4;
}
.fare-estimator {
width: 440px;
display: flex;
flex-direction: column;
height: calc(100% - 71px);
padding: 24px 24px 0;
}
.autocomplete div input {
width: 100%;
border: 0;
padding: 0 16px 0 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
Check this
._style_1PoMFk {
-moz-box-sizing: border-box !important;
-webkit-transition: all 400ms ease !important;
border-color: #C6C6C6 !important;
background-color: #C6C6C6 !important;
box-sizing: border-box !important;
border-width: 2px !important;
border-style: solid !important;
text-decoration: none !important;
display: inline-block !important;
vertical-align: middle !important;
text-align: center !important;
margin: 0 !important;
cursor: default !important;
overflow: visible !important;
border-radius: 0px !important;
text-transform: uppercase !important;
line-height: 0px !important;
outline: none !important;
position: relative !important;
transition: all 400ms ease !important;
font-family: ff-clan-web-pro, "Helvetica Neue", Helvetica, sans-serif !important;
font-weight: 600 !important;
font-size: 14px !important;
padding: 13px !important;
opacity: 0.6 !important;
}
._style_4nVh08 {
-webkit-flex-wrap: nowrap !important;
-ms-flex-wrap: nowrap !important;
-webkit-box-lines: nowrap !important;
flex-wrap: nowrap !important;
display: -webkit-box !important;
display: -moz-box !important;
display: -ms-flexbox !important;
display: -webkit-flex !important;
display: flex !important;
}
._style_2ZI4zP {
position: absolute !important;
top: 12px !important;
right: 15px !important;
color: #c6c6c6 !important;
cursor: pointer !important;
font-size: 1.42857rem !important;
line-height: 1.4 !important;
width: 1em !important;
height: 1em !important;
}
<div class="soft-tiny palm-push--sides bg-primary-layer-color pointer-events--all hidden--palm" data-reactid="381">
<div class="bg-primary-layer-color pointer-events--all" data-reactid="382">
<div class="position--relative" data-reactid="383">
<div class="fare-estimate__input-connector z-10" data-reactid="384">
</div>
<div class="fare-estimate__pickup push-tiny--bottom" data-reactid="385">
<div class="autocomplete-container" data-reactid="386">
<div class="autocomplete position--relative" data-reactid="387">
<div class="autocomplete__input hard flush--bottom autocomplete__input--icon" data-reactid="388">
<div data-reactid="389">
<input value="" placeholder="Enter pickup location" autocomplete="off" aria-label="Enter a pickup location: address, city and state required" data-reactid="390">
</div>
</div>
</div>
</div>
<svg viewBox="0 0 64 64" width="16px" height="16px" class="_style_2ZI4zP _style_4wJp4e" tabindex="0" role="button" aria-label="Locate me" data-reactid="391">
<path d="M28.0355206,31.9992104H7.978334L54.3777542,8.2149429c0.1557846-0.081008,0.3967628-0.2157388,0.6570473-0.2157388 c0.4893532,0,0.993042,0.4245925,0.993042,0.9369226c0,0.1713877-0.0173073,0.3512955-0.1097603,0.5290899L32.0355339,55.9992104 l-0.0000114-20C32.0355225,33.7900696,30.2446594,31.9992104,28.0355206,31.9992104z" data-reactid="392">
</path>
</svg>
</div>
<div class="_style_4nVh08 fare-estimate__destination-row" data-reactid="393">
<div class="_style_VxPAE fare-estimate__destination" data-reactid="394">
<div class="autocomplete-container" data-reactid="395">
<div class="autocomplete position--relative" data-reactid="396">
<div class="autocomplete__input hard flush--bottom autocomplete__input--icon" data-reactid="397">
<div data-reactid="398">
<input value="" placeholder="Enter destination" autocomplete="off" aria-label="Enter a destination: address, city and state required" data-reactid="399">
</div>
</div>
</div>
</div>
</div>
<button style="line-height:0px;padding:13px;" tabindex="-1" class="_style_1PoMFk _style_16HNh4" aria-label="Request estimate" kind="primary" disabled="" data-reactid="400">
<svg viewBox="0 0 64 64" width="16px" height="16px" class=" _style_26XEsq" data-reactid="401">
<path fill-rule="evenodd" clip-rule="evenodd" d="M59.9270592,31.9847012L60,32.061058L43.7665291,49.1333275l-3.2469215-3.5932007 L51.3236885,34H4v-4h47.3943481L40.5196075,18.4069672l3.2469215-3.4938126L60,31.946312L59.9270592,31.9847012z" data-reactid="402">
</path>
</svg>
</button>
</div>
</div>
</div>
</div>
Also add css from here , it's required
e.g
<head>
<title>...</title>
<link rel="stylesheet" href="<stylesheet>.css" />
</head>
I made the parent div a fixed width of 300px,
added :before and :after psuedo elements to that connecting line in order to make the red and green dots
changed the font size to 16
moved the button tags inside their corresponding divs
gave each button its own id
added a class to your input tags for positioning
HTML:
<input
class="input-text"
value=""
placeholder="Enter pickup location"
autocomplete="off"
aria-label="Enter a pickup location: address, city and state required"
data-reactid="390">
<svg id="pickup-button" viewBox="0 0 64 64" width="16px" height="16px" class="_style_2ZI4zP _style_4wJp4e" tabindex="0"
role="button" aria-label="Locate me" data-reactid="391">
<path d="M28.0355206,31.9992104H7.978334L54.3777542,8.2149429c0.1557846-0.081008,0.3967628-0.2157388,0.6570473-0.2157388 c0.4893532,0,0.993042,0.4245925,0.993042,0.9369226c0,0.1713877-0.0173073,0.3512955-0.1097603,0.5290899L32.0355339,55.9992104 l-0.0000114-20C32.0355225,33.7900696,30.2446594,31.9992104,28.0355206,31.9992104z"
data-reactid="392"></path>
</svg>
</div>
</div>
</div>
</div>
</div>
<div class="_style_4nVh08 fare-estimate__destination-row" data-reactid="393">
<div class="_style_VxPAE fare-estimate__destination" data-reactid="394">
<div class="autocomplete-container" data-reactid="395">
<div class="autocomplete position--relative" data-reactid="396">
<div class="autocomplete__input hard flush--bottom autocomplete__input--icon" data-reactid="397">
<div data-reactid="398">
<input
class="input-text"
value=""
placeholder="Enter destination"
autocomplete="off"
aria-label="Enter a destination: address, city and state required"
data-reactid="399">
<button id="destination-button" tabindex="-1" class="_style_1PoMFk _style_16HNh4"
aria-label="Request estimate" kind="primary" disabled="" data-reactid="400"><svg viewBox="0 0 64 64" width="16px"
height="16px" class=" _style_26XEsq" data-reactid="401">
<path fill-rule="evenodd" clip-rule="evenodd" d="M59.9270592,31.9847012L60,32.061058L43.7665291,49.1333275l-3.2469215-3.5932007 L51.3236885,34H4v-4h47.3943481L40.5196075,18.4069672l3.2469215-3.4938126L60,31.946312L59.9270592,31.9847012z"
data-reactid="402"></path>
</svg></button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
CSS:
ion-toolbar {
color: #919191;
}
.bg-primary-layer-color {
background-color: #FFF!important;
}
.fare-estimate__input-connector {
position: absolute;
top: 20px;
bottom: 20px;
left: 15.5px;
width: 1px;
background-color: #C6C6C6;
}
.fare-estimate__input-connector::before{
height: 5px;
width: 5px;
border-radius: 2.5px;
background-color: green;
content: "";
position: absolute;
top: 0;
left: -1.5px;
}
.fare-estimate__input-connector::after{
height: 5px;
width: 5px;
border-radius: 2.5px;
background-color: red;
content: "";
position: absolute;
bottom: 0;
left: -1.5px;
}
/* .fare-estimate__input-connector:before {
bottom: -1.5px;
background-color: #F32F00;
border: 1px solid #F32F00;
} */
.push-tiny--bottom, .push-tiny--ends {
margin-bottom: 12px!important;
}
.autocomplete-container {
width: 100%;
}
.position--relative {
position: relative!important;
}
.autocomplete__input {
height: 44px;
width: 100%;
border: 1px solid #E5E5E4;
}
.fare-estimator {
width: 440px;
display: flex;
flex-direction: column;
height: calc(100% - 71px);
padding: 24px 24px 0;
}
.autocomplete div input {
border: 0;
padding: 0 16px 0 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
#destination-button {
height: 46px;
width: 46px;
position: absolute;
right: -2px;
top: 0px;
}
#pickup-button{
position: absolute;
right: 15px;
top: 15px;
}
.input-text {
position: absolute;
top: 14px;
left: 30px;
background: transparent;
font-size: 16px;
}
here's my work

flexbox css centering and layout not working horizontally

I am trying to center the content of a navbar for mobile devices.
It should have 3 divs, the far left div should be the 3 bars for menu expansion (hamburger), the middle div should contain the logo, and the far right div should contain 3 inputs.
The problem is it is centering horizontally based on the left edge of the far right div. [= LOGO input input input] but it looks like this
[= LOGO input input input] if I take out all but 2 inputs
[= LOGO [input] it works perfectly but with 3 inputs it does not.
I have tried everything can anyone give me a clue as to why this won't work?
thanks
#media screen and (max-width: 1023px) and (min-width: 300px) {
#hidden-nav {
justify-content: space-between;
height: 8vh;
background-color: rgb(101, 0, 0);
display: flex;
padding: 8px;
min-width: 80px;
position: fixed;
width: 100%;
z-index: 10002;
}
}
#hidden-nav input {
max-width: 15vw;
}
body {
}
#hidden-nav:first-child {
/* padding-left: 2em;
border: 20px solid blue;*/
}
.bar {
width: 25px;
height: 2px;
background-color: white;
margin: 6px 0;
}
#container-for-right-hidden-nav {
border: 2px solid blue;
display: flex;
}
<div id="hidden-nav" style="border-bottom: 1px solid white; align-items:">
<div class="" onclick="toggleSidebar()">
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
</div>
<div style=""> <img height="35" width="50" src="https://seohackercdn-seohacker.netdna-ssl.com/wp-content/uploads/2011/07/Link-Searching.jpg?x68951" alt="logo" /> </div>
<img height="35" width="50" src="https://seohackercdn-seohacker.netdna-ssl.com/wp-content/uploads/2011/07/Link-Searching.jpg?x68951" alt="logo" />
</div>
<div id="container-for-right-hidden-nav">
<a href="/">
<input type="button" style="background-color: dodgerBlue;" value="floorplans">
</a>
<a href="/">
<input type="button" style="background-color: green;" value="apply">
</a>
<a href="/">
<input type="button" style="background-color: #003059;" value="contact">
</a>
</div>
Try justify Content center and align-items center.
Hope it Helps.
#hidden-nav {
display: flex;
justify-content: center;
align-items:center;
height: 8vh;
background-color: rgb(101, 0, 0);
padding: 8px;
min-width: 80px;
position: fixed;
width: 100%;
z-index: 10002; }
}

I cant get my Images to detect the anchor and open into a new page

I have a school assignment that I need a 3x3 group of pictures that are all 200x200 and linked to a larger 800x800 picture of itself.
I have been grinding at this thing for 3 solid days and I just don't understand what I am doing wrong....PLEASE HELP
Maybe I am overthinking this assignment and adding the 9 pages for nothing and I am missing an easier way of doing this?
PLEASE HELP!!!
My thought process:
.css for formatting of my containers, borders, "placeholders"
9 seperate relative links within the "webiste" that will open into a new tab
the 9 200x200 pictures are the relative links to the other 9 pages
My Problem:
NONE of my href="Page 1-9.html" target="_blank" are working AT ALL
my code for the pages 1-9 follows
<html>
<body>
<img src="images/America.jpg" alt="Is" style="width:800px;height:800px;">
</body>
#container{
margin: 0 auto;
width: 640px;
padding: 10px;
background-image: url("images/Star.jpg");
}
#sectionOne{
margin-right: 10px;
float: left;
background-color: red;
width: 200px;
height: 200px;
display: block;
}
#sectionTwo{
margin-right: 10px;
float: left;
background-color: blue;
display: block;
}
#sectionThree{
margin-bottom: 10px;
float: left;
background-color: white;
display: block;
}
#sectionFour{
margin-right: 10px;
float: left;
background-color: red;
display: block;
}
#sectionFive{
margin-right: 10px;
float: left;
background-color: blue;
display: block;
}
#sectionSix{
margin-bottom: 10px;
float: left;
background-color: white;
display: block;
}
#sectionSeven{
margin-right: 10px;
float: left;
background-color: red;
display: block;
}
#sectionEight{
margin-right: 10px;
float: left;
background-color: blue;
display: block;
}
#sectionNine{
margin-bottom: 10px;
float: left;
background-color: white;
display: block;
}
#header{
margin-bottom: 10px;
height: 100px;
width: 700px;
background-image: transparent;
border: transparent;
}
#footer{
clear: left;
height: 50px;
width: 630px;
background-color: transparent;
border: transparent;
}
.boarderClass{
border-style: solid;
border-color: black;
border-width: 2px;
}
.someWidth{
width: 200px;
height: 200px;
}
<!DOCTYPE HTML>
<html>
<head>
<title> 'Merica! </title>
<link rel="stylesheet" type="text/css" href="3x3 template.css">
</head>
<body>
<div id="container" class="boarderClass">
<div id="header"class="boarderClass">
</div>
<div id="sectionOne" class="boarderClass someWidth"
<a href="Page 1.html">
<img src="images/America.jpg" width="200" height="200" />
</a>
</div>
<div id="sectionTwo" class="boarderClass someWidth imageLink" <a href="Page 2.html"><img src="images/Is.jpg" title="Is" width="200" height="200" />
</div>
<div id="sectionThree" class="boarderClass someWidth" <a href="Page 3.html"><img src="images/THE.jpg" title="THE" width="200" height="200" />
</div>
<div id="sectionFour" class="boarderClass someWidth" <a href="Page 4.html"><img src="images/Greatest.jpg" title="Greatest" width="200" height="200" />
</div>
<div id="sectionFive" class="boarderClass someWidth" <a href="Page 5.html"><img src="images/Country.jpg" title="Country" width="200" height="200" />
</div>
<div id="sectionSix" class="boarderClass someWidth" <a href="Page 6.html"><img src="images/In.jpg" title="In" width="200" height="200" />
</div>
<div id="sectionSeven" class="boarderClass someWidth"<a href="Page 7.html"><img src="images/THE.jpg" title="THE" width="200" height="200" />
</div>
<div id="sectionEight" class="boarderClass someWidth"<a href="Page 8.html"><img src="images/Entire.jpg" title="Entire" width="200" height="200" />
</div>
<div id="sectionNine" class="boarderClass someWidth"<a href="Page 9.html"><img src="images/World.jpg" title="World" width="200" height="200" />
</div>
<div id="footer"class="boarderClass">
</div>
</div>
</body>
</html>
You are missing closing brackets (>) on almost every div in the HTML, as well as closing anchors (</a>)
<div id="sectionTwo" class="boarderClass someWidth imageLink"> <img src="images/Is.jpg" title="Is" width="200" height="200" /></div>
Note the difference above... you'll need to fix this multiple times in your HTML.
Page 1.html is incorrect. Remove the space. Eg. Page1.html
Also, you could use bootstrap and display the images using a modal instead of creating nine pages.
Ok first use page1.html or any other name without space and the second is your code
you have typed like this
<div id="sectionTwo" class="boarderClass someWidth imageLink" <a href="Page 2.html"><img src="images/Is.jpg" title="Is" width="200" height="200" />
</div>
Now take a look at your code, you forgot to add > in div, so your code will like this
<div id="sectionTwo" class="boarderClass someWidth imageLink"> <a href="Page 2.html"><img src="images/Is.jpg" title="Is" width="200" height="200" />
</div>
Now, will work well.

How to get an image and H1 on the same line

I have a logo (figure) for a website that I need to put on the same line as the h1 heading. Does anyone have suggestions? Here is something I recently tried:
figure {
float: left;
padding-left: 2px;
}
h1 {
text-align: center;
border: 3px solid: #FFA500;
border-radius: 15px;
box-shadow: 5px 5px 5px #828282;
}
header {
text-align: center;
letter-spacing: 1px;
height: 8em;
padding: 2em 10%;
}
<title>Kumquats</title>
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<div id="wrapper">
<header>
<figure>
<a href="index.html">
<img src="img/kumquatlogo.gif" alt="kumquat logo" width="75" height="75">
</figure>
</a>
<h1>Kumquat Central</h1>
I want a logo image to be at the top of a webpage, next to an h1 element of text. The figure and the h1 are contained inside of a header, that is why I have header code there.
You also can try the following:
HTML:
<header>
<a href="index.html">
<img src="http://placeholder.cn/128/aaa" alt="kumquat logo" class="figure">
</a>
<h1>Kumquat Central</h1>
</header>
Then your CSS stylesheet. Also fixed your h1 border parameter that had errors.
h1 {
display: inline;
text-align: center;
border: 3px solid #FFA500;
border-radius: 15px;
box-shadow: 5px 5px 5px #828282;
}
header {
text-align: center;
letter-spacing: 1px;
height: 8em;
padding: 2em 10%;
}
.figure {
vertical-align:middle;
}
Since you did not share your html, here is a good way to do it https://jsfiddle.net/u97rggyy/5/
Actually this question should be marked as a duplicate of Vertically align text next to an image?
HTML
<!-- Case 1) text height is bigger than image height -->
<div>
<img class="img-valign" src="http://www.placehold.it/30x30" alt="" />
<span class="text1">some text1</span>
<img class="img-valign" src="http://www.placehold.it/20x20" alt="" />
<span class="text1">some text1</span>
</div>
<br/><br/><br/>
<!-- Case 2) image height is bigger than text height -->
<div>
<img class="img-valign" src="http://www.placehold.it/50x50" alt="" />
<span class="text2">some text2</span>
<img class="img-valign" src="http://www.placehold.it/70x70" alt="" />
<span class="text2">some text2</span>
</div>
CSS
.img-valign {
vertical-align: middle;
margin-bottom: 0.75em;
}
.text1 {
font-size: 44px;
}
.text2 {
font-size: 24px;
}

Resources