• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 436
  • Last Modified:

Difine <ul> style within a div.

Hi All,

I have a  div (id="AA_ArContent_Div") and within this div there is dynamic content generated from and online wysiwyg. I would like to define how an <ul> is displayed within this content. Other <ul> outside of this div must remain as is.

<div id="AA_ArContent_Div">
<%=strPageContent%>
</div>

I have tried adding this to the CSS file which is linked by this page:

#AA_ArContent_Div li {
      list-style-image: url(../Section_Images/bullet4.gif);
      font-weight: bold;
      }

This does NOT work...  any help much appreciated.

Kind regards

Abiel M de Groot Sanders
0
Abiel de Groot
Asked:
Abiel de Groot
  • 3
  • 2
1 Solution
 
kswathiCommented:
Write your class as below:

#AA_ArContent_Div ul li {
      list-style-image: url(../Section_Images/bullet4.gif);
      font-weight: bold;
 }

hope it helps
0
 
p_nutsCommented:
or even

#AA_ArContent_DIV > UL > li

or give the UL a seperate ID or class to call it directly .
0
 
Abiel de GrootDeveloperAuthor Commented:
Many thanks... That did it.

A
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Abiel de GrootDeveloperAuthor Commented:
@kswathi

How would I define the style of links within the sane div?

A.
0
 
kswathiCommented:
for anchors within li

#AA_ArContent_Div ul li a {
/*your properties */

}

#AA_ArContent_Div ul li a:hover {
/*your properties */

}
0
 
Abiel de GrootDeveloperAuthor Commented:
many thanks

A.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now