473,796 Members | 2,737 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Issue with skins and style sheets (CSS)

Hi,

Sorry for the stupid question but :-

Am I correct in thinking that a CSS style sheet file only affects HTML
elements and not asp.net controls and that the skin file is used for this?

I am trying to set up a theme and no matter what I put in the CSS file, it
doesn't seem to have any effect on my pages.

Regards
Mike
Apr 20 '06 #1
6 1342
Mike,

asp.net controls render as html elements. Viewing html source of the page
(available on mouse rightclick) will help you to understand what html your
controls produce.

Eliyahu

"Mike Grace" <no************ **@xxx.xxx> wrote in message
news:uu******** ******@TK2MSFTN GP02.phx.gbl...
Hi,

Sorry for the stupid question but :-

Am I correct in thinking that a CSS style sheet file only affects HTML
elements and not asp.net controls and that the skin file is used for this?

I am trying to set up a theme and no matter what I put in the CSS file, it
doesn't seem to have any effect on my pages.

Regards
Mike

Apr 20 '06 #2
Thanks for the info, but it doesn't seem to help.

I have looked at the source and I have set a css element to change a colour
but nothing seems to happen.

Mike
"Eliyahu Goldin" <re************ *@monarchmed.co m> wrote in message
news:uL******** ******@TK2MSFTN GP03.phx.gbl...
Mike,

asp.net controls render as html elements. Viewing html source of the page
(available on mouse rightclick) will help you to understand what html your
controls produce.

Eliyahu

"Mike Grace" <no************ **@xxx.xxx> wrote in message
news:uu******** ******@TK2MSFTN GP02.phx.gbl...
Hi,

Sorry for the stupid question but :-

Am I correct in thinking that a CSS style sheet file only affects HTML
elements and not asp.net controls and that the skin file is used for
this?

I am trying to set up a theme and no matter what I put in the CSS file,
it doesn't seem to have any effect on my pages.

Regards
Mike


Apr 20 '06 #3
What control are you trying to style and how?

Eliyahu

"Mike Grace" <no************ **@xxx.xxx> wrote in message
news:uq******** ******@TK2MSFTN GP05.phx.gbl...
Thanks for the info, but it doesn't seem to help.

I have looked at the source and I have set a css element to change a
colour but nothing seems to happen.

Mike
"Eliyahu Goldin" <re************ *@monarchmed.co m> wrote in message
news:uL******** ******@TK2MSFTN GP03.phx.gbl...
Mike,

asp.net controls render as html elements. Viewing html source of the page
(available on mouse rightclick) will help you to understand what html
your controls produce.

Eliyahu

"Mike Grace" <no************ **@xxx.xxx> wrote in message
news:uu******** ******@TK2MSFTN GP02.phx.gbl...
Hi,

Sorry for the stupid question but :-

Am I correct in thinking that a CSS style sheet file only affects HTML
elements and not asp.net controls and that the skin file is used for
this?

I am trying to set up a theme and no matter what I put in the CSS file,
it doesn't seem to have any effect on my pages.

Regards
Mike



Apr 20 '06 #4
For example an asp:dropdownlis t control

I must be specifying it incorrectly in the style sheet.

Also, I don't know how to change the disabled colour of a checkbox.
Mike

"Eliyahu Goldin" <re************ *@monarchmed.co m> wrote in message
news:%2******** ********@TK2MSF TNGP02.phx.gbl. ..
What control are you trying to style and how?

Eliyahu

"Mike Grace" <no************ **@xxx.xxx> wrote in message
news:uq******** ******@TK2MSFTN GP05.phx.gbl...
Thanks for the info, but it doesn't seem to help.

I have looked at the source and I have set a css element to change a
colour but nothing seems to happen.

Mike
"Eliyahu Goldin" <re************ *@monarchmed.co m> wrote in message
news:uL******** ******@TK2MSFTN GP03.phx.gbl...
Mike,

asp.net controls render as html elements. Viewing html source of the
page (available on mouse rightclick) will help you to understand what
html your controls produce.

