Jump to content

Div Or Box '' Layout Use % ''


Felipe Ramalho
 Share

Recommended Posts

I don't think percent is really a solution for everything. If the percent scales the text down too much then it won't be readable. For mobile they often use the meta "viewport"

 

https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag

 

http://stackoverflow.com/questions/11006812/html5-boilerplate-meta-viewport-and-width-device-width

 

For responsive design they do try to use percent for column widths, and then define a max-width or min-width if needed. Also the @media conditional is important...

<style>@media screen and (min-width: 400px) and (max-width: 700px) { //css}</style>

http://www.w3.org/TR/css3-mediaqueries/

Edited by davej
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...