basic div height problem

Discussion in 'HTML' started by Ciaran, May 22, 2007.

  1. Ciaran

    Ciaran Guest

    Anyone know off hand how to make this work?

    <body>
    <div style="background:#000000; height:50%;"></div>
    </body>

    The div heaight doesn't work.
    Cheers,
    CiarĂ¡n
     
    Ciaran, May 22, 2007
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. HJ
    Replies:
    5
    Views:
    1,131
    Jonathan N. Little
    Sep 1, 2006
  2. Ciaran

    basic div height problem

    Ciaran, May 22, 2007, in forum: HTML
    Replies:
    5
    Views:
    435
    Ciaran
    May 23, 2007
  3. K Viltersten

    <div ... /> and <div ...></div>

    K Viltersten, Mar 30, 2009, in forum: ASP .Net
    Replies:
    4
    Views:
    1,134
  4. muggslab

    Div Height = Image height. help

    muggslab, Feb 1, 2010, in forum: HTML and CSS
    Replies:
    1
    Views:
    1,130
    muggslab
    Feb 1, 2010
  5. Don Vaillancourt

    How to tell height of div where height is not set?

    Don Vaillancourt, Jan 28, 2005, in forum: Javascript
    Replies:
    8
    Views:
    409
    Dietmar Meier
    Jan 31, 2005
  6. Dwayne Madsen

    Q: Div A inside Div B is larger than Div B

    Dwayne Madsen, Jun 1, 2005, in forum: Javascript
    Replies:
    1
    Views:
    492
    David Dorward
    Jun 1, 2005
  7. mscir
    Replies:
    3
    Views:
    570
    Martin Honnen
    Jun 26, 2005
  8. Replies:
    0
    Views:
    261
Loading...