473,503 Members | 3,171 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CSS Style Sheets

Hello.
How can I specify CSS Style for the controls (CSS is in external CSS file)?
Nov 18 '05 #1
5 1401
<your control>.CssClass = "<yourstylenam>";
"Dave" <da*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hello.
How can I specify CSS Style for the controls (CSS is in external CSS file)?

Nov 18 '05 #2
But what if SCC class is in separate file?

"ESPN Lover" <es**@lover.com> wrote in message
news:us*************@TK2MSFTNGP11.phx.gbl...
<your control>.CssClass = "<yourstylenam>";
"Dave" <da*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hello.
How can I specify CSS Style for the controls (CSS is in external CSS

file)?


Nov 18 '05 #3
>> But what if SCC class is in separate file?<<
1. Be sure that css file is linked to the aspx page (you know, the standard
way css files are linked in the <head> of any web ...)

2. Set the CssClass property = "YourCssClassName"
where YourCssClassName is the valid name of a css class defined in the
linked css file

HTH

GH


"Dave" <da*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...

"ESPN Lover" <es**@lover.com> wrote in message
news:us*************@TK2MSFTNGP11.phx.gbl...
<your control>.CssClass = "<yourstylenam>";
"Dave" <da*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hello.
How can I specify CSS Style for the controls (CSS is in external CSS

file)?



Nov 18 '05 #4
Use the HTML code to link in the css file.

<link rel="stylesheet" type="text/css" href="yourstyles.css">


"Dave" <da*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
But what if SCC class is in separate file?

"ESPN Lover" <es**@lover.com> wrote in message
news:us*************@TK2MSFTNGP11.phx.gbl...
<your control>.CssClass = "<yourstylenam>";
"Dave" <da*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hello.
How can I specify CSS Style for the controls (CSS is in external CSS

file)?



Nov 18 '05 #5
But when do u use
<your control>.CssClass = "<yourstylenam>";
Where?
thx
"Guadala Harry" <GM**@NoSpam.com> wrote in message
news:#X**************@TK2MSFTNGP15.phx.gbl...
But what if SCC class is in separate file?<<
1. Be sure that css file is linked to the aspx page (you know, the

standard way css files are linked in the <head> of any web ...)

2. Set the CssClass property = "YourCssClassName"
where YourCssClassName is the valid name of a css class defined in the
linked css file

HTH

GH


"Dave" <da*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...

"ESPN Lover" <es**@lover.com> wrote in message
news:us*************@TK2MSFTNGP11.phx.gbl...
<your control>.CssClass = "<yourstylenam>";
"Dave" <da*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
> Hello.
> How can I specify CSS Style for the controls (CSS is in external CSS
file)?
>
>



Nov 18 '05 #6

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

Similar topics

16
4174
by: Geoff Cox | last post by:
Hello, I publish some web pages using large fonts and would like to give the user the opportunity to print the pages using a smaller font. I believe that this is possible using different style...
2
3939
by: Luke Bellamy | last post by:
Hi, I have been looking for a way to incorperate several different style sheets into a web page (i.e cascading effect). I have looked into the @import statement which seems to do what I want but...
3
3177
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"...
12
3074
by: relaxedrob | last post by:
Hi All! I have a page with with the following style information: <link rel="stylesheet" type="text/css" href="/eEmployment/eTech.css" /> <style type="text/css"> DIV.Application {...
9
12506
by: lkrubner | last post by:
How do I get all the div's on a page? I realize in IE I can use document.all. For the other browsers, I need to get an array of all the divs on the page. getElementByTagName()?????
12
2051
by: Jarno Suni | last post by:
I want a device to use styles given for media type handheld and not the styles given for media type screen, if the device supports media types handheld and screen. Is it possible without writing...
9
2014
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...
2
1988
by: Hallvard B Furuseth | last post by:
Are there any guidelines or conventions for how to organize the preferred and alternate style sheets for a site, sheets for different media, and what titles to give them in the <link...
1
1686
by: mscertified | last post by:
Can anyone explain how references to style sheets work, I've exhausted looking in help, its all so confusing. I have three style sheets in my project under 'Style Sheets'. Only the first style...
5
10481
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...
0
7188
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
7063
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...
0
7258
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,...
0
7313
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...
1
6970
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
7441
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...
0
1489
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 ...
1
720
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
366
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...

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.