Style Sheets

J

Jerry Camel

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
 
K

Karl Seguin

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
 
J

Jerry Camel

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top