WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Can't get text widget to stop wrapping text... (5 posts)

  1. bokou
    Member
    Posted 3 years ago #

    here's an example of what my widget is doing my widget

    In essence I'd like it to just do "..." when it runs out of space, not wrap the word around and overlap the second line.

    I checked my style.css file and found no instance of the word "widget" in it.

    What do I need to do?

  2. Alex
    Member
    Posted 3 years ago #

    use tools like firebug or web-kit inspector to find out what id or class your theme is generating and then you can target your widget.
    in twenty ten that would be .widget-container (with some unique ID)

  3. bokou
    Member
    Posted 3 years ago #

    just realized it's not a text widget but the recent posts widget. I'll try and dig around some more.

    what's the css property for wrapping text? is it "word-wrap: break-word;"?

  4. bokou
    Member
    Posted 3 years ago #

    I've tried word-wrap, overflow: hidden; white-space, you name it and no luck. it's in my typography.css so I know exactly what I'm trying to change but I just don't know how to change it

  5. bokou
    Member
    Posted 3 years ago #

    solved...

    I used these three css properties in combination and one of them solved it
    white-space: nowrap;
    overflow: hidden;
    display: block;

Topic Closed

This topic has been closed to new replies.

About this Topic