Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS text-indent changes width?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #38772
    shamai
    Member

    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?

    #105347
    Senff
    Participant

    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)
  • The forum ‘CSS’ is closed to new topics and replies.