PC Review


Reply
Thread Tools Rate Thread

Center a background image, no repeating / tiling

 
 
Steve Grosz
Guest
Posts: n/a
 
      7th Jun 2004
Can someone tell me what the html code would be to have a wallpaper
image on a page, centered on the page, with no tiling/repeating? I've
looked in some FP books I have, and haven't been able to find anything.

This isn't going on a HTML page but on a ColdFusion page, so I can't
edit the page with the editing tools of FP2003, that's why I'm asking.

Thanks,
Steve
 
Reply With Quote
 
 
 
 
Jim Buyens
Guest
Posts: n/a
 
      7th Jun 2004
This requries the following CSS rule.

body { background-image: url('images/whatever.jpg');
background-repeat: no-repeat;
background-position: center }

You can put this rule in a <style></style> block in the
<head> section of your Web page, or preferably, in a
linked style sheet file.

I can't help you with ColdFusion, though. Try one of the
macromedia.coldfusion.* newsgroups.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------

>-----Original Message-----
>Can someone tell me what the html code would be to have a

wallpaper
>image on a page, centered on the page, with no

tiling/repeating? I've
>looked in some FP books I have, and haven't been able to

find anything.
>
>This isn't going on a HTML page but on a ColdFusion page,

so I can't
>edit the page with the editing tools of FP2003, that's

why I'm asking.
>
>Thanks,
>Steve
>.
>

 
Reply With Quote
 
Jon Spivey
Guest
Posts: n/a
 
      7th Jun 2004
A while ago somebody (can't remember who) gave me a tip to set your own
browsers default background to a repulsive colour to remind yourself to
always set a background colour - even if you have an image as well. I'd do
body{
background: #fff url(image.gif) fixed center no-repeat;
}

--
Cheers,
Jon
Microsoft MVP - FP

Jim Buyens wrote:
> This requries the following CSS rule.
>
> body { background-image: url('images/whatever.jpg');
> background-repeat: no-repeat;
> background-position: center }
>
> You can put this rule in a <style></style> block in the
> <head> section of your Web page, or preferably, in a
> linked style sheet file.
>
> I can't help you with ColdFusion, though. Try one of the
> macromedia.coldfusion.* newsgroups.
>
> Jim Buyens
> Microsoft FrontPage MVP
> http://www.interlacken.com
> Author of:
> *----------------------------------------------------
>> \---------------------------------------------------
>>> Microsoft Office FrontPage 2003 Inside Out
>>> ---------------------------------------------------
>>> Web Database Development Step by Step .NET Edition
>>> Microsoft FrontPage Version 2002 Inside Out
>>> Faster Smarter Beginning Programming
>>> (All from Microsoft Press)

>> /---------------------------------------------------

> *----------------------------------------------------
>
>> -----Original Message-----
>> Can someone tell me what the html code would be to have a wallpaper
>> image on a page, centered on the page, with no tiling/repeating?
>> I've looked in some FP books I have, and haven't been able to find
>> anything.
>>
>> This isn't going on a HTML page but on a ColdFusion page, so I can't
>> edit the page with the editing tools of FP2003, that's why I'm
>> asking.
>>
>> Thanks,
>> Steve
>> .



 
Reply With Quote
 
Kathleen Anderson [MVP - FP]
Guest
Posts: n/a
 
      7th Jun 2004
That would be Tina Clarke :-)

--
~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
http://www.spiderwebwoman.com/resources/
Connect to the Newsgroups with Outlook Express
http://www.tushar-mehta.com/misc_tut..._ng/index.html





Jon Spivey <(E-Mail Removed)> wrote:
> A while ago somebody (can't remember who) gave me a tip to set your
> own browsers default background to a repulsive colour to remind
> yourself to always set a background colour - even if you have an
> image as well. I'd do body{
> background: #fff url(image.gif) fixed center no-repeat;
> }
>
>
> Jim Buyens wrote:
>> This requries the following CSS rule.
>>
>> body { background-image: url('images/whatever.jpg');
>> background-repeat: no-repeat;
>> background-position: center }
>>
>> You can put this rule in a <style></style> block in the
>> <head> section of your Web page, or preferably, in a
>> linked style sheet file.
>>
>> I can't help you with ColdFusion, though. Try one of the
>> macromedia.coldfusion.* newsgroups.
>>
>> Jim Buyens
>> Microsoft FrontPage MVP
>> http://www.interlacken.com
>> Author of:
>> *----------------------------------------------------
>>> \---------------------------------------------------
>>>> Microsoft Office FrontPage 2003 Inside Out
>>>> ---------------------------------------------------
>>>> Web Database Development Step by Step .NET Edition
>>>> Microsoft FrontPage Version 2002 Inside Out
>>>> Faster Smarter Beginning Programming
>>>> (All from Microsoft Press)
>>> /---------------------------------------------------

>> *----------------------------------------------------
>>
>>> -----Original Message-----
>>> Can someone tell me what the html code would be to have a wallpaper
>>> image on a page, centered on the page, with no tiling/repeating?
>>> I've looked in some FP books I have, and haven't been able to find
>>> anything.
>>>
>>> This isn't going on a HTML page but on a ColdFusion page, so I can't
>>> edit the page with the editing tools of FP2003, that's why I'm
>>> asking.
>>>
>>> Thanks,
>>> Steve
>>> .

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
stretching the background image instead of tiling =?Utf-8?B?U3JpZGhhcg==?= Microsoft ASP .NET 3 30th Nov 2005 11:32 AM
How do I set a background image without it tiling? =?Utf-8?B?UGF1bA==?= Microsoft Frontpage 3 24th May 2005 12:18 PM
My background image is tiling =?Utf-8?B?TUdQMQ==?= Microsoft Frontpage 7 28th Mar 2005 03:54 PM
Background image - with no tiling Steve Grosz Microsoft Frontpage 1 6th Jun 2004 07:55 AM
Tiling an Image for Slide Master Background? Bill Microsoft Powerpoint 1 13th May 2004 07:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:10 PM.