David19801
David19801

Reputation: 11448

css links header problem

I've made a css file with:

a:link {font-size: 24px;}
#header {font-size:8pt }

My html file contains a div with id="header" and this contains only some links. I'm trying to make the links in the header to be 8pt and the links in the rest of the document to be 24px.

How can I do this?

Upvotes: 1

Views: 82

Answers (3)

Rion Williams
Rion Williams

Reputation: 76607

Perhaps try:

#header a {font-size: 8pt;}

instead of

#header {font-size: 8pt;}

Demo

Upvotes: 3

Muhamad Bhaa Asfour
Muhamad Bhaa Asfour

Reputation: 1035

a {font-size:24pt}
#header a {font-size:8pt}

Upvotes: 0

amit_g
amit_g

Reputation: 31270

Like this

a:link {font-size: 24px;}
#header a:link {font-size:8pt }

Upvotes: 4

Related Questions