Reputation: 299
i have used absolute positioning in most of the element in my div. but when i resize the window some elements hide. Can't it be possible to resize the page automatically when i resize the window without changing absolute positioning ???
using something window.onresize()
Upvotes: 0
Views: 65
Reputation: 11
You could do easily using some css framework, like bootstrap wich could provide an all in one solution, isn perfect but is easy to learn and undestand
Upvotes: 1
Reputation: 591
You want to make it responsive. To do that you should look in to how to style your elements relatively to the browser window. This is done by changing your px
values with %
and ems
(relative values).
Also later you can set media queries
. These are styles that only apply when a particular statement evaluates, like:
@media screen (max-width:500px) {
/* Styles here only apply if the browser window has min-width 500px */
}
Here are some links to read up on: Responsive Web Design Fundamentals, Responsive Web Design: What It Is and How To Use It
Upvotes: 0