Click here to Skip to main content
15,886,074 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
<pre> Hello All,

Greetings for the day!

Am sure it has been asked earlier, but i couldn't find the better solution else where.

Well, there is a Div ID "#ctl00_ctl00_CPMain_Tabs_pnl1111_Fp1_rowHeader" with some inline height, and in Master page also this ID has height defined.
I need to diable(or set "auto !important") both the height as it's adding some extra height to the grid.

below is Data.Master code

CSS
<pre lang="ASP.NET">#ctl00_ctl00_CPMain_Tabs_pnl1111_Fp1_rowHeader {
            height: 630px !important;
        }


i made the inline height "auto !important" by writing below code

CSS
$('#ctl00_ctl00_CPMain_Tabs_pnl1111_Fp1_rowHeader').css("height", "auto !important");




I am unable to avoid height which is getting applied from Master page.

Thanks,
Alin


What I have tried:

<pre lang="text">Now i am trying to remove(or setting "auto !important") height from Master Page,which is getting applied when i am making inline height "auto !important"

CSS
if (("#ctl00_ctl00_CPMain_Tabs_pnl1111_Fp1_rowHeader").height == "630px !important") {
                    $('#ctl00_ctl00_CPMain_Tabs_pnl1111_Fp1_rowHeader').css("height", "auto !important");
                }
Posted
Updated 18-Nov-21 0:56am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900