Results 1 to 4 of 4

Thread: Split background with CSS

  1. #1
    Join Date
    Apr 2006
    Location
    London
    Posts
    77
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Split background with CSS

    Hello all,

    Any idea how I can attain a horizontal split background with space in middle, without any images like this?







  2. #2
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by VatsaL View Post
    Any idea how I can attain a horizontal split background with space in middle, without any images like this?
    That depends. Is this space directly related to content in the document? If so, a container for that content can have a white background, whilst the body element has the blue-grey background. If not, then an image is the best solution. A 162-byte PNG would do the trick, using the declaration

    Code:
    background: #ebeff2 url(background.png) 0% 0% repeat-x;
    applied to the body element.

    Mike

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Yeah, if you can use two seperate elements each with one color, then that's easy and would work well. Two divs, for example, or, as mike said, something and the body.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  4. #4
    Join Date
    Apr 2006
    Location
    London
    Posts
    77
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks, that worked perfect!

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
  •