header css fixed, uses rem due to image being strange

This commit is contained in:
darkicewolf50 2024-03-13 14:23:48 -06:00
parent 2be1d7f6ea
commit 49510e81ac
2 changed files with 11 additions and 5 deletions

View File

@ -5,9 +5,13 @@ header {
margin-top: 0%; margin-top: 0%;
} }
#logo { figure {
width: 10%; margin: 0px;
height: 10%; height: 10%;
}
#logo {
height: 5rem;
background-color: white; background-color: white;
} }

View File

@ -37,15 +37,17 @@ const Header = () => {
return ( return (
<> <>
<header> <header>
<div> <figure>
<img <img
id="logo" id="logo"
onClick={() => LinkTo("/")} onClick={() => LinkTo("/")}
src={logo} src={logo}
alt="Schulich Off-Road's logo" alt="Schulich Off-Road's logo"
/> />
<h2>Schulich Offroad</h2> <figcaption>
</div> <h2>Schulich Offroad</h2>
</figcaption>
</figure>
<nav> <nav>
<OpenPageButton <OpenPageButton
pageToGoTo={"/"} pageToGoTo={"/"}