css - How to add some pixels to the current height of div -


i want increase height of div rendered 10px additional in advance auto. in css have set height of div auto

css :

div {   height: auto; } 

but want this:

 div {       height: auto + 10px;     } 

use padding.

 div {       height: auto; padding-bottom: 10px;     } 

or

 div {       height: auto; padding-top: 10px;     } 

or

 div {       height: auto; padding-top: 5px; padding-bottom: 5px;     } 

if not desired add jquery css below: css:

 div#auto10 {       height: auto;     } 

javascript:

$(document).ready(function(){     $('#auto10').height($('#auto10').height() + 10); }); 

Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -