473,395 Members | 1,689 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How fill with gradient?

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



Nov 18 '05 #1
5 2411
I would say go into graphics editor of your choice and make a
gradient--assuming left to right gradient as you would like and size it 1
pixel high 1500 wide--to cover any size monitor. Then make that the
background image.
the browser will repeat this very small jpg or gif and it will be very fast
and accomplish what you want.

HTH
Shane

"Woody Splawn" <no****@splawns.com> wrote in message
news:uU**************@TK2MSFTNGP10.phx.gbl...
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



Nov 18 '05 #2
If you are happy with limiting your clients's browser to IE, you can use
filters in CSS styles. See
http://msdn.microsoft.com/library/de...er/filters.asp

Eliyahu

"Woody Splawn" <no****@splawns.com> wrote in message
news:uU**************@TK2MSFTNGP10.phx.gbl...
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



Nov 18 '05 #3
Well, I would like to avoid getting into drawing my own. I was hoping there
might already be some .gif files made like you describe. I am looking for
something simple like a gradient from light blue to dark blue.

I have done some searching on my own hard drive and have come up with some
gradient .gif files but when I use them as a background I am not getting the
effect I'm looking for. They seem to be repeating, by default. Is there
some way to turn of repeating and simply make the .gif fill the screen?

I have a book that tells me how to draw a gradient in a Winform using code.
I have used the code and it works in a winform but does not seem to work in
a Webform.

Anyone have a solution or know where I can find a gradient already made that
is 1 pixel high and 1500 wide?


"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:eQ**************@tk2msftngp13.phx.gbl...
I would say go into graphics editor of your choice and make a
gradient--assuming left to right gradient as you would like and size it 1
pixel high 1500 wide--to cover any size monitor. Then make that the
background image.
the browser will repeat this very small jpg or gif and it will be very fast and accomplish what you want.

HTH
Shane

"Woody Splawn" <no****@splawns.com> wrote in message
news:uU**************@TK2MSFTNGP10.phx.gbl...
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




Nov 18 '05 #4
Well, I would like to have the web site look reasonable to someone who is
not using IE. Any other suggestions?
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:OF**************@TK2MSFTNGP11.phx.gbl...
If you are happy with limiting your clients's browser to IE, you can use
filters in CSS styles. See
http://msdn.microsoft.com/library/de...er/filters.asp
Eliyahu

"Woody Splawn" <no****@splawns.com> wrote in message
news:uU**************@TK2MSFTNGP10.phx.gbl...
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




Nov 18 '05 #5
Search the web for background images I guess.
If you don' t want to make your own you will need to find someone elses.
There are plenty on the internet.
"Woody Splawn" <no****@splawns.com> wrote in message
news:O$**************@tk2msftngp13.phx.gbl...
Well, I would like to have the web site look reasonable to someone who is
not using IE. Any other suggestions?
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:OF**************@TK2MSFTNGP11.phx.gbl...
If you are happy with limiting your clients's browser to IE, you can use
filters in CSS styles. See

http://msdn.microsoft.com/library/de...er/filters.asp

Eliyahu

"Woody Splawn" <no****@splawns.com> wrote in message
news:uU**************@TK2MSFTNGP10.phx.gbl...
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





Nov 18 '05 #6

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

Similar topics

13
by: Crirus | last post by:
The main ideea: I havea 513x513 array of values....I draw a sort of map using that values for colors... so I have a realistic lanscape (map). I want to zoom about 60 times that map...and the...
0
by: Don | last post by:
I'm making a custom control that has a multiline textbox on it. I want to make the textbox have a gradient background. On my custom control's Paint event I call a routine that draws a gradient on...
2
by: Adam Maltby | last post by:
Hi does anyone know how to fill a rectangle with an ellipse style fill (ie so it gives a spotlight effect on a rectange?) I know how to create rectangles, ellipses etc and I can fill the rect...
4
by: Jon Slaughter | last post by:
I'm drawing a linear gradient and its very "banded". The colors are far enough part that it should be plenty smooth enough but I always get the same number of bands regardless. I've tried to set...
2
by: Robinson | last post by:
Haven't had much luck googling this one: I want to draw a line with a gradient fill, that is a line connecting two shapes in a graphics program, where each shape is a different colour (say, Red...
6
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...
2
by: Mirco Attocchi | last post by:
Hi all, someone know how to fill with gradient a box or a field or entire column in detail section? Thanks Mirco Attocchi
9
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...
5
by: Bob Altman | last post by:
Hi all, Here's another rank beginner question. What is the standard way to fill a client-side table cell with a horizontal gradient background? TIA - Bob
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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...

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.