SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jul 2013
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Trying to get a background color to display in div

    I am trying to get background color to display in div.
    Any help would be appreciated.
    Texas PEte


    Code:
    !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head>
    <title>Chicken Lick'en Good!</title>
    <meta http-equiv="content-type" content="text/html;charset=iso-8859-1" />
    <meta name="description" content="Chicken Little Know How" />
    <meta name="keywords" content="None" />
    <meta name="Author" content="Chicken Little" />
    <meta name="Generator" content="ChickenLittle" />
    <style type="text/css" >
    h1,h2,h3,h4,h5,h6 {text-align:center;display:none }
    * {margin:0px;padding:0px}
    body {background-color:rgb(255,255,255) ;}
    body {font-size:100%;width:100%;height:100%}
    body {display:block;top:0px;position:absolute;visibility:visible;cursor:auto}
    p {letter-spacing:normal;white-space:normal;text-align:left;letter-spacing:0em;word-spacing:0em} 
    #id1CkN{position:absolute;left:175px;top:100px;z-index:1;border:2px;backgound-color:rgb(0,75,85);border:2px;border-color:rgb(253,251,153);width:602px;height:604;z-index:1 }
    a:link {color:rgb(249,90,97);}
    a:hover {color:rgb(237,145,33);cursor:pointer }
    a:active {color:rgb(100,42,255);}
    </style>
    </head >
    <body >
    <div id="id1CkN" >
    </div >
    </body ></htm

  2. #2
    SitePoint Wizard bronze trophy bluedreamer's Avatar
    Join Date
    Jul 2005
    Location
    Middle England
    Posts
    3,402
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    You need to specify a unit for the height..

    You have height:604;

    Should be height:604px;


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
  •