![]() |
||||||||
HomeBasicsUsing FlagsMore Text FlagsPlacing ImagesColorsBackgroundsLinking PagesTablesGetting Online |
HTML Basics, Tips and Tricks |
|||||||
BACKGROUNDS
Changing background colors is very simple. You need two things: A command that alerts the browser (like Netscape or IE) that the color is going to be changed, and a color code. The command for changing any background item is found within the page's BODY tag. To change just the background color, enter this attribute: <BODY BGCOLOR="######"> ###### stands for any hex code (remember, we discussed these in the last lesson). Here's the link to that cool place with the neato hex codes: http://www.hidaho.com/colorcenter/cc.html This name is a bit misleading. When you see an HTML page with wallpaper or backgrounds, it's not one continuous .gif or .jpeg. It's actually one small .gif or .jpeg repeated again and again... and it is equally as simple as the colors above. ΚΚΚΚΚ First you need a background. Since you need a digitizer to make backgrounds, and I know not everyone has one of these at their fingertips, the best way to use a background is to grab one off the Internet. Here's a good place: Drop by and grab a few pieces to experiment with. Now that you have a .gif or .jpeg for your background, you will want to put it in the same directory you place all your other images into. Again, all background attributes come inside the tag. Like so: <BODY BACKGROUND="filename.gif"> (or filename.jpg, whichever) Now, it might take a little while for the background image to load. In the meantime, you can display a simple wall of color by adding BGCOLOR="######" into the BODY tag, like so: <BODY BGCOLOR="######" BACKGROUND="filename.gif"> When the page loads, the background will first be displayed in the color that you chose, then the background image will load. Pretty funky. We've finished this topic. You can now move on to the next: Linking Pages. |
||||||||