Forum


HomeHomePremiumPremiumAdministrationAdministrationReplacing bullet points with imagesReplacing bullet points with images
Previous
 
Next
New Post
10/16/2012 7:29 AM
 
Hello,

I am trying to replace the default bullet points with an image. I've managed to achieve this, with different images used for different indentation levels.

I had some issues, most of which I've resolved:
1) I've restricted the bullet images to display in the content area of the site using a css id within the skin. This prevents the bullet images appearing in the menu.
2) I've included some css to prevent the bullet images displaying in the toolbar of the richtexteditor.

The only problem (so far) is that neither the bullet image or default bullet point is displayed in the richtext box content area at the top level, 2nd and 3rd level bullets points display OK. No top level image or point at the top level is really confusing.

I've tried to include a line to put the default bullet back into the richtext editor only:
#document li {list-style-type: disc;}
But this doesn't work.
So how can i display the bullet images on a page but maintain some indication within the richtext editor for the top level bullet? Would prefer to display the bullet image but the default bullet point would do.

Also, are there any other issues that i need to be aware of?

My CSS is below, the comments should explain everything. Please let me know if not.

Best Regards,

Steve

/*********************************************************
BULLET POINT IMAGES
This CSS replaces the default bullet point with an image

The #skin_main id identifies the content area of the skin,
this excludes the menu.
**********************************************************/


/* Allow the default bullet point to display in the rich text editor */
#document li
{
list-style-type: disc;
}


/* Prevent the default bullet (top level) from displaying within the main skin area */
#skin_main ul
{
list-style: none;
margin:0 0 1em 0px;
padding: 0;

}

/* Set the bullet image for top level bullets and give the items some space */
#skin_main ul li
{
line-height:1.3em;
margin: .25em 0;
padding: 0 0 0 20px; /* move the text to the right of the image */
background:url(images/blockcontentbullets.png) no-repeat 0 0px;
}



/* Set the spacing for sub first level bullet lists */
#skin_main ul li ul
{
margin:0 0 1em 0px;
padding: 0;

}

/* Set the image and spacing for sub first level bullet items */
#skin_main ul li li
{
line-height:1.1em;
list-style: none;
margin: .25em 0;
padding: 0 0 0 20px;
background:url(images/postbullets.png) no-repeat 0 0px;
}


/* prevent the bullet icon displaying in the richtext editor toolbar */
.RadEditor ul li, .reDropDownBody ul li
{
background-image: url("/WebResource.axd?d=0m6u2gHLYHehT8StqhecpF5qMcyEfvEBwzRI70QwFnLj5qKLL2KbYboyDyueuVusjP_Ir-_2xAl4fTZBtcMbYqaOIa2XZtPTTAGDtkR0m0F9RY8DAhzaHHs2TiCpSj0pV5z2zP9ONUviAIM9W0CYlD49jvU1&t=634724466147830547")!important;
background-position: 0 -26px!important;
color: #000000;
background-repeat: repeat-x!important;
}
 
New Post
10/17/2012 2:30 AM
 

Hi Steve,

I didn't try that with bullet points yet, but it would be best if you check this video: what-you-see-is-NOT-what-you-get - How to show the same styles inside and outside the HTML Editor in DotNetNuke

On this video I go through the process of ensuring what you see inside the RAD editor is the same as you see outside. Follow that for the bullet points and it should work for you as well.

Cheers,

Aderson

 
New Post
10/17/2012 5:32 AM
 

Hi Aderson,

Thankyou for your reply. I've created an editor.css as the video suggests and that seems to work just fine.

But, I've found it's very difficult to create multi-level bullet pointed structures without resorting to the html tab.

Let's say I start with:

<ul>
    <li>Test 1</li>
    <li>Test 2</li>
    <li>Test 3</li>
</ul>


Then I use the richtext editor to indent the 2nd bullet (say), what I get is as follows:

<ul>
    <li>Test 1</li>
    <ul>
        <li>Test 2</li>
    </ul>
    <li>Test 3</li>
</ul>
This is obviously incorrect, the 2nd bullet should be inside the 1st bullet like this:

<ul>
    <li>Test 1
      <ul>
          <li>Test 2</li>
      </ul>
    </li>

    <li>Test 3</li>
</ul>

Is it possible to create nested bullet points with the richtext editor? 

Steve

 
New Post
10/18/2012 10:07 AM
 

Hi Steve,

I can see that this code is wrong, but I just tried it on a test site and by using the "Indent" button from the editor, it has given me the correct code.

Try that. The "Indent" button is the one with some lines and an arrow pushing them to the right.

Cheers,

Aderson

 
New Post
10/18/2012 10:21 AM
 

Hi Aderson,

Thank you for your reply, I did use the indent button.

Just tried again, I get the same result. Just using an html module to test, with DNN  6.2.

How strange. Is there something else that could effect the way it works.

Steve

 
Previous
 
Next
HomeHomePremiumPremiumAdministrationAdministrationReplacing bullet points with imagesReplacing bullet points with images



Try FREE
30 days money back guaranteed