Grow your CSS skills. Land your dream job.

text-indent changes width?

  • # July 3, 2012 at 9:20 pm

    i was using text-indent and i discovered that it changes the size of the div if the div is positioned absolute with no set width.
    i can’t show exactly what i mean because I’m still in testing and the site isn’t up yet.

    has anyone ever had this before and is the only way out to give it a set width?

    # July 3, 2012 at 9:48 pm

    Yea, the width pretty much depends on the content (just like floats), so a text-indent would add to the width: http://jsfiddle.net/senff/GaRam/

    Giving it a set width is indeed the way to go, I’d say!

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

You must be logged in to reply to this topic.

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