473,396 Members | 1,866 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,396 software developers and data experts.

CSS Style Sheets

Hello.
How can I specify CSS Style for the controls (CSS is in external CSS file)?
Nov 18 '05 #1
5 1398
<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
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
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
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
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
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
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
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
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
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
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
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...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
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
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
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
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.