473,399 Members | 2,159 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,399 software developers and data experts.

Style Sheets

Perhaps this is a real newbie question, but...

A new web project in VS gives you a file called Styles.css. I wanted to
define a style for labels of input fields. So I created a new class in
Styles.css called .InputLabel and defined the attributes. I set the table
cells to use that class, but the formatting doesn't kick in. How do you get
the style sheets to work. Obvioulsy there is a step or two that I'm
missing. Thanks.
(Is there a place where you are supposed to tell the page what style.css
file to use?)

Jerry
Nov 19 '05 #1
3 1586
Well, you need to specify the styles.css in your head element like any other
stylesheet:

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

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Jerry Camel" <rl*****@msn.com> wrote in message
news:eP***************@tk2msftngp13.phx.gbl...
Perhaps this is a real newbie question, but...

A new web project in VS gives you a file called Styles.css. I wanted to
define a style for labels of input fields. So I created a new class in
Styles.css called .InputLabel and defined the attributes. I set the table
cells to use that class, but the formatting doesn't kick in. How do you
get
the style sheets to work. Obvioulsy there is a step or two that I'm
missing. Thanks.
(Is there a place where you are supposed to tell the page what style.css
file to use?)

Jerry

Nov 19 '05 #2
Got it... I'm new to style sheets...

So why do they give you a default style sheet if they don't include the link
info in the default web form?

Thanks.

Jerry

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:%2****************@TK2MSFTNGP15.phx.gbl...
Well, you need to specify the styles.css in your head element like any other stylesheet:

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

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Jerry Camel" <rl*****@msn.com> wrote in message
news:eP***************@tk2msftngp13.phx.gbl...
Perhaps this is a real newbie question, but...

A new web project in VS gives you a file called Styles.css. I wanted to
define a style for labels of input fields. So I created a new class in
Styles.css called .InputLabel and defined the attributes. I set the table cells to use that class, but the formatting doesn't kick in. How do you
get
the style sheets to work. Obvioulsy there is a step or two that I'm
missing. Thanks.
(Is there a place where you are supposed to tell the page what style.css
file to use?)

Jerry


Nov 19 '05 #3
Dunno. You can change the template though..

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Jerry Camel" <rl*****@msn.com> wrote in message
news:OV**************@tk2msftngp13.phx.gbl...
Got it... I'm new to style sheets...

So why do they give you a default style sheet if they don't include the
link
info in the default web form?

Thanks.

Jerry

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:%2****************@TK2MSFTNGP15.phx.gbl...
Well, you need to specify the styles.css in your head element like any

other
stylesheet:

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

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Jerry Camel" <rl*****@msn.com> wrote in message
news:eP***************@tk2msftngp13.phx.gbl...
> Perhaps this is a real newbie question, but...
>
> A new web project in VS gives you a file called Styles.css. I wanted
> to
> define a style for labels of input fields. So I created a new class in
> Styles.css called .InputLabel and defined the attributes. I set the table > cells to use that class, but the formatting doesn't kick in. How do
> you
> get
> the style sheets to work. Obvioulsy there is a step or two that I'm
> missing. Thanks.
> (Is there a place where you are supposed to tell the page what
> style.css
> file to use?)
>
> Jerry
>
>



Nov 19 '05 #4

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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
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...
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
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
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
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...
0
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...

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.