SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist anjanesh's Avatar
    Join Date
    Jun 2004
    Location
    Mumbai
    Posts
    447
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Rectagular Block

    Hi

    How do I get this to work ?

    Code:
    <div style="height:15px; width:25px; background-color:green"></div>
    Since theres no content, nothing show up, but I want a 25 x 15 size green block.

    Thanks
    Anjanesh

  2. #2
    SitePoint Evangelist anjanesh's Avatar
    Join Date
    Jun 2004
    Location
    Mumbai
    Posts
    447
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh...for some reason it didnt when it was in a table-cell. Guess somewhere div's display has been set to inline as default.

    I had to give display:block; to make it work.

    Thanks !
    Anjanesh


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
  •