Welcome to TalkGraphics.com
Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1

    Thumbs up background tweak colour

    How do I colour the white area so it matches the blue of the sea. Is there a way to do this or do I have to create an image to suit in photoshop. (Horizontal tile tweak used in this example)
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	sea.jpg 
Views:	302 
Size:	29.4 KB 
ID:	58977  

  2. #2
    Join Date
    Mar 2009
    Location
    England
    Posts
    2,044

    Default Re: background tweak colour

    Hi Stuart

    CTLR+Drag a colour onto the page and use the eye dropper to match colour to the photo

    Drwyd
    Last edited by Drwyd; 07 April 2009 at 12:10 PM.

  3. #3
    Join Date
    Mar 2009
    Location
    England
    Posts
    2,044

    Default Re: background tweak colour

    This may explain it better
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	pic1.jpg 
Views:	284 
Size:	37.9 KB 
ID:	58982  

  4. #4

    Smile Re: background tweak colour

    This changed the page colour but not the background colour. I achieved what I wanted by changing the background image. See link below. Don't if I'm missing something. Thanks for your help.

    http://homepage.ntlworld.com/stuart.a.wilson/index.htm

    Stuart

  5. #5
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: background tweak colour

    I see the problem. You can't set both background color and bitmap in WD.
    But as usually, a little tweak can help.
    Do following:
    1. Set you bitmap background fill and repeating tweak.
    2. Create placeholder object and give it a name: <head>
    3. Enter following code into this placeholder:
    Code:
    <style type="text/css">body {background-color:#888888;}</style>
    4. Replace number highligthed in blue with your color. To get this number for your color of choice, open it in the Color editor (Ctrl+E) and copy the number as shown in the screenshot:
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	color.png 
Views:	272 
Size:	19.0 KB 
ID:	58984  
    John.

  6. #6

    Smile Re: background tweak colour

    many thanks, that does indeed do the trick.

    Stuart

  7. #7

    Exclamation Re: background tweak colour

    Works? Yes. Good programming practice? No. A better way would be for you to put that background color in a separate style sheet, make a placeholder with the html "<link rel="stylesheet" type="text/css" href="yourDirectory/foobar.css" />", give it the <head> name and make it a repeating object if you need it on every page.
    Why?
    Multiple reasons namely less confusion, better order to your code, most likely you may use more than one style etc. It is very easy to get into wild coding practices with the web but much better to practice good structure.

  8. #8

    Smile Re: background tweak colour

    Thanks for your input.

    Stuart

  9. #9
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: background tweak colour

    Quote Originally Posted by richinri View Post
    Works? Yes. Good programming practice? No.
    No, you are wrong. This is the best programming practice in this particular case.
    Please think before you write something.
    John.

  10. #10

    Default Re: background tweak colour

    According to standards programming practice all style and JavaScript should be unobtrusive - meaning they should ALL be separated into their respective files (JavaScript, CSS, XHTML) unless it can't work any other way. Virtually all schools now teach programming this way and all knowledgeable books on programming.
    The "old" way will work but is considered outdated practice. I have noticed a tendency here to put inline styles and JavaScript everywhere. Doing this with JavaScript in particular can break your validation. They are talking about eventually eliminating inline styles completely. Food for thought since this is a learning forum.
    In this particular case, it will work both ways, correct? My suggestion would be to use the latest and best programming practice.

    Quote Originally Posted by covoxer View Post
    No, you are wrong. This is the best programming practice in this particular case.
    Please think before you write something.
    Last edited by richinri; 07 April 2009 at 05:42 PM. Reason: addition

 

 

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
  •