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)
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)
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.
This may explain it better
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
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:
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:Code:<style type="text/css">body {background-color:#888888;}</style>
John.
many thanks, that does indeed do the trick.
Stuart
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.
Thanks for your input.
Stuart
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.
Last edited by richinri; 07 April 2009 at 05:42 PM. Reason: addition
Bookmarks