Lucifer N.
Lucifer N.

Reputation: 1056

Applying style to definition lists with html/css

I am creating a personal webpage and using a definition list for my basic information. I would like to enlarge the font of the individual list headers. For example;

<dt>Current Place of Residence:</dt>
<dd>Ann Arbor, Michigan</dd>

I would like to apply style JUST to the text encapsulated by the <dt></dt> tags. I am using a linked external CSS style sheet for my page. How would I go about doing this?

Upvotes: 0

Views: 252

Answers (2)

knittl
knittl

Reputation: 265433

um, maybe I don't see your real problem, but isn't

dt { font-size:130%; /* … */ }

enough?

Upvotes: 2

Dennis
Dennis

Reputation: 482

dt {
 font-size: whatever;
 }

Definition list items can be styled just like anything else.

Upvotes: 1

Related Questions