English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hi, im just learning CSS and I have no clue why this isn't working. The external css style sheet has

.nav {
text-weight:bold;
text-size:3em
}

and the html code has



But they are not showing up bold, they are still showing up as regular text, can anyone tell me what I am doing wrong?

2007-04-27 11:30:27 · 3 answers · asked by Kristine R 4 in Computers & Internet Programming & Design

3 answers

Try font-weight instead of text-weight (no such thing as text-weight!) Same for font-size!

2007-04-27 11:35:59 · answer #1 · answered by fjpoblam 7 · 1 0

Change your code to such:
.nav {
font-weight: bold;
font-size: 3em;
}

An excellent resource for learning css is the http://www.w3schools.com.

2007-04-27 11:47:17 · answer #2 · answered by Seth M 1 · 1 0

Corrected Code:

.nav { font-weight:bold;font-size:3em;}

*note: 3em is really BIG on a page, isn't it?

2007-04-27 12:03:01 · answer #3 · answered by Michael B 3 · 0 0

fedest.com, questions and answers