Eliyahu

"Mike Grace" <no************ **@xxx.xxx> wrote in message
news:uu******** ******@TK2MSFTN GP02.phx.gbl...
Hi,

Sorry for the stupid question but :-

Am I correct in thinking that a CSS style sheet file only affects HTML
elements and not asp.net controls and that the skin file is used for
this?

I am trying to set up a theme and no matter what I put in the CSS file,
it doesn't seem to have any effect on my pages.

Regards
Mike



Apr 20 '06 #5
A ddl renders as an html select. If you wish to apply a style to all ddls,
you should make a css rule for select. Alternatively you can use CssClass
property.

I am not sure if browsers support changing the disabled colors for
checkboxes.

Eliyahu

"Mike Grace" <no************ **@xxx.xxx> wrote in message
news:u%******** ********@TK2MSF TNGP05.phx.gbl. ..
For example an asp:dropdownlis t control

I must be specifying it incorrectly in the style sheet.

Also, I don't know how to change the disabled colour of a checkbox.
Mike

"Eliyahu Goldin" <re************ *@monarchmed.co m> wrote in message
news:%2******** ********@TK2MSF TNGP02.phx.gbl. ..
What control are you trying to style and how?

Eliyahu

"Mike Grace" <no************ **@xxx.xxx> wrote in message
news:uq******** ******@TK2MSFTN GP05.phx.gbl...
Thanks for the info, but it doesn't seem to help.

I have looked at the source and I have set a css element to change a
colour but nothing seems to happen.

Mike
"Eliyahu Goldin" <re************ *@monarchmed.co m> wrote in message
news:uL******** ******@TK2MSFTN GP03.phx.gbl...
Mike,

asp.net controls render as html elements. Viewing html source of the
page (available on mouse rightclick) will help you to understand what
html your controls produce.

Eliyahu

"Mike Grace" <no************ **@xxx.xxx> wrote in message
news:uu******** ******@TK2MSFTN GP02.phx.gbl...
> Hi,
>
> Sorry for the stupid question but :-
>
> Am I correct in thinking that a CSS style sheet file only affects HTML
> elements and not asp.net controls and that the skin file is used for
> this?
>
> I am trying to set up a theme and no matter what I put in the CSS
> file, it doesn't seem to have any effect on my pages.
>
>
>
> Regards
>
>
> Mike
>



Apr 20 '06 #6
I did try this and it didn't make any difference.

Perhaps the .skin went over the top of it?

Tomorrow I will try it again and if it still doesn't work, then I will post
my css file.

Do you need to specify the .css file in the theme at all or does ASP.NET
just use it if it is there?

Mike

"Eliyahu Goldin" <re************ *@monarchmed.co m> wrote in message
news:eO******** ******@TK2MSFTN GP03.phx.gbl...
A ddl renders as an html select. If you wish to apply a style to all ddls,
you should make a css rule for select. Alternatively you can use CssClass
property.

I am not sure if browsers support changing the disabled colors for
checkboxes.

Eliyahu

"Mike Grace" <no************ **@xxx.xxx> wrote in message
news:u%******** ********@TK2MSF TNGP05.phx.gbl. ..
For example an asp:dropdownlis t control

I must be specifying it incorrectly in the style sheet.

Also, I don't know how to change the disabled colour of a checkbox.
Mike

"Eliyahu Goldin" <re************ *@monarchmed.co m> wrote in message
news:%2******** ********@TK2MSF TNGP02.phx.gbl. ..
What control are you trying to style and how?

Eliyahu

"Mike Grace" <no************ **@xxx.xxx> wrote in message
news:uq******** ******@TK2MSFTN GP05.phx.gbl...
Thanks for the info, but it doesn't seem to help.

I have looked at the source and I have set a css element to change a
colour but nothing seems to happen.

