Aligning content in web pgae

I have a page and its header & footer are sticky , I have to display an image at botton of content and always stick to footer in all resolution. what css should I follow ," header { ... } footer .... {} content { }
No description
4 Replies
glutonium
glutonium11mo ago
your oder of your css doesn't effect the order of your html elements the only thing it does effect is "specificity"
somrigostsås 🧀
You could use position: sticky or position: fixed for both header and footer. If you know the height of the footer, you could do the same for the image. Otherwise, I would probably place the image inside the footer, and then position it outside the footer wrapper.
glutonium
glutonium11mo ago
go with position sticky if it's possible cause fixed can and most likely will cause overlapping issues
RaviTeja
RaviTejaOP11mo ago
used background-position:bottom , fixed my issue
Want results from more Discord servers?
Add your server