Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   numbering lines (http://forum.bytesforall.com/showthread.php?t=20317)

RHCdG May 13, 2013 06:57 PM

numbering lines
 
Hi,

I would like to refer to specific lines in a poem as in this example (the page is in Dutch, please scroll to the bottom).

For some reason, in the Wordpress version of the same page, I can't get it right using the Word paste button in the wysiwyg editor. The numbering is off - please see the result here (again, please scroll down a bit).

As always, your help is much appreciated.

Thanks,

Rutger

juggledad May 13, 2013 07:44 PM

try this, add the following to the CSS Inserts
HTML Code:

div.post-bodycopy p {margin: 0};

RHCdG May 13, 2013 08:01 PM

Hi Juggledad,
Thanks for your reply.
It does solve the problem, miraculously I would almost say! but it makes empty lines between paragraphs on other pages disappear. In fact, the empty lines between the stanzas of the poem itself are gone too, I see now. Can you think of another trick?

juggledad May 13, 2013 08:35 PM

ID add a class to the <td> of the number so I could style off that class

RHCdG May 16, 2013 09:39 AM

Hi again, JD,

Code:

<td valign="top">
then becomes e.g.
Code:

<td valign="top" class="linenumber">
?

Code:

div.post-bodycopy p {margin: 0};
remains unchanged?

Thanks for confirming!

Rutger

juggledad May 16, 2013 10:03 AM

Your example CSS won't have any effect at all. It looks like you need to go thru a CSS tutorial.

RHCdG May 16, 2013 10:13 AM

Well, I realize that the "linenumber" class would have to be defined but I am just not sure how to do that with div.post-bodycopy p {margin: 0}; and so I am asking in a roundabout way. It would be great if you could help out.

juggledad May 16, 2013 01:53 PM

yes use
HTML Code:

<td valign="top" class="linenumber">
then try
HTML Code:

div.post-bodycopy td#linenumber p {margin: 0};

RHCdG May 16, 2013 03:18 PM

Thanks, JD, for following up. I appreciate.
Unfortunately, it doesn't work. It looks perfect in the wysiwyg editor, but the output doesn't. There are line breaks where they shouldn't be, and the numbering is not correctly aligned.
Can you think of something still?


All times are GMT -6. The time now is 03:01 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.