Hello all -
I'm trying to incorporate a stylesheet into an ASP.Net page but everytime I include the "LINK" code to the .css file in the HEADER location of the HTML code, the background color that I have set (which is blue) gets changed to white. Below is my code in the HTML of the ASP.NET page and then my code in the .css file. Any help is sincerely appreciated as I haven't worked with stylesheets alot in my past.
Thanks for any thoughts,
Mark
HTML code:
<HEAD><title>Property Sold Report Criteria</title><meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"><meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE"><meta content="JavaScript" name="vs_defaultClientScript"><meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"><LINK href="Styles.css" type="text/css" rel="stylesheet"></HEAD><body bgColor="#b0c4de" MS_POSITIONING="GridLayout"><div class="RPTCRITERIA"><form id="Form1" method="post" runat="server">
...........controls on web form
</form></div></body>
...css File
BODY
{
word-spacing: normal;
font: icon;
text-transform: none;
letter-spacing: normal;
background-color: white;
}
RPTCRITERIA
{
word-spacing: normal;
font: icon;
text-transform: none;
letter-spacing: normal;
} 6 1909
you have the BODY tag in the CSS set to make the background white. Why would
you think it wouldn't?
--
Curt Christianson
Owner/Lead Developer, DF-Software www.Darkfalz.com
"Mark" <an*******@discussions.microsoft.com> wrote in message
news:66**********************************@microsof t.com... Hello all -
I'm trying to incorporate a stylesheet into an ASP.Net page but everytime
I include the "LINK" code to the .css file in the HEADER location of the
HTML code, the background color that I have set (which is blue) gets changed
to white. Below is my code in the HTML of the ASP.NET page and then my code
in the .css file. Any help is sincerely appreciated as I haven't worked
with stylesheets alot in my past. Thanks for any thoughts, Mark
HTML code:
<HEAD><title>Property Sold Report Criteria</title><meta content="Microsoft
Visual Studio .NET 7.1" name="GENERATOR"><meta content="Visual Basic .NET
7.1" name="CODE_LANGUAGE"><meta content="JavaScript"
name="vs_defaultClientScript"><meta
content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema"><LINK href="Styles.css" type="text/css"
rel="stylesheet"></HEAD><body bgColor="#b0c4de"
MS_POSITIONING="GridLayout"><div class="RPTCRITERIA"><form id="Form1"
method="post" runat="server"> ...........controls on web form </form></div></body>
.css File
BODY { word-spacing: normal; font: icon; text-transform: none; letter-spacing: normal; background-color: white; }
RPTCRITERIA { word-spacing: normal; font: icon; text-transform: none; letter-spacing: normal; }
Curt,
Logic would say that your suggestion would be correct. When I re-read the .css, I couldn't believe I had missed it but to no avail, even when I remove that line, it doesn't take the default of the body bgcolor of steel blue that I had set originally........which kinda confuses me further if I did remove that item.
Do I have to set that color somehow else other than in the BODY tag because it still shows white yet when I remove the LINK reference, it goes back to blue.
Mark
----- Curt_C [MVP] wrote: -----
you have the BODY tag in the CSS set to make the background white. Why would
you think it wouldn't?
--
Curt Christianson
Owner/Lead Developer, DF-Software www.Darkfalz.com
"Mark" <an*******@discussions.microsoft.com> wrote in message
news:66**********************************@microsof t.com... Hello all - I'm trying to incorporate a stylesheet into an ASP.Net page but everytime
I include the "LINK" code to the .css file in the HEADER location of the
HTML code, the background color that I have set (which is blue) gets changed
to white. Below is my code in the HTML of the ASP.NET page and then my code
in the .css file. Any help is sincerely appreciated as I haven't worked
with stylesheets alot in my past. Thanks for any thoughts, Mark HTML code: <HEAD><title>Property Sold Report Criteria</title><meta content="Microsoft
Visual Studio .NET 7.1" name="GENERATOR"><meta content="Visual Basic .NET
7.1" name="CODE_LANGUAGE"><meta content="JavaScript"
name="vs_defaultClientScript"><meta
content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema"><LINK href="Styles.css" type="text/css"
rel="stylesheet"></HEAD><body bgColor="#b0c4de"
MS_POSITIONING="GridLayout"><div class="RPTCRITERIA"><form id="Form1"
method="post" runat="server">> ...........controls on web form</form></div></body>>> .css File BODY { word-spacing: normal; font: icon; text-transform: none; letter-spacing: normal; background-color: white; } RPTCRITERIA { word-spacing: normal; font: icon; text-transform: none; letter-spacing: normal; }
Perhaps your style sheet has been cached by your browser? Try clearing your
cache or renaming the stylesheet.
Dan
"Mark" <an*******@discussions.microsoft.com> wrote in message
news:E0**********************************@microsof t.com... Curt,
Logic would say that your suggestion would be correct. When I re-read the
..css, I couldn't believe I had missed it but to no avail, even when I remove
that line, it doesn't take the default of the body bgcolor of steel blue
that I had set originally........which kinda confuses me further if I did
remove that item. Do I have to set that color somehow else other than in the BODY tag
because it still shows white yet when I remove the LINK reference, it goes
back to blue. Mark
----- Curt_C [MVP] wrote: -----
you have the BODY tag in the CSS set to make the background white.
Why would you think it wouldn't?
-- Curt Christianson Owner/Lead Developer, DF-Software www.Darkfalz.com
"Mark" <an*******@discussions.microsoft.com> wrote in message news:66**********************************@microsof t.com... > Hello all - >> I'm trying to incorporate a stylesheet into an ASP.Net page but
everytime I include the "LINK" code to the .css file in the HEADER location of
the HTML code, the background color that I have set (which is blue) gets
changed to white. Below is my code in the HTML of the ASP.NET page and then
my code in the .css file. Any help is sincerely appreciated as I haven't
worked with stylesheets alot in my past. >> Thanks for any thoughts, > Mark >> HTML code: >><HEAD><title>Property Sold Report Criteria</title><meta
content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"><meta content="Visual Basic
..NET 7.1" name="CODE_LANGUAGE"><meta content="JavaScript" name="vs_defaultClientScript"><meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"><LINK href="Styles.css" type="text/css" rel="stylesheet"></HEAD><body bgColor="#b0c4de" MS_POSITIONING="GridLayout"><div class="RPTCRITERIA"><form id="Form1" method="post" runat="server">>
............controls on web form ></form></div></body>>> .css File >> BODY > { > word-spacing: normal; > font: icon; > text-transform: none; > letter-spacing: normal; > background-color: white; > } >> RPTCRITERIA > { > word-spacing: normal; > font: icon; > text-transform: none; > letter-spacing: normal; > } >
just move the BLUE declaration to the CSS's BODY, or give your BODY tag a
custom tag.
Oh, just one other thing....when you test this.... is this actually running
the site or are you just looking at the DESIGN view? The Design view doesn't
always show things accurately..... that's why I asked.
Oh, and that HTML code you gave...is that from programming or from the
VIEW-SOURCE in the browser? Show the VIEW-SOURCE to see what's rendered....
--
Curt Christianson
Owner/Lead Developer, DF-Software www.Darkfalz.com
"Mark" <an*******@discussions.microsoft.com> wrote in message
news:E0**********************************@microsof t.com... Curt,
Logic would say that your suggestion would be correct. When I re-read the
..css, I couldn't believe I had missed it but to no avail, even when I remove
that line, it doesn't take the default of the body bgcolor of steel blue
that I had set originally........which kinda confuses me further if I did
remove that item. Do I have to set that color somehow else other than in the BODY tag
because it still shows white yet when I remove the LINK reference, it goes
back to blue. Mark
----- Curt_C [MVP] wrote: -----
you have the BODY tag in the CSS set to make the background white.
Why would you think it wouldn't?
-- Curt Christianson Owner/Lead Developer, DF-Software www.Darkfalz.com
"Mark" <an*******@discussions.microsoft.com> wrote in message news:66**********************************@microsof t.com... > Hello all - >> I'm trying to incorporate a stylesheet into an ASP.Net page but
everytime I include the "LINK" code to the .css file in the HEADER location of
the HTML code, the background color that I have set (which is blue) gets
changed to white. Below is my code in the HTML of the ASP.NET page and then
my code in the .css file. Any help is sincerely appreciated as I haven't
worked with stylesheets alot in my past. >> Thanks for any thoughts, > Mark >> HTML code: >><HEAD><title>Property Sold Report Criteria</title><meta
content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"><meta content="Visual Basic
..NET 7.1" name="CODE_LANGUAGE"><meta content="JavaScript" name="vs_defaultClientScript"><meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"><LINK href="Styles.css" type="text/css" rel="stylesheet"></HEAD><body bgColor="#b0c4de" MS_POSITIONING="GridLayout"><div class="RPTCRITERIA"><form id="Form1" method="post" runat="server">>
............controls on web form ></form></div></body>>> .css File >> BODY > { > word-spacing: normal; > font: icon; > text-transform: none; > letter-spacing: normal; > background-color: white; > } >> RPTCRITERIA > { > word-spacing: normal; > font: icon; > text-transform: none; > letter-spacing: normal; > } >
Thanks to your responses Dan and Curt
In regards to the questions, I'm just looking at it in Design View after I update the .css file and the code I gave was from my development environment and not source so I will look into that as well.
I did notice that it works fine when I place it into the BODY tag but since I'm desiring that pages are different colors as backgrounds, I'd rather create a separate class in the CSS. I'm not well versed in CSS but if I create a separate class, I cannot use a DIV tag inside of the BODY to bring up the blue, right? (see below
<BODY><DIV class="RPTCRITERIA"
.............the page's control
</DIV></BODY
Sorry for all of the suggestions but thanks for all your help
Mar
----- Curt_C [MVP] wrote: ----
just move the BLUE declaration to the CSS's BODY, or give your BODY tag
custom tag
Oh, just one other thing....when you test this.... is this actually runnin
the site or are you just looking at the DESIGN view? The Design view doesn'
always show things accurately..... that's why I asked
Oh, and that HTML code you gave...is that from programming or from th
VIEW-SOURCE in the browser? Show the VIEW-SOURCE to see what's rendered...
--
Curt Christianso
Owner/Lead Developer, DF-Softwar www.Darkfalz.co
"Mark" <an*******@discussions.microsoft.com> wrote in messag
news:E0**********************************@microsof t.com.. Curt Logic would say that your suggestion would be correct. When I re-read th
..css, I couldn't believe I had missed it but to no avail, even when I remov
that line, it doesn't take the default of the body bgcolor of steel blu
that I had set originally........which kinda confuses me further if I di
remove that item Do I have to set that color somehow else other than in the BODY ta
because it still shows white yet when I remove the LINK reference, it goe
back to blue Mar ----- Curt_C [MVP] wrote: ---- you have the BODY tag in the CSS set to make the background white
Why woul you think it wouldn't -- Curt Christianso Owner/Lead Developer, DF-Softwar www.Darkfalz.co "Mark" <an*******@discussions.microsoft.com> wrote in messag news:66**********************************@microsof t.com.. Hello all I'm trying to incorporate a stylesheet into an ASP.Net page bu
everytim I include the "LINK" code to the .css file in the HEADER location o
th HTML code, the background color that I have set (which is blue) get
change to white. Below is my code in the HTML of the ASP.NET page and the
my cod in the .css file. Any help is sincerely appreciated as I haven'
worke with stylesheets alot in my past Thanks for any thoughts Mar HTML code <HEAD><title>Property Sold Report Criteria</title><met
content="Microsof Visual Studio .NET 7.1" name="GENERATOR"><meta content="Visual Basi
..NE 7.1" name="CODE_LANGUAGE"><meta content="JavaScript name="vs_defaultClientScript"><met content="http://schemas.microsoft.com/intellisense/ie5 name="vs_targetSchema"><LINK href="Styles.css" type="text/css rel="stylesheet"></HEAD><body bgColor="#b0c4de MS_POSITIONING="GridLayout"><div class="RPTCRITERIA"><form id="Form1 method="post" runat="server">
............controls on web for</form></div></body>>> .css Fil BOD
word-spacing: normal font: icon text-transform: none letter-spacing: normal background-color: white
RPTCRITERI
word-spacing: normal font: icon text-transform: none letter-spacing: normal }
Figured it out......created BODY.RPTCRITERIA in the CSS and then referred to it in the BODY tag and the colors differ fine now. Thanks for the help.
Mark
----- Mark wrote: -----
Thanks to your responses Dan and Curt.
In regards to the questions, I'm just looking at it in Design View after I update the .css file and the code I gave was from my development environment and not source so I will look into that as well.
I did notice that it works fine when I place it into the BODY tag but since I'm desiring that pages are different colors as backgrounds, I'd rather create a separate class in the CSS. I'm not well versed in CSS but if I create a separate class, I cannot use a DIV tag inside of the BODY to bring up the blue, right? (see below)
<BODY><DIV class="RPTCRITERIA">
.............the page's controls
</DIV></BODY>
Sorry for all of the suggestions but thanks for all your help.
Mark
----- Curt_C [MVP] wrote: -----
just move the BLUE declaration to the CSS's BODY, or give your BODY tag a
custom tag.
Oh, just one other thing....when you test this.... is this actually running
the site or are you just looking at the DESIGN view? The Design view doesn't
always show things accurately..... that's why I asked.
Oh, and that HTML code you gave...is that from programming or from the
VIEW-SOURCE in the browser? Show the VIEW-SOURCE to see what's rendered....
--
Curt Christianson
Owner/Lead Developer, DF-Software www.Darkfalz.com
"Mark" <an*******@discussions.microsoft.com> wrote in message
news:E0**********************************@microsof t.com... Curt, Logic would say that your suggestion would be correct. When I re-read the
..css, I couldn't believe I had missed it but to no avail, even when I remove
that line, it doesn't take the default of the body bgcolor of steel blue
that I had set originally........which kinda confuses me further if I did
remove that item. Do I have to set that color somehow else other than in the BODY tag
because it still shows white yet when I remove the LINK reference, it goes
back to blue. Mark ----- Curt_C [MVP] wrote: ----- you have the BODY tag in the CSS set to make the background white.
Why would you think it wouldn't? -- Curt Christianson Owner/Lead Developer, DF-Software www.Darkfalz.com "Mark" <an*******@discussions.microsoft.com> wrote in message news:66**********************************@microsof t.com... Hello all - I'm trying to incorporate a stylesheet into an ASP.Net page but
everytime I include the "LINK" code to the .css file in the HEADER location of
the HTML code, the background color that I have set (which is blue) gets
changed to white. Below is my code in the HTML of the ASP.NET page and then
my code in the .css file. Any help is sincerely appreciated as I haven't
worked with stylesheets alot in my past. Thanks for any thoughts, Mark HTML code: <HEAD><title>Property Sold Report Criteria</title><meta
content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"><meta content="Visual Basic
..NET 7.1" name="CODE_LANGUAGE"><meta content="JavaScript" name="vs_defaultClientScript"><meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"><LINK href="Styles.css" type="text/css" rel="stylesheet"></HEAD><body bgColor="#b0c4de" MS_POSITIONING="GridLayout"><div class="RPTCRITERIA"><form id="Form1" method="post" runat="server">>
............controls on web form</form></div></body>>> .css File BODY { word-spacing: normal; font: icon; text-transform: none; letter-spacing: normal; background-color: white; } RPTCRITERIA { word-spacing: normal; font: icon; text-transform: none; letter-spacing: normal; } This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Louise |
last post by:
Hi
I have written an HTML pages which does not have any colour specifying
tags as far I know. When I view this in an Microsoft internet
explorer browser it appears with a white background and...
|
by: Chris Beall |
last post by:
I'm displaying an image that is also a link against a black background.
In Netscape 7.1, the current background color is displayed as a
horizontal bar below the image. This allows :hover effects...
|
by: Dan V. |
last post by:
I have tried a number of things including preloading, but the background
image (water tile in header) in IE 6 will not display where other browsers
will....
|
by: jcrouse |
last post by:
I am using the following code to get a background image for my form
Private Sub mnuBgroundImage_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuBgroundImage.Clic
If...
|
by: Flack |
last post by:
Hey guys,
Here is the scenario:
I have the main form open and a background thread is running. The
background thread sometimes needs access to the main forms graphics object
and gets it by...
|
by: Rich |
last post by:
I have a simple vb2005 app (for testing). It is just a simple winform with
one button that brings up a message box. When I invoke the app and click on
the button, the message box comes up OK. ...
|
by: Jim in Arizona |
last post by:
I created a public application based variable not within any procedure,
like so:
Partial Class lobbytimes_lobbytimes
Inherits System.Web.UI.Page
Public BackgroundImage As String
Protected...
|
by: Carson Park Ranger |
last post by:
Greetings. we're new here.
We're trying to figure out why our black (customer's idea) background works in IE, but doesn't show in Firefox.
Any help would be greatly appreciated.
|
by: =?Utf-8?B?Sm9obk1TeXJhc29mdA==?= |
last post by:
I've got a Windows Forms application. There is a form that may be shown by
clicking a command button on either of 2 other forms. I use ShowDialog in
all cases to get modal behavior. When the app...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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...
|
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,...
|
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,...
|
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...
| |