WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to underline text in WordPress? Help! (8 posts)

  1. dstarver
    Member
    Posted 5 years ago #

    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.

  2. whooami
    Member
    Posted 5 years ago #

    <u> .. </u>

  3. whooami
    Member
    Posted 5 years ago #

    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.

  4. dstarver
    Member
    Posted 5 years ago #

    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?

  5. iridiax
    Member
    Posted 5 years ago #

    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.

  6. dstarver
    Member
    Posted 5 years ago #

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

  7. dstarver
    Member
    Posted 5 years ago #

    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.

  8. buskerdog
    Member
    Posted 4 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic