li text formating in CSS

Posted on 2009-12-27
Medium Priority
Last Modified: 2012-05-08
Hi Experts,
I am putting together a simple page with a bunch of text including  a ul with 4 li lines.  In the css I have
p, h1, h2, h3 {
      font-family:Arial, Helvetica, sans-serif;
 as the first entry.   It works great for the text on the page but it doesn't seem to affect the li text.

How can I inlcude the ul & li elements in the default font family declaration?


Question by:HelpNearMe
  • 2
LVL 61

Accepted Solution

HainKurt earned 1000 total points
ID: 26129097
just use

body {
  font-family:Arial, Helvetica, sans-serif;

it will be applied for all elements

and add this if you want to have different font for, say li elements

body {
  font-family:times new roman, corier;
LVL 61

Expert Comment

ID: 26129100
sory the second part should be

li {
  font-family:times new roman, corier;

so all elemenst will be arial, but li will be times new roman...

Author Closing Comment

ID: 31670277

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Find out what you should include to make the best professional email signature for your organization.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question