Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old January 28th, 2006, 10:05 PM
Bill Meeks
Guest
 
Posts: n/a
Default HTML Background image

Hello, what html do I write to keep the background image from not
repeating itself? I want the image to follow me as I scroll down the
page.

  #2  
Old January 29th, 2006, 06:25 AM
Lachlan Hunt
Guest
 
Posts: n/a
Default Re: HTML Background image

Bill Meeks wrote:[color=blue]
> Hello, what html do I write to keep the background image from not
> repeating itself? I want the image to follow me as I scroll down the
> page.[/color]

This is a CSS question, not an HTML related question. Look up the CSS
background properties; in particular, 'background-repeat' and the
'background' shorthand property.

For example:

body { background: white url(/images/bg.png) no-repeat; color: black; }

http://www.w3.org/TR/CSS21/colors.html#q2

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles