473,761 Members | 8,813 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Back Ground Color

27 New Member
i want to know is there any command to put many colors for html page background or a pic im a beginer plz help me
Oct 24 '06 #1
1 2308
rsteph
71 New Member
The easiest (that I can think of anyway) would be to make an image with whatever color scheme you want. Then use the image as the background. You can do this via .css by adding something like this into you stylesheet:

#body {
background-image: url(/images/image01.png);
}

Then simply adding the id="body" attribute to your <body> tag:
<body id="body">

As far as making a stylesheet, in a very basic sense, just add the #body code to a page in Notepad. Then name it something like style.css.

That makes it a .css page. then in the top of your html page between the <head> tags add this code:

<style type="text/css" media="all">
@import "style.css" ;
</style>

Make sure in this case that your style sheet is in the same folder as your web page.

I'm sure others could explain it better, and may even know a better way to do it. But that's the quick and dirty method.
Oct 24 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

8
1701
by: Beatrice Rutger | last post by:
Hi, I am a previous Micro$oft desertee (moved from VB/VC++ to Java before this whole DOTNET thing) because I had several issues with Micro$oft. I am not completely in love with Windoze, but I have to say that Java SWING sucks BIG TIME for developing and deploying desktop applications (especially on Windoze). Unfortunately, I have been dragged kicking and screaming back to my old haunts - but the landscape has changed somewhat and I...
182
7550
by: Jim Hubbard | last post by:
http://www.eweek.com/article2/0,1759,1774642,00.asp
26
2482
by: gswork | last post by:
i hadn't designed a web page from the ground up for about 9 years, then i was asked to do one. I'd dabbled with html and vaigly kept up with some of the developments but other than that i've been stuck in 1996-7 thinking looking at web pages become more and more sophistocated (and frequently slower to load!) Back then html 3.2 was still the norm and the idea of seperating structure and content, let alone style and structure was only...
3
2649
by: mcnewsxp | last post by:
how can i set a back ground image property on an MDI main form to stretch?
1
7898
by: supriya | last post by:
Hi all, Is there any way to set the back ground color of text in rich text box.. I dont want to set the entire back ground color of text box but only the place where i have text. actually using the BackColor property its possible to set the background color of the text box..but what i want is RichTextbox.Text.BackColor.. like this.. Please tell me if any way is thr for this. thnx
1
1792
by: DBC User | last post by:
I have a process that I am writing, which receives the requests through filewatcher. Once I get the request, I need to start a thread asyn. I shouldn't start the thread again until the running thread is completed even if there are more requests pending. Here is how I precive it and please correct me if I am wrong or going to be bad on performance. 1. On file add/delete on the file watcher, I run a method called processrequests. 2. In...
2
2179
by: James | last post by:
When property 'Enabled' is set to 'false', the text back ground color always turn to gray. Can I change this color? From http://developmentnow.com/g/36_2003_7_0_0_0/dotnet-languages-csharp.htm Posted via DevelopmentNow.com Groups http://www.developmentnow.com
3
11512
by: viral123 | last post by:
Hi all, does any one know how to get the functionality of get focus and lost focus using ASP.Net like VB.Net I want to change the textbox back ground color when it has the focus. I used javascript to change the backgorund color when it has focus but how can I change the background color again when it lost the focus my code is as below
2
1839
by: davehirend | last post by:
i have porblem for change the back ground of the TextBox in ASP.NET 2.0
176
4999
by: . | last post by:
9/11 Mysteries http://video.google.com/videoplay?docid=-8172271955308136871 http://www.911weknow.com Ignore those who would go to great effort and expend much of heir time in poo-pooing this post. See for yourself what really happened in the 3 demolished buildings in the weeks before 9/11. Since 9-11 the American public has shown a "remarkable indifference to being deceived" (George Soros). But this is changing. As Hugo Chavez put it:
0
9554
marktang
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...
0
9376
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,...
1
9923
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,...
0
9811
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7358
isladogs
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...
0
6640
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();...
1
3911
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3509
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2788
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.