HomeHome  ­FAQFAQ  ­SearchSearch  ­MemberlistMemberlist  ­RegisterRegister  ­Log inLog in  
Post new topic   Reply to topicShare | 
 

 Beginner - HTML Backgrounds

View previous topic View next topic Go down 
AuthorMessage
Revan
Admin


Posts: 22
Join date: 2008-06-18
Age: 15
Location: In your head messing with your thoughts!

PostSubject: Beginner - HTML Backgrounds   Tue Jul 29, 2008 8:05 pm

Backgrounds

The <body> tag has two attributes where you can specify backgrounds. The background can be a color or an image.

Bgcolor

The bgcolor means background-color, it can be a hexadecimal number, an RGB value, or a color name:

Code:
<body bgcolor="#000000">
<body bgcolor="rgb(0,0,0)">
<body bgcolor="black">


The lines above all set the background-color to black. (using a mac program fireworks to look and the color code is a easy way to change it from black to other colors)

Background

If you choose to have a picture as a background, but it is smaller than the browser it will repeat itself until the browser is filled.

Code:
<body background="clouds.gif">
<body background="http://www.pro-flash-beat.darkbb.com/clouds.gif">


clowds.gif is just a example

The URL can be relative (as in the first line above) or absolute (as in the second line above).

Basic Notes - Useful Tips

The bgcolor and the text attributes in the <body> tag are deprecated in the latest versions of HTML.

_________________
90% of teens today would die if Myspace or Bebo had a system failure and was completely destroyed. If you are one of the 10% that would be laughing, copy and paste this to your signature.




Last edited by Revan on Wed Jul 30, 2008 6:25 pm; edited 1 time in total (Reason for editing : Incomplete)
Back to top Go down
View user profile http://pro-flash-beat.darkbb.com/
 

Beginner - HTML Backgrounds

View previous topic View next topic Back to top 
Page 1 of 1

Permissions of this forum:You cannot reply to topics in this forum
Pro Flash Beat :: Scripting :: HTML-
Post new topic   Reply to topic