Protecting Width

DotCom

New Member
i have a layout and i am using em to specify the widths. when i zoom out its stays okay but i want its size to stay the same and the only way to do that is with percentages.

How can i use em and percentage at the same time. EM for an initial layout and then activate the percentages when the user zooms in or out.
 

chrishirst

Well-Known Member
Staff member
Your task as the developer is to make sure that the layout doesn't "break" when the end user (any of them) changes the 'zoom' in the user agent they are viewing the document with. You should not make it so that the user has no control over how they view the document.

However why not set min-width/max-width? Every current browser supports it.
 

DotCom

New Member
Your task as the developer is to make sure that the layout doesn't "break" when the end user (any of them) changes the 'zoom' in the user agent they are viewing the document with. You should not make it so that the user has no control over how they view the document.

However why not set min-width/max-width? Every current browser supports it.

I completely forgot about that. Thank you...
 
Top