Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Floating div, semi-dynamic size? Reply To: Floating div, semi-dynamic size?

#148130
sadunaresh
Participant

well.. what i understood is you need inner div’s width to be responsive with respect to outer div…. correct?

case 1: if you want the inner div’s width to be responsive continuously when you resize the browser….

specify your inner div’s width in percentage… as shown below

case 1

case 2: if you want the inner div’s width responsive only after when outer div’s width equals inner div’s width.. then you may have to go with media queries… as below

case2

if this is not the way you need it… then i think we will have to go for JS