61 users online (1 members and 60 guests)  


  Results 1 to 4 of 4

Related

  1. I don't want my links to change colors    Forum: HTML Forum
    Replies: 10
  2. Open an URL with form in the middle...    Forum: HTML Forum
    Replies: 0
  3. Replies: 1
  4. Changing link colors in middle of page    Forum: HTML Forum
    Replies: 1
  1. #1
    vreeland's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2003
    Posts
    1

    How do I change colors in the middle of a Webpage?

    I have no idea!
    I thought I was good.
    I guess not.
    Anyway, I have a white background, but I want to change it to light blue in the middle of the page, then go back to white.
    How do I do it?

  2. #2
    Android's Avatar

    Status
    Offline
    Join Date
    Oct 2002
    Location
    I AM CANADIAN
    Posts
    440

    Talking

    There are probably several ways to achieve what you want, but we'll need a little more info....
    By your description (white, then blue in the middle, then back to white) do you mean horizontally or vertically?
    Are you using an image for the background? Or are you colouring the background of a table cell or div cell?
    Are you using CSS?
    Do you have any code or a link to post so we can see what you have so far?

  3. #3
    coothead's Avatar
    bald headed old fart

    Status
    Offline
    Join Date
    Aug 2003
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    732
    Hi there vreeland,

    I presume that you want something like this...
    Code:
    <html>
    <head>
    <style type="text/css">
    <!--
    body
        {
         margin:0;
        }
    div#one
        {
         position:absolute;
         top:25%;
         width:100%;
         height:50%;
         background-color:#add8e6;
         font-size:36px;
         color:white;
         text-align:center;
         padding-top:7.5%;
        }
    //-->
    </style>
    </head>
    <body>
    <div id="one">
    This is a light blue strip<br />
    it occupies 50% of the page<br />
    whatever the resolution
    </div>
    </body>
    </html>
    c thead

  4. #4
    Squeakypants's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2003
    Posts
    23
    please explain in a little more detail



Tags for this Thread