Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Body background

Reply
Thread Tools

Body background

 
 
ruca
Guest
Posts: n/a
 
      03-01-2004
How can I set body background with an image, but centered and not tiled?

When I put background="image1", it fills my page with the image many times.
I only want to put at the beggining and centered. I don't won't to use <img
src="image1"> because I have a choice menu that I want over the image.


--

Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca


 
Reply With Quote
 
 
 
 
Cowboy \(Gregory A. Beamer\)
Guest
Posts: n/a
 
      03-01-2004
IE only or all browsers. For all browsers, you will have to make a DIV with
a Z-order that places it in back. This is easiest when you use the grid
layout in Visual Studio .NET (ie, you set all items into DIVs). A Panel can
be used to set the watermark in, as a panel control becomes a DIV when
rendered.

To see this in action (outside of VS.NET), you can go to:
http://www.ricocheting.com/js/watermark.html

To set a watermark for IE only, simply choose the body element (right click
a page and go to properties in VS.NET) and set bgPropeties to fixed. That
will cement the image as a watermark.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"ruca" <(E-Mail Removed)> wrote in message
news:uS7aAb5$(E-Mail Removed)...
> How can I set body background with an image, but centered and not tiled?
>
> When I put background="image1", it fills my page with the image many

times.
> I only want to put at the beggining and centered. I don't won't to use

<img
> src="image1"> because I have a choice menu that I want over the image.
>
>
> --
>
> Thank's (if you try to help me)
> Hope this help you (if I try to help you)
> ruca
>
>



 
Reply With Quote
 
 
 
 
ruca
Guest
Posts: n/a
 
      03-01-2004
The question is:
the image still appears many times in background and I only want that
appears one time and centered.

How?????????????


--

Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca




"Cowboy (Gregory A. Beamer)" <(E-Mail Removed)> escreveu na
mensagem news:eva7Eo5$(E-Mail Removed)...
> IE only or all browsers. For all browsers, you will have to make a DIV

with
> a Z-order that places it in back. This is easiest when you use the grid
> layout in Visual Studio .NET (ie, you set all items into DIVs). A Panel

can
> be used to set the watermark in, as a panel control becomes a DIV when
> rendered.
>
> To see this in action (outside of VS.NET), you can go to:
> http://www.ricocheting.com/js/watermark.html
>
> To set a watermark for IE only, simply choose the body element (right

click
> a page and go to properties in VS.NET) and set bgPropeties to fixed. That
> will cement the image as a watermark.
>
> --
> Gregory A. Beamer
> MVP; MCP: +I, SE, SD, DBA
>
> ************************************************** ********************
> Think Outside the Box!
> ************************************************** ********************
> "ruca" <(E-Mail Removed)> wrote in message
> news:uS7aAb5$(E-Mail Removed)...
> > How can I set body background with an image, but centered and not tiled?
> >
> > When I put background="image1", it fills my page with the image many

> times.
> > I only want to put at the beggining and centered. I don't won't to use

> <img
> > src="image1"> because I have a choice menu that I want over the image.
> >
> >
> > --
> >
> > Thank's (if you try to help me)
> > Hope this help you (if I try to help you)
> > ruca
> >
> >

>
>



 
Reply With Quote
 
Martin Dechev
Guest
Posts: n/a
 
      03-01-2004
Hi, ruca,

You should do some reading on cascading style sheets, I think. Anyway, try:

<body style="background: url(images/background.jpg) no-repeat center center
transparent;">

Just change "images/background.jpg" with the path+filename of your image.

Greetings
Martin
"ruca" <(E-Mail Removed)> wrote in message
news:uS7aAb5$(E-Mail Removed)...
> How can I set body background with an image, but centered and not tiled?
>
> When I put background="image1", it fills my page with the image many

times.
> I only want to put at the beggining and centered. I don't won't to use

<img
> src="image1"> because I have a choice menu that I want over the image.
>
>
> --
>
> Thank's (if you try to help me)
> Hope this help you (if I try to help you)
> ruca
>
>



 
Reply With Quote
 
Dan Brussee
Guest
Posts: n/a
 
      03-02-2004
Which of course only works on IE,,,, right?

On Mon, 1 Mar 2004 15:59:12 +0100, "Martin Dechev"
<(E-Mail Removed)> wrote:

>Hi, ruca,
>
>You should do some reading on cascading style sheets, I think. Anyway, try:
>
><body style="background: url(images/background.jpg) no-repeat center center
>transparent;">
>
>Just change "images/background.jpg" with the path+filename of your image.
>
>Greetings
>Martin
>"ruca" <(E-Mail Removed)> wrote in message
>news:uS7aAb5$(E-Mail Removed)...
>> How can I set body background with an image, but centered and not tiled?
>>
>> When I put background="image1", it fills my page with the image many

>times.
>> I only want to put at the beggining and centered. I don't won't to use

><img
>> src="image1"> because I have a choice menu that I want over the image.
>>
>>
>> --
>>
>> Thank's (if you try to help me)
>> Hope this help you (if I try to help you)
>> ruca
>>
>>

>


 
Reply With Quote
 
 
 
Reply

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 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
To reduce your body weight & slim your body Loss weight MCSA 0 07-23-2007 07:54 PM
To reduce your body weight & slim your body Loss weight MCSA 0 07-21-2007 05:15 AM
all the text (including tags) between <body> .. </body> tarakparekh@yahoo.com Perl Misc 5 09-07-2005 11:40 PM
<body background="BMP/Header.gif" MS_POSITIONING="GridLayout"> Just D. ASP .Net 2 01-12-2005 08:40 AM
Not detecting body.scrollTop and body.scrollLeft in IE6 London Boy Javascript 2 01-12-2004 08:44 AM



Advertisments