This is a migrated thread and some comments may be shown as answers.

List Functionality within Table

1 Answer 30 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 2
Alex asked on 11 Mar 2010, 06:57 PM
     Currently I am using the RadEditor ASP.NET AJAX 2010 Q1 version. I have a RadEditor and the business is dictating that they would like to have indents like on some product pages (example)

CPU                                 2.3GHz
RAM                                 4G
Hard Disk                         60GB

     Which the table functionality does. The problem is when you have to have bullet points or numbered lists within one of the columns, the spacing looks funky because when it puts the <ul> or <ol> tag in, it creates an indent. I have found a way around this by manually removing the <ul> or <ol> tag and I get a lined up version of a bullet or number list. Is there a control on the tool bar which will insert a non-indented version of either list?
     If the answer is no, then is there a way to detect whether the cursor is within a table and they click one of the list buttons to remove either the <ul> or <ol> that is being created? I just need the text to line up properly so if there is another way, please let me know, thanks!

1 Answer, 1 is accepted

Sort by
0
Accepted
robertw102
Top achievements
Rank 1
answered on 11 Mar 2010, 08:18 PM
The RadEditor is not creating indents when it inserts ol or ul elements, these elements are always indented in browsers. If you want to remove the indentation just add a style to css file used by the editor to remove the margin and padding used on ol or ul elements.

Like so:

ol, ul
{
margin:0px;
padding:0px;
}

This help topic should be of use, if you decide to go that route:


I hope that helps.
Tags
Editor
Asked by
Alex
Top achievements
Rank 2
Answers by
robertw102
Top achievements
Rank 1
Share this question
or