开发者

how to keep layout uniform across screen sizes

which type of positioning (absolute or relative) and units (percentage,em,px) should be used to keep the elements at the same distance from each other even when the screen dimensions change or browser window is zommed in or out? when i create a page it and zoom in or out the elements sometimes overlap or the distance between them decreases. how can i want to prevent that? any other tips of generating a uniform layout are w开发者_如何学编程elcome. here is link to my previous question


Using strictly relative positioning and pixel amounts will prevent that. Try to think about all the elements on the page in relation to other elements, so that ultimately, everything is positioned relative to only one element on the page.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