I’m just getting familiarized with CSS, however I am having a hard time figuring out what ‘positioning’ to use for a responsive website. The closest I got was by using ‘absolute’ positioning but it could not adjust to the different screen sizes. Any ideas?
Share
Having a layout with all the elements being
absolutepositioned is certainly not a good idea.You should really use floats.
To make it responsive you can apply percentage based widths to your elements instead of pixels, but really, the best way of doing it would be using CSS Media Queries, and changing the width as required.
Have a look at this article:
Quick Tip: A Crash-Course in CSS Media Queries
Adaptive layouts with media queries
Responsive Web Design: A Visual Guide