Hello,
This is a pure css/html question and out of Hugo scope. You have to ask on a css/html forum.
https://discourse.gohugo.io/t/requesting-help/9132/5