Skip to main content

You can use Jquery so that it works in all browsers.

On document ready assign the height only to first Div of required type. The below function will go inside your webpart 1 ASCX file. Add a Jquery reference before the below code.

$(document).ready(function() {

$("div.section-content-wrap:first").css("height", "400px");

} );

$(document).ready(function()  {
         $("div.section-content-wrap:first").css("height", "400px");
} );

Same can be achieved using CSS selectors but it will work on modern browsers only which comply with CSS3 standards

You can use Jquery so that it works in all browsers.

On document ready assign the height only to first Div of required type. The below function will go inside your webpart 1 ASCX file. Add a Jquery reference before the below code.

$(document).ready(function() {

$("div.section-content-wrap:first").css("height", "400px");

} );

Same can be achieved using CSS selectors but it will work on modern browsers only which comply with CSS3 standards

You can use Jquery so that it works in all browsers.

On document ready assign the height only to first Div of required type. The below function will go inside your webpart 1 ASCX file. Add a Jquery reference before the below code.

$(document).ready(function()  {
         $("div.section-content-wrap:first").css("height", "400px");
} );

Same can be achieved using CSS selectors but it will work on modern browsers only which comply with CSS3 standards

Source Link

You can use Jquery so that it works in all browsers.

On document ready assign the height only to first Div of required type. The below function will go inside your webpart 1 ASCX file. Add a Jquery reference before the below code.

$(document).ready(function() {

$("div.section-content-wrap:first").css("height", "400px");

} );

Same can be achieved using CSS selectors but it will work on modern browsers only which comply with CSS3 standards