• Resolved dstarver

    (@dstarver)


    Hi. I am new to WordPress, and I can’t figure out how to underline text. I started typing text in Microsoft Word (since it has a simple “underline” button). However, I quickly learned that WordPress doesn’t seem to like Microsoft Word text. My whole site got screwed up when I did that.

    So now I am back to my original problem. I still don’t know how to underline text. I can find a “bold” button and an “italics” button, but I don’t see an “underline” button.

    I know this is a simple question, but I’m a newbie.

Viewing 7 replies - 1 through 7 (of 7 total)
  • <u> .. </u>

    thats the simple way — how supported that is in diff browswers is another story. much better to use CSS and apply accordingly.

    .underline { text-decoration: underline; }

    then :

    <span class="underline">this will be underlined</span> and this will not.

    Thread Starter dstarver

    (@dstarver)

    I don’t really know what CSS is, so that way sounds much harder. If it’s not, can you tell me where I type what you indicated?

    I assume for the first answer, I just go to the HTML view tab and type “<u>..</u> at the beginning and end of the text that I am trying to underline. Is that correct?

    It’s actually best not to underline text on the web because users will mistake it for a link. Bolding or italicizing text is a more web-friendly option.

    Thread Starter dstarver

    (@dstarver)

    Yay!!!! It worked. Thank you so much.

    Thread Starter dstarver

    (@dstarver)

    Iridiax,
    I hadn’t thought of that. I was just trying to use good grammar. I was stating a book title, so I underlined it. I guess putting it in quotes or italics could work too. Thanks for the input.

    I used to have an awesome solution for this for a computer code-challenged blogger I know but it doesn’t work any more. I put this in my css file:
    strike { text-decoration:underline;
    }
    and told them to use the strike through button for underline. But now the strike through button uses different code than it used to. It puts the whole CSS in a span tag instead of relying on the stylesheet

    ie it does this
    <span style=”text-decoration: line-through;”>

    instead of this

    <strike>

    Any way to get it to go back to using the stylesheet so my nifty hack can go back to working?

    Or can we get a proper underline in 2.8.2? It’s got to be easy to add!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to underline text in WordPress? Help!’ is closed to new replies.