473,385 Members | 1,392 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,385 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 1397
<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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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:
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...

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.