• Can anyone tell me what I would need to add to the code-pre style definition in order for it to be single spaced (no space before or after)?

    To add a default indent?

    Thanks for any pointers.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Not sure what you mean by “single-spaced”. Do you mean reset the line-height to default? Or padding/margins? Try something like:

    pre {
    margin:0 20px;
    padding:0;
    line-height:1em;
    }
    Thread Starter guygallo

    (@guygallo)

    Thanks for the suggestion. It didn’t do what I want.
    I want a hard return </p> to leave the next line immediately after, without space between the lines.

    I would have thought padding:0 is precisely what I need.

    I want each line to be a paragraph. And to have the kind of spacing between lines that you get with a NewLine rather than a Paragraph.

    I want to be able to format the indent for each line independently. (which is not possible if each line ends in a newline).

    Thread Starter guygallo

    (@guygallo)

    Line one
    Line two
    Line three
    Thread Starter guygallo

    (@guygallo)

    Well. Just did what I wanted here with the code button here.

    But that’s not what I get in the SimpleText theme I am using in WordPress.

    I get

    Line one

    Line Two

    Thread Starter guygallo

    (@guygallo)

    I’ll dig into the documentation for that theme.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Changing the Code “Pre” style in stylesheet.css’ is closed to new replies.