Grow your CSS skills. Land your dream job.

[Solved] Wrap text

  • # February 8, 2010 at 4:10 pm

    Oddly enough, i’ve never had to deal with this issue but the text in my div does not wrap. Text has always wrapped no problem so i’m kinda confused. I’ll keep doing some research but if anyone know whats going on please let me know.

    Code:
    WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW

    Code:
    #news
    {
    background: transparent url(images/newsNotecard.png) no-repeat top left;
    cursor: pointer;
    height: 304px;
    position: relative;
    text-align: center;
    width: 468px;
    z-index: 700;
    }

    #newsText
    {
    height: 304px;
    margin: 0 auto;
    padding: 62px 10px 10px 10px;
    text-align: left;
    width: 420px;

    }

    # February 8, 2010 at 4:13 pm

    :::facepalm:::

    # February 8, 2010 at 5:09 pm

    Face palm because you figured it out?

    If you haven’t, it’s because it’s just one long word. Break up all of those W’s into different segments, and you will see it will wrap!

    # February 8, 2010 at 5:17 pm

    Yeah, I figured it out. After I posted the question it dawned on me. :oops:

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".