html - Make a div occupy remaining width based on % and on px -


what wish achieve having 1 left occupy minimum of 300px or if screen bigger 25% of it, next wish put div occupy rest of screen option add third div beside 2 shrink middle 1 width of 25% or minimum of 300px; here sample of div have created:

.parents{     width:25%;;     min-width:300px;     height:100%;     background-image:url(img/background_parents.jpg);     border-right:3px solid darkgray;     overflow:auto; } 

now beside div need 1 adjustable width because of option of adding third panel same width of 1 see above. can jquery, wonder if there option of achieving through css, because wish escape route of constant calculations of screen width.

try using media queries define width based on detected device screen. usual setup:

/* smaller standard 960 (devices , browsers) */ @media screen , (max-width: 959px) {}  /* tablet portrait size standard 960 (devices , browsers) */ @media screen , (min-width: 768px) , (max-width: 959px) {}  /* mobile sizes (devices , browser) */ @media screen , (max-width: 767px) {}  /* mobile landscape size tablet portrait (devices , browsers) */ @media screen , (min-width: 480px) , (max-width: 767px) {}  /* mobile portrait size mobile landscape size (devices , browsers) */ @media screen , (max-width: 479px) {} 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -