Non-repetitive Backgrounds

Discuss all aspects of programming here.

Moderator: The Mod Squad

Non-repetitive Backgrounds

Postby son0rous » Sat Aug 14, 2004 7:15 pm

Looking for a way in HTML to have a background that does not loop continuously, but instead simply shows one picture, then the rest of the page is just the default background color.
son0rous
Black Belt 2nd Degree
Black Belt 2nd Degree
 
Posts: 2575
Joined: Thu Jan 23, 2003 11:28 pm

Postby Davek804 » Sat Aug 14, 2004 7:31 pm

What if you built the entire webpage over an image that acted as a bg?
Other than that, i dont know of any way in regular HTML. May be a way in DW or something..
"We must embrace pain and burn it as fuel for our journey."
Davek804
Black Belt 3rd Degree
Black Belt 3rd Degree
 
Posts: 3696
Joined: Wed Jul 09, 2003 7:38 pm
Location: Rural Massachusetts

Postby son0rous » Sat Aug 14, 2004 7:33 pm

can you explain a little further?
son0rous
Black Belt 2nd Degree
Black Belt 2nd Degree
 
Posts: 2575
Joined: Thu Jan 23, 2003 11:28 pm

Postby Toby B. » Sat Aug 14, 2004 8:47 pm

There is a way to do this. How to do it has escaped my mind though....
Toby B.
Lead Mobo-fu Master
Lead Mobo-fu Master
 
Posts: 14277
Joined: Sun Dec 16, 2001 1:01 am
Location: Maine

Postby hypnotik » Sun Aug 15, 2004 9:54 pm

You can do it with CSS. Put this code inbetween your <head> tags
Code: Select all
<style type="text/css">
<!--
.classname {  background-image: url(xxxx.jpg); background-repeat: no-repeat}
-->
</style>


Then use this <body> tag
Code: Select all
<body bgcolor="#FFFFFF" text="#000000" class="classname">


You can also use repeat-x or repeat-y if you want it to repeat in one direction only.
"I disapprove of what you say, but I will defend to the death your right to say it"

-Voltaire
hypnotik
Black Belt
Black Belt
 
Posts: 584
Joined: Tue Oct 22, 2002 9:07 pm
Location: Melbourne, Australia


Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests

cron