Re: injecting css_my humble solution

  • Profile Image
    Asked on December 01, 2011 at 07:57 PM

    I looked at a bunch of your posts, but they kind of lost me... and I couldn't figure out how to use Firebug on my actual published form to figure out the line id, etc.  Which not sure I would then know what to do anyway.  LOL

    BUT that is not really what I wanted to do anyway.

    So, I did this "sort of" via CSS ... since I only needed some specific words in Red and Bold...  I did it with a style and then added a span class inside the label.

    I put this in that css box... 

    .style13 {
    color: #CC0000;
    font-weight: bold;

    Then I did this inside the label in front of the words I wanted to apply it to:

     <span class="style13">yada yada </span>

    Not perfect at all, but it worked for now.... and ofcourse, every time I open that label, the attributes get stripped and I have to do it again.  Unfortunately, I am not well versed enough with css to figure out how to do something in the middle of a line of copy.

    I would love for someone to look at my form and/or just tell me how I should have done it differently.



  • Profile Image
    Answered on December 01, 2011 at 08:17 PM


    Your solution is a good as any. There is a specific HTML bold tag, but since you want to add color as well you will need to give that text its own CSS class. I cant think of a better solution than yours to be honest. 

    As an aside, I know its a subjective choice but,  I find Chromes' developer tools really useful for quicly identifying css element ids & classes of HTML content . Its just right-click - Inspect Element and away you go. 

  • Profile Image
    Answered on December 01, 2011 at 09:01 PM

    Thanks, fxr... I think you might be right. I find Firebug confusing and clunky... and Chrome makes more sense to me.  :)

    Well, at least I know I wasn't WAY off base!