05-18-2017, 07:16 AM #1
please help me in setting height for div based on another div value
i have a div as below
<div class="first" style="height:300px">
main div height is 300px and the div inside it have a image which have variable height images. and i want the below div height to auto adjust based on the image div height.
so all the main div "first" are looking equal height.
05-19-2017, 04:15 AM #2
You wanted to have subtwo div same height with subone automatically?
sorry I had to reask because I really don't understand your question.
05-19-2017, 01:35 PM #3
see the images i have uploaded and in that the images are equal in height so all the grid is equal in height.
but if the image size increase or decreases than the grid size differ from other grids. so to maintain the grid, if the image size decrease that the below text area should auto adjust its height make it equal to others grids.
also for image we can set max-height so the image size increases should not affect other grids...
if you are not clear i will make some image and re explain you
05-19-2017, 03:00 PM #4
Replies: 7 | Views: 190Last post by hrishivardhan, 05-22-2017, 12:42 PM
By Nickberr in forum Special OffersReplies: 6 | Views: 274Last post by Nickberr, 05-21-2017, 01:32 PM
Replies: 6 | Views: 71Last post by wms, 05-19-2017, 09:12 AM
By HostXNow in forum Shared Hosting OffersReplies: 5 | Views: 149Last post by Marc van Leeuwen, 05-19-2017, 02:03 AM
By Marc van Leeuwen in forum Content ManagementReplies: 0 | Views: 61Last post by Marc van Leeuwen, 05-18-2017, 04:46 AM
By harrygreen90 in forum Online Business and eCommerceReplies: 1 | Views: 61Last post by Rob Whisonant, 05-18-2017, 05:19 AM
Replies: 4 | Views: 104Last post by vishwa, 05-20-2017, 03:22 AM
Replies: 4 | Views: 125Last post by SEOPub, 05-22-2017, 04:00 PM
Replies: 1 | Views: 1513Last post by jamesnader, 12-10-2015, 10:08 AM
Replies: 0 | Views: 533Last post by Content by Rhonda, 02-19-2015, 02:17 PM
Replies: 7 | Views: 2620Last post by Dating Expert, 02-16-2014, 09:45 PM
Replies: 0 | Views: 1136Last post by Adrianne, 03-20-2013, 07:12 AM
Replies: 0 | Views: 964Last post by Jkit, 07-26-2012, 04:01 AM