|
|||||||||
What we have here is a happy coincidence. The rectangle that we drew in DRAW is wide enough to cover the entire width of the browser window at its current size. But the browser window is not very wideless than 400 pixels. Figure 21.3 shows what happens if we widen the browser window. The original graphic was not created with enough width, so the image repeats on the right side. A mistake like this is quite insidious. Not only is your Web page representing you in a potentially embarrassing fashion, but you might never be aware of it because your own display looks fine. It is critically important that you understand how backgrounds are created and how they behave when placed on a Web site. The simple definition of a tiled graphic is an image that repeats. It isnt stretched or distorted to fill the space; it simply repeats itself as often as is needed in order to fill the space. Therefore, the ending of the graphic needs to flow smoothly into the beginning, otherwise there will be a visible seam.
The tiling effect requires that you scrutinize the pattern you create for a background. Figure 21.4 illustrates the risk again: this texture pattern might look pretty cool in DRAW, but it looks horrible as the background to a Web page. If you have set up your laboratory, you can explore this quite easily. As you create different graphic effects in DRAW, continue to export them as bg.jpg. Then switch to your browser and refresh the display (F5 in Internet Explorer, Ctrl+R in Navigator). You might be tempted to circumvent the whole tiling issue by simply creating your graphics large enough so that they wont need to tile. Resist this temptation with all of your might, for two reasons: (1) You would have to create very large graphics, thereby saddling your visitors with intolerable wait times, just to see your background; and (2) How large is large? To accommodate all viewers, you would have to create the graphic at 1600 × 1280 pixels, which further exacerbates reason No. 1.
No, better to focus intently on graphics that tile properly, and fortunately there are many sources for creating and acquiring them, including your own creative vision and your new Web laboratory within DRAW. Figure 21.5 shows a very simple and effective tiled background for a musically oriented Web page. The graphic in DRAW uses a symbol from the Musical typeface and the offset between the two symbols makes for nice visual variety. The symbols are also just barely darker than the background, ensuring a soft, even background that maintains a high readability quotient. At the very least, this background contributes to the theme of the page, does not inhibit readability, and achieves absence of ugliness, the latter being the minimum, yet oh-so-important, requirement for an effective Web page. Note the size of the graphic in DRAWa scant 150 × 165 pixels. The resultant GIF file was less than 2KB.
And just so you dont get soured on the prospect of using DRAWs popular Texture Fill engine to produce Web backgrounds, Figure 21.6 shows one that works nicely. The difference between this one and the one in Figure 21.4 is all in the seams: the pattern in Figure 21.4 does not repeat effectively because the image is too defined; it has a distinct seam. But the one in Figure 21.6, the Fiber Embossed texture, has no visible seams. Study it in DRAW and in the browser and you can see that the pattern repeats over and over again, but without a visible seam. That is the litmus test for any background graphic. Again, create a few textures and save them one after the other as bg.jpg, each time switching to your browser to have a look. Experimenting with Web designs is so immediate and interactive, it is almost intoxicating. Creating Borders One of the more popular forms of backgrounds is the vertical border, a stripe or pattern that runs down the left side of the page. The rest of the page is left white or set to some other background color and the bulk of the text and graphics is placed there. The border serves as a simple graphic element, or can be used to place navigation links or other special elements.
Quick, how come you see lots of left-hand borders on Web pages but very few right-hand ones? Give up? Because its impossible to know where the right-hand border will be. All left borders will begin at pixel No. 1, but the right border could be at 400 pixels, 640, 800, 1000, 1280, or really any number at all. There is no telling where the right edge of the screen will be, unless you make clever use of a table with relative sizes assigned to the columns. The second question is this: how can you prevent the left border from repeating itself at some point across the screen? Remember, all backgrounds tile, so whats to stop the border from showing up again and again? The answer is you. You stop the border from reappearing by creating a background that actually is much wider than it appears. Follow these steps:
You have now defined the border stripe that will run down the left side of the screen. To prevent it from tiling, you need to fill all of the space to its right. This is a job for flop-and-dupe:
|
|||||||||
|