hello everyone, i hope you could help me with this simple yet confusing css problem.. I want to have a three header - h1, h2, h3 to be in different font style... one is tahoma, arial and sans-serif.... how can i do that by calling the css below...

body, h1, h2, h3, form {
	font: 10px tahoma, arial, sans-serif;
	margin: 0;
	padding: 0;
	color: #5C5C5C;
}

you're help is highly appreciated

Member Avatar for Rhyan

You can't doing it using this code.
The css style you provided is useful when you want to define some general attributes for multiple tags.

In order to achieve yours, you have to explicitly specify the font family for each h# element.
you should do it like this
h1 {font-family: Tahoma;} - you can omit this definition, as it has been already defined in your general definitions.
h2 {font-family: Arial;}
h3 {font-family: sans-serif;}

you can give different classes or different fonts, with using important tag

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.