SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    ********* Streaker Lister14's Avatar
    Join Date
    Jun 2002
    Location
    C:\Documents and Settings\Desktop\Recycle Bin
    Posts
    677
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question help needed with background

    The following code will give me a green background:

    Code:
    <style type="text/css">
                    body { 	background: #66CC99
    		     }
    </style>
    Is there a way, a property with a certain value (declaration) that is able to determine how much of the background will be filled with this colour?

    For instance, can I say: "I want '200px wide and all the way down' of this green colour, but the rest of the page white? -Or even a multi-coloured striped background on the page (one colour starting where the other ends)?"

    This should be similar to a left frame. What I eventually want is a left frame in colour A with a thin border in colour B.

    Is this possible or will I still have to use <frameset>?
    Is this possible with multiple layers? -If yes, where can I find information about how to do this?

    PS: I do not want to use .jpg/.bmp to define the background, as that'll be too much hassle to write above it.
    roy.lu
    C:\DOS... C:\DOS\RUN... RUN\DOS\RUN...!

  2. #2
    SitePoint Wizard silver trophy TheOriginalH's Avatar
    Join Date
    Aug 2000
    Location
    Thailand
    Posts
    4,810
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You can either do it in tables or pure .css .

    For the pure .css method, take a look at www.w3schools.com/css , but bear in mind that IE 5x gets the box model wrong. For help in remedying that, see http://www.tantek.com/CSS/Examples/boxmodelhack.html.
    ~The Artist Latterly Known as Crazy Hamster~
    922ee590a26bd62eb9b33cf2877a00df
    Currently delving into Django, GIT & CentOS

  3. #3
    ********* Streaker Lister14's Avatar
    Join Date
    Jun 2002
    Location
    C:\Documents and Settings\Desktop\Recycle Bin
    Posts
    677
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    cheers for that...
    ...think i'll have to use the 'repeat-y' function
    roy.lu
    C:\DOS... C:\DOS\RUN... RUN\DOS\RUN...!


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
  •