How can I set body background with an image, but centered and not tiled?
When I put background="ima ge1", 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 4 1862
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" <ru***@iol.pt > wrote in message
news:uS******** ******@TK2MSFTN GP10.phx.gbl... How can I set body background with an image, but centered and not tiled?
When I put background="ima ge1", 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
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)" <No************ @comcast.netNoS pamM> escreveu na
mensagem news:ev******** ******@tk2msftn gp13.phx.gbl... 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" <ru***@iol.pt > wrote in message news:uS******** ******@TK2MSFTN GP10.phx.gbl... How can I set body background with an image, but centered and not tiled?
When I put background="ima ge1", 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
Hi, ruca,
You should do some reading on cascading style sheets, I think. Anyway, try:
<body style="backgrou nd: url(images/background.jpg) no-repeat center center
transparent;">
Just change "images/background.jpg" with the path+filename of your image.
Greetings
Martin
"ruca" <ru***@iol.pt > wrote in message
news:uS******** ******@TK2MSFTN GP10.phx.gbl... How can I set body background with an image, but centered and not tiled?
When I put background="ima ge1", 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
Which of course only works on IE,,,, right?
On Mon, 1 Mar 2004 15:59:12 +0100, "Martin Dechev"
<de*******@hotm ail.com> wrote: Hi, ruca,
You should do some reading on cascading style sheets, I think. Anyway, try:
<body style="backgrou nd: url(images/background.jpg) no-repeat center center transparent; ">
Just change "images/background.jpg" with the path+filename of your image.
Greetings Martin "ruca" <ru***@iol.pt > wrote in message news:uS******* *******@TK2MSFT NGP10.phx.gbl.. . How can I set body background with an image, but centered and not tiled?
When I put background="ima ge1", 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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Serge Hartmann |
last post by:
hi there,
I created two different backgrounds for the same page to obtain a (fake)
left margin and a (true) right margin.
-> left background, defined in body section, aligned bottom and with
vertical repeat.
-> right background, defined in html section, aligned top and without repeat
it may look weird, but I don't think my problem is due to these margins.
|
by: Unknown User |
last post by:
Here's my page: http://www.abahia.com/smartads/
I want the beige background all over the page. It works fine in Opera 8,
in IE 5.5 and 6, in Maxthon, but in Mozilla, there is a large white margin
at the bottom.
Do you know how I can fix it?
Thanks,
http://www.auriance.com - http://www.auriance.net
|
by: Joe |
last post by:
If you display the styles in use at Yahoo.com, you can see some
interesting things. For example, this:
html>body{font:84.5%/122% arial;}
I tried creating a sample page using this style and it didn't do
anything. Anyone know whether having this ">" is real code or a syntax
error? I'm not sure what that "/" does in the font style, either. Or
the difference in a stylesheet between an html style and a body style.
Finding a CSS reference...
|
by: Dan Novak |
last post by:
Hello,
I'm trying to apply different backgrounds to a page based on the BODY
element class. It's working on some browsers but not on others.
I've searched Google and the groups, pored through my trusty O'Reilly
books, but I can't find anything that suggests this isn't valid.
I cut down the stylesheet and the page to the bare minimum, but the
difference still appears.
|
by: Richard Steele |
last post by:
Can anyone help me
I am developing an application runs on a PC (client) only. For graphical
reasons it was decided that the content would be displayed in a Browser that
is embedded in a Windows Forms application (VS net 2003) c#
I have a Windows Form that uses a webbrowser (AxWebBrowser) )to display
html derived from internal classes that builds data from a database. The
HTML displays correctly. The HTML is built at runtime and the...
| |
by: bipède |
last post by:
Hi,
Is it possible in Mozilla / Firefox / Netscape to fix minimum size for
html and/or body element in a "real" XHTML (mime application/xhtml+xml)
page so that when there is few text in a page the background color fill
the window and when content exeed the window size the body resize to
include all the content.
For now I can't figure out how to do this, if I use height:100%;
width:100% the size of html and body is *always* 100% even...
|
by: david.karr |
last post by:
If in my CSS I set the "background-color" property on the "body"
element, it only covers the background of the elements defined in the
body, up to the current width and height of the page. However, if the
current component set has a resulting small height, this leaves most
of the page with the original background color (white).
However, if I set the property on the "html" element instead, it does
color the entire visible page, beyond the...
|
by: AAaron123 |
last post by:
<body runat="server" id="MainBody">
<form id="form1" runat="server" style="background-color:green; width: 100%;
height: 100%">
<br />
Table1" runat="server" Style="background-color:Yellow; width: 100%; height:
90%" BorderColor="Maroon"
|
by: Noorain |
last post by:
I designed a site. i want to header,footer,left & right column fixed but body information only scrolling. this site screen to be 800/600 px. i designed this way but when i used position fixed all information to show as displace. please help me.
my coding are as below:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |