?
Solved

li text formating in CSS

Posted on 2009-12-27
3
Medium Priority
?
249 Views
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?

Thanks

HNM
0
Comment
Question by:HelpNearMe
  • 2
3 Comments
 
LVL 61

Accepted Solution

by:
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;
}
0
 
LVL 61

Expert Comment

by:HainKurt
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...
0
 

Author Closing Comment

by:HelpNearMe
ID: 31670277
thanks!
0

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