www.webdeveloper.com
Results 1 to 3 of 3

Thread: CSS positioning? div moves down automaticly on text overflow

  1. #1
    Join Date
    Sep 2008
    Location
    Old North Sacramento
    Posts
    82

    resolved CSS positioning? div moves down automaticly on text overflow

    simple question:

    how do I make a div move down automaticly when i put more code inside of it?
    Code:
    #content {width:743px;padding:0;float:right;background-color:red;}
    kinda vague, I just don't know the code terms yet.

  2. #2
    Join Date
    Sep 2008
    Location
    Old North Sacramento
    Posts
    82
    solved my own problem. " height:100% "
    http://www.webmasterworld.com/forum83/200.htm

  3. #3
    Join Date
    Mar 2006
    Location
    Newcastle NSW Australia
    Posts
    4,033
    ???? Not sure how that would solve your "problem"....

    A div will naturally expand with content. The 100% height would just lock the div to the parent height if the parent height is defined, preventing any expansion, or will do nothing if the parent height is not defined...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles