| | |
css - font issue
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Apr 2007
Posts: 46
Reputation:
Solved Threads: 1
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...
you're help is highly appreciated
css Syntax (Toggle Plain Text)
body, h1, h2, h3, form { font: 10px tahoma, arial, sans-serif; margin: 0; padding: 0; color: #5C5C5C; }
you're help is highly appreciated
Last edited by peter_budo; Nov 29th, 2008 at 6:21 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
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;}
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;}
" Of all the things I've lost,
I miss my mind the most...."
Mark Twain
I miss my mind the most...."
Mark Twain
![]() |
Similar Threads
- General rules when working with divs and css. (HTML and CSS)
- Z-index and Dreamweaver CS3 Issue (HTML and CSS)
- CSS Column height issue (HTML and CSS)
- Layout issue (HTML and CSS)
- Navbar Transparency Issue (JavaScript / DHTML / AJAX)
- Trying to use not tables, only CSS, but can I? (HTML and CSS)
- Firefox and IE padding issue. (HTML and CSS)
- Silly rows in table issue (HTML and CSS)
Other Threads in the HTML and CSS Forum
- Previous Thread: what is the difference between html and css?
- Next Thread: button text...
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization perl pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7 xml xsl





