javascript - Changing the width of HTML div element automatically using jQuery -


i have 4 div elements on same line, each set @ 25% width fit screen. when click on div should disappear, have achieved using jquery. then, manually set width of each of divs 33%.

i can keep on doing manually more clicks, there way divs automatically resize them selves using jquery , continue when 2 divs on screen each should 50%?

creating tables solve problem. table columns automatically resize when delete 1 of them. can easly make div's behave table.

http://snook.ca/archives/html_and_css/getting_your_di


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -