473,803 Members | 3,758 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Create Gradient Background on Web Page

I'm looking for information or samples of how to display a gradient
background color for an ASP.NET web page. I want to be able to set a start
and end color (e.g. Light Orange to White) and have the page rendered with
that gradient background from left to right. Using google I found several
examples but they all appeared to apply only to Windows Forms

Wayne
Nov 18 '05 #1
4 10078
just create a background gif.

-- bruce (sqlwork.com)
"Wayne Wengert" <wa************ ***@wengert.com > wrote in message
news:ez******** ******@TK2MSFTN GP11.phx.gbl...
I'm looking for information or samples of how to display a gradient
background color for an ASP.NET web page. I want to be able to set a start
and end color (e.g. Light Orange to White) and have the page rendered with
that gradient background from left to right. Using google I found several
examples but they all appeared to apply only to Windows Forms

Wayne

Nov 18 '05 #2
If you are happy with IE only, use style filters.

Eliyahu

"Wayne Wengert" <wa************ ***@wengert.com > wrote in message
news:ez******** ******@TK2MSFTN GP11.phx.gbl...
I'm looking for information or samples of how to display a gradient
background color for an ASP.NET web page. I want to be able to set a start
and end color (e.g. Light Orange to White) and have the page rendered with
that gradient background from left to right. Using google I found several
examples but they all appeared to apply only to Windows Forms

Wayne

Nov 18 '05 #3
Use an image. You can create a 5-pixel-high by the widest you expect your
browser window to be JPG, and make it a gradient from left to right. It will
tile down the page.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Wayne Wengert" <wa************ ***@wengert.com > wrote in message
news:ez******** ******@TK2MSFTN GP11.phx.gbl...
I'm looking for information or samples of how to display a gradient
background color for an ASP.NET web page. I want to be able to set a start
and end color (e.g. Light Orange to White) and have the page rendered with
that gradient background from left to right. Using google I found several
examples but they all appeared to apply only to Windows Forms

Wayne

Nov 18 '05 #4
Thanks for the suggestions guys.

Wayne

"Wayne Wengert" <wa************ ***@wengert.com > wrote in message
news:ez******** ******@TK2MSFTN GP11.phx.gbl...
I'm looking for information or samples of how to display a gradient
background color for an ASP.NET web page. I want to be able to set a start
and end color (e.g. Light Orange to White) and have the page rendered with
that gradient background from left to right. Using google I found several
examples but they all appeared to apply only to Windows Forms

Wayne

Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2435
by: Woody Splawn | last post by:
I have a webform where I would like to have the background color for the webform be a gradient in blue. How do I do this? What is the easiest way? What is the way most used by other developers? Do you draw it with code or attach a .gif file as a background or what? Does one way or the other have an effect on speed? Thank You
6
21703
by: HenryC | last post by:
How does one create a gradient background for a form?
2
7590
by: Dean Slindee | last post by:
It appears that I have two routines that don't play well together! First routine: a form's background is shaded with a gradient color. Second routine: then, the background of all labels on the form are made transparent. What results is the label's backcolor appearing as blocks of 'control' colored background. Setting the label's backcolor to color.transparent does not make it transparent (evidently the text is repainted with a...
0
1044
by: Dan Baumbach | last post by:
I'm working on a toolbar for IE. I have everything working well but I'm unable to get the toolbar to have the same gradient background under XP that other toolbars on IE have. To start with, I don't see any documentation to get the colors for the gradient on IE. Is there one? My toolbar has the TBSTYLE_TRANSPARENT but it uses the defined background color brush of the parent window as its background rather that really being truely...
0
3039
by: David Gouge | last post by:
Hi All, appreciate that this is more gdi+ than c# but always seem to get good answers here, so here goes... In a nutshell, all i want to do is add a gradient background to a ListView. I have gotten so far by: Adding the following to the constructor: this.SetStyle(ControlStyles.UserPaint, true);
2
1946
by: moondaddy | last post by:
How do I make a background gradient diagonal instead of just horizontal or vertical? This makes the standard horizontal gradient. progid:dximagetransform.microsoft.gradient(gradienttype=1, startcolorstr='blue', endcolorstr='whitesmoke',gradientType='2'); Thanks.
1
1662
by: madladuk | last post by:
Hi all. Does anyone have any example of how to do a gradient background whilst moving over graphics and text like the Microsoft web site. On the MS site when you select an area a window popup and as you hover over the sections it fill in a nice gradient background, any assistance? Thanks
6
6171
by: moondaddy | last post by:
I want to fill the entire background of a page with a gradient. As a test, I first filled with a solid color like this: <body style="background-color: #ccffff;" > and the entire page was this color. next I replaced that with a gradient style like this: <body style="filter:
9
8147
by: Eric Lindsay | last post by:
How do you provide a consistent gradient fill as a background in a liquid layout? If I make a gradient fill image say 1000 pixels wide (and repeat it down the page) to suit a typical computer display, then only a small portion of the gradient will show if the viewpoint is a smaller PDA or phone display. On the other hand, if viewed full screen on a 1920 pixel wide display, I would run out of gradient on one or both sides of the page....
0
9700
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
9564
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,...
0
10546
Oralloy
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...
0
10068
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...
0
9121
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6841
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();...
0
5498
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2970
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.