SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: expanding a DIV

  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2006
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    expanding a DIV

    Hi all

    Can anyone pls. tell me how can i expand my div tag horizontally. I have tried using height only without any width for the DIV... but it didnt work. I want my DIV to expand horizontally according to the text entered in the DIV.
    Anyone kindly solve this issue

    Pls check the below link

    http://demo.animatingminds.com

    I want my username bar to expand and contract according to the number of characters entered.

    thanks in advance
    venkat

  2. #2
    SitePoint Addict
    Join Date
    Nov 2004
    Location
    London
    Posts
    248
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Think your best bet would be to contain the username within a div... then change its display to:

    display: inline


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •