How to style only a part of text

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kavi17
    New Member
    • Oct 2013
    • 2

    How to style only a part of text

    I need to add superscript in options. I tried many ways, but nothing worked.
    If add css to that text, that style is getting applied to entire text but want it for only a part of text.Please help me.

    If you can, also please help in any other way to add superscript in options.
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    We need to see your code.

    Comment

    • Dormilich
      Recognized Expert Expert
      • Aug 2008
      • 8694

      #3
      in general, you cannot style just an arbitrary portion of text (with the exception of text in a special positions (like first-letter, first-line)). you will need to wrap the portion of the text in an appropriate inline element.

      Comment

      • kavi17
        New Member
        • Oct 2013
        • 2

        #4
        Yes u r right..we can't style a part of text..Is there any way to add superscript in option tag.

        Comment

        • Rabbit
          Recognized Expert MVP
          • Jan 2007
          • 12517

          #5
          No, you can style a part of a text. Dormilich explained how to do so.

          Comment

          Working...