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

[Solved] adjusting the tag [p]

3 Answers 69 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Roberto
Top achievements
Rank 1
Roberto asked on 10 Feb 2011, 12:21 PM
Hello
Where can I adjust the <p> tag in the paragraph formatting that has to look like this:

In the first line should have a drop of 10 points and in the subsequent rows, the left margin must be 0 points.
Thus:
.......... paragraph paragraph paragraph paragraph
paragraph paragraph paragraph paragraph parag.

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 10 Feb 2011, 01:48 PM
Hello Roberto,

You can use the following CSS rule inside the Editor and on your page:

p:before
{
       content: "" ;
       display: inline ;
       visibility: hidden ;
       padding: 0 15px ;
}

Note that this CSS rule is not supported by IE7 and IE6. Here is how to import the above styles inside the component's editable area:

http://www.telerik.com/help/aspnet-mvc/telerik-ui-components-editor-defining-custom-styles.html#Stylesheets


All the best,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Roberto
Top achievements
Rank 1
answered on 11 Feb 2011, 12:03 PM
Works perfectly in Chrome and FF. But as you said, in IE6, IE7 and IE8, it does not work. Unfortunately all of the company's infrastructure uses IE, and in most cases, IE8. Is there any way to achieve this effect in IE?
Congratulations for the quick response to our questions.
0
Dimo
Telerik team
answered on 14 Feb 2011, 09:17 AM
Hi Roberto,

The suggested approach works in IE8.

Indeed, there is a simpler way to achieve the desired behavior and it works in all browsers:

p
{
    text-indent: 30px ;
}

Kind regards,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Editor
Asked by
Roberto
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Roberto
Top achievements
Rank 1
Share this question
or