SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2000
    Location
    Somewhere
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    I know that you can set the background color for your site using css, but is it possible to set the top 200 pixels a certain color and the rest of the site a different color using css. If not, what would be the best way to approach this.

    Thanks

    [This message has been edited by ddeile (edited August 22, 2000).]

  2. #2
    SitePoint Enthusiast
    Join Date
    Jun 2000
    Location
    WA
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could probably set the page bgcolor to whatever you want below the top 200 pixels and position a DIV at the top of the page with a different background color.

    I'd attempt to explain how, but I'm just getting into CSS-P and wouldn't want to lead you astray. One of the experts can do that.

    *****edited to add-
    Okay, since nobody else jumped in here I played around a bit with this today and here's what I came up with:

    #top { position : absolute;
    top : -10px; left : -10px;
    width : 100%; height : 200px;
    background-color : #cc0000;
    border : none;}

    In the body style I set the page background color to yellow (in an external style sheet). Then I placed this DIV as the first thing after the BODY tag in the html doc. It seems to work fine in IE 5.0, it leaves a small gap on the right side in NS 4.7.

    hth

    *****end edit
    ------------------
    Bimjo
    Bimjo's Corner

    [This message has been edited by Bimjo (edited August 23, 2000).]


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
  •