Mike
"Eliyahu Goldin" <re************ *@monarchmed.co m> wrote in message
news:uL******** ******@TK2MSFTN GP03.phx.gbl...
> Mike,
>
> asp.net controls render as html elements. Viewing html source of the
> page (available on mouse rightclick) will help you to understand what
> html your controls produce.
>
> Eliyahu
>
> "Mike Grace" <no************ **@xxx.xxx> wrote in message
> news:uu******** ******@TK2MSFTN GP02.phx.gbl...
>> Hi,
>>
>> Sorry for the stupid question but :-
>>
>> Am I correct in thinking that a CSS style sheet file only affects
>> HTML elements and not asp.net controls and that the skin file is used
>> for this?
>>
>> I am trying to set up a theme and no matter what I put in the CSS
>> file, it doesn't seem to have any effect on my pages.
>>
>>
>>
>> Regards
>>
>>
>> Mike
>>
>
>



Apr 20 '06 #7

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

Similar topics

3
3191
by: Phil Thompson | last post by:
does it matter in which order i place different style sheets i.e. <link rel="stylesheet" type="text/css" media="screen" href="style/screen.css" /> <link rel="stylesheet" type="text/css" media="print" href="style/print.css" /> is this better than this <link rel="stylesheet" type="text/css" media="print" href="style/print.css"
1
1145
by: Griff | last post by:
We're replacing a CLASSIC ASP application. In this application, we presented a dialogue box that allowed end users to specify exactly how they wanted their screen to look. So, they could set the font size, font colour, border widths/style/colour etc, etc. This information was then held in a database. When the ASP page was loaded, it used an INCLUDE function to include a file "application.css.asp". This was effectively an ASP page...
9
2031
by: Radium | last post by:
Cascading Style Sheet is an extreme hazard to your privacy. It allows others on the internet to see your monitor and files. It allows them to copy images on your monitor to their computers. It also allows them to copy files from your computer to their's. It is dangerous. Avoid at all costs. CSS that isn't stored in the victim's computer. Instead it is stored in the perpetrator's PC. What it does is it reads everything on the victim's...
1
1397
by: Kat | last post by:
I have a master page, with a reference to a style sheet in the header, as usual: <link href="Styles.css" type="text/css" rel="stylesheet" /> I have a content page, with a label on it: <asp:Label ID="lbl" runat="server" Text="Addresses" CssClass="Heading1"></asp:Label>
11
6621
by: New Bee | last post by:
Hi, I have been looking at Themes and Skins today and now resonably understand how they work at a ground level. But I have a couple of questions. 1. ) StyleSheetTheme I dont understand where this would be used. As I understand it the precidence is like this.
1
2145
by: jonathanellis | last post by:
Hello: I am having a problem with a web site that i built not showing up properly in IE6. I haven't tested it in IE7, but I have tested it in Firefox and Safari. Both Firefox and Safari show the website perfectly. Can anyone help with this? I have attached the source code for the index.html file and the style.css file. In addition to the script, I also have this uploaded to my server. It can be found at:...
0
1165
by: Med | last post by:
Hi, Since my upgrade from VWD2005 to 2008, I am getting lots of 'The class or CssClass value is not defined.' warnings for my css classes in UserControls only! To avoid these warning, I can attach style sheet to my user controls like: <link href="../App_Themes/DefaultSkin/Main.css" rel="stylesheet" type="text/css" />
5
10504
by: =?Utf-8?B?SmVycnkgQw==?= | last post by:
I have a machine running IIS 6.0. I just replaced the web.config and several aspx pages in the application and now the style sheets are not working. the images from the themes work but not the css files. Any help. -- Jerry
1
1787
by: Cramer | last post by:
According to the MSDN docs, we cannot programatically create our own themes or skins: "Page and control developers do not use the ControlSkinDelegate, ControlSkin, or PageTheme classes directly. These classes are used by the ASP.NET parser and runtime ... " (from http://msdn.microsoft.com/en-us/library/system.web.ui.pagetheme.aspx). My question: Is there really no way that we can programmatically create our own themes and have ASP.NET...
0
9685
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
10465
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
10242
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10200
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
10021
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
9061
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...
1
7558
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...
1
4127
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
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.