Forum Moderators: open
I using WYSIWYG <textarea> to update my DB.
when i'm writing a list it makes it:
1.1 this is line number one...
and the continue of line number one.
1.2 this is line number two...
and the continue of line number two.
1.1 this is line number one...
....and the continue of line number one.
1.2 this is line number two...
....and the continue of line number two.
thanx in advance
Morrison.
1) You are asking about rendering output.
2) You are not outputting the data as an HTML ordered list (i.e. <ol><li></li></ol>).
One way you can fake a list style indentation with CSS is:
<html>
<head>
<title>Non-list list</title>
<style type="text/css">
.list {
margin-left: 2em;
}
.list:first-line {
margin-left: -2em;
}
</style>
</head>
<body>
<p class="list">1.1 this is line number one...<br />
and the continue of line number one.</p>
<p class="list">1.2 this is line number two...<br />
and the continue of line number two. </p>
</body>
</html>
Which works in Mozilla, but unfortunately IE doesn't do margin manipulation on the first-line pseudo-element.
Since it is likely that IE is the platform you are targeting, this bit of advice is probably only marginally helpful. ...
I did find a way to do it, it's not what i meant, but it work for me.
so in case somebody will want to do the same thing, u can do it simply by writing the text in WORD, and copy/paste it to the WYSIWYG <textarea>, and it will paste it exaxly in the same layout it was in the WORD document.
Morrison.