html - CSS - Fixed percent size -


In CSS, if I set the width of an element to 50%, for example, when I change the size of the page, it will change,

Is there a way to set the width of elements to a certain percentage of the page, but make sure that this change will not occur when the page is resized?

set parent container to full position Like px

and set your layout % inside the container


Comments

Popular posts from this blog

mysql - How to enter php data into a html multiple select box -

java - Can't add JTree to JPanel of a JInternalFrame -

c++ - Cassandra datastax cpp driver - avoiding unnecessary copies -