I have been looking over some of the other answers, but they all seem to be concerned with iOS versions < 5.0. I built my page in React and the fixed header works fine in Desktop Chrome and Safari, but does not work in mobile browsers. The header links also do not work on mobile. What could be happening here? The other links on my page work just fine.
CSS:
.header {
position: fixed;
top: 0;
height: 100px;
width: 100%;
display: flex;
justify-content: space-around;
align-items: center;
color: white;
background-color: #081c3f;
font-family: 'Open Sans', sans-serif;
font-weight: bold;
z-index: 2;
letter-spacing: .1em;
}
HTML:
import React from 'react'; import './header.css';
export default class Header extends React.Component {
render() {
return (
<div className='header'>
<h1 className='name'>Conor Carey</h1>
<div className='chapters'>
<a href='#about'>ABOUT</a>
<a href='#education'>RESUME</a>
<a href='#work'>WORK</a>
<a href='#contact'>
<div className='contactLink'>
CONTACT
</div>
</a>
</div>
</div>
);