Okay
  Public Ticket #151360
Extra Class Name - Text
Closed

Comments

  • Peter started the conversation
    TN, Quick question; if I have a text block, and add an extra class name, e.g. lead, how would I call up that class in the CSS? I've tried adding the following in the custom CSS code block in salient opinions, with no luck. .lead { line-height: 59px; } and lead { line-height: 59px; } Am I using this function incorrectly? Cheers, Peter
  • Peter replied

    Ooops, this should have been made public, appologies! 

  •  1,069
    ThemeNectar replied

    Hey Peter!

    The css would be:

    .lead p {
      line-height: 59px;
    }

    or 

    .lead p {
      line-height: 59px!important;
    }

    if that doesn't work :)

    Cheers!

  • Peter replied

    Works a charm, thanks for explaining! 

  • I Love replied

    hi, i am trying to put margin-bottom: 35px {display: none; } this is for image which automaticly inserts a margin of 35px. i want to create :

    IMAGE CONTAINER 
    TEXT CONTAINER
    IMAGE CONTAINER 
    TEXT CONTAINER 

    I don't want any margins between image and text so why margin-bottom: 35px {display: none; } for image doesn't work?

    I also want to add padding 20px padding-left and right for the text. how would i got about it. if you answer my first question i should know 2nd answer to so they both related. thanks
     

  • I Love replied

    i fixed it so i though i will share with others if they need it:

    in CSS panel i put

    .no-margin-bottom     {margin-bottom: 0px!important;}

    in extra class name i put

    no-margin-bottom   

     

  •  1,069
    ThemeNectar replied

    Hey Jonas! Thanks for sharing your fix :)

    Cheers