SitePoint Sponsor

User Tag List

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

    Background Image Dark Color

    I have a dark gray brick image I want to use as the background for my site. The problem is that this doesn't contrast well with the font color, and I do not want white/bright colored font.

    So I was wondering what the pro's do in this type of situation??

    Thanks in advance for your thoughts

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,176
    Mentioned
    454 Post(s)
    Tagged
    8 Thread(s)
    Hehe, the basic answer is that you can't keep your cake and eat it too. Something will need to give.

    A half-way house is to put a semi-transparent background color on the content area, so that the background image is still visible through this background color but is less dark. E.g.

    Code:
    .content-wrapper {
        background: white; /* fallback for old browsers that don't support rgba */
        background: rgba(255,255,255,0.3);
    }


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
  •