You are viewing limited content. For full access, please sign in.

Question

Question

changing #form-title-wrap padding-left value using CSS

asked on May 17, 2017

Hello, 

I'm trying to set padding-left value to 0px for #form-title-wrap but it's not changing!

any way to do it?

 

 #form-title-wrap {
      padding-left: 0px; 
      
}

0 0

Answer

SELECTED ANSWER
replied on May 17, 2017 Show version history

I've solved the issue also with a different resolve :

#form-title-wrap  {
  
  padding-top: 5% !important;
  padding-right: 5% !important;
  padding-bottom: 5% !important;
  padding-left: 5% !important;
 
} 

 

 

and it worked good.

 

Thanks for your help! 

1 0
replied on May 17, 2017

Hi Mohamed,

Ah, yes! I always forget about the !important rule--thanks for the reminder!

I'm glad you found a CSS solution to your problem!

Best,

Rob

1 0
replied on May 18, 2017

Thank you

0 0

Replies

replied on May 17, 2017 Show version history

Hi Mohamed,

The reason your CSS isn't working is because the #form-title-wrap div contains inline styling, which overrides the styling specified in your CSS--if you right-click the title section of the form, choose "Inspect",  and look at the #form-title-wrap div, you'll see that it looks like this:

<div id="form-title-wrap" style="padding-left: 145px">...</div>

You can use the following jQuery snippet to change the padding-left value to '0px':

$('#form-title-wrap').css({paddingLeft: '0px'});

If you add this snippet to the JavaScript section of the "CSS and JavaScript" tab for your form, then inspect the form title, you'll see that the padding-left style has been set to 0px; however, I do not know if this will achieve the visual outcome you're hoping for.

Good luck,

Rob

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.