I’m trying to figure out how to make a banner to put below my website’s nav bar, but I’m not sure how to do it without having it increase the padding width
Did you try width: 100%
?
A codepen or something might help.
https://codepen.io/MatthewC/pen/brQGEL
Yeah I’ve tried
I imagine you can just use a <header>
PS. Cute website <3
1 Like
Yes exactly that. Was that achieved by the header tag that was mentioned earlier? I haven’t gotten a chance to play around with that yet
The easiest way to do is by using the background-image css property. Add an empty <div>
(your banner) underneath your navigation and play with background-image
, background-position
and background-size
to achieve what you want.