Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
So that displays as a green bar left of the readmore section, but not slammed up against the characters, right?

I used "inherit" rather than "transparent". But after reading the other responses on the thread, I changed it to a lighter grey that has the intended appearance.

Later: I like that much better. I changed mine to have a larger gap and lighter color.

Add a margin-left: -xx where xx is the sum of your chosen padding and border, to prevent the content from being shifted right relative to the rest. This way the text is in its normal position and the bar is in the existing left margin.

My current settings:

tr.reply-body ul.indent font[size="2"] { font-size: 100% } div.readmore { background-color: inherit; padding-left: 4px; border-left-width: 3px; border-left-color: #DfE; border-left-style: solid; margin-left: -7px; } textarea { width: 100% }
—John

In reply to Re^2: background in <readmore> tags by John M. Dlugosz
in thread background in <readmore> tags by John M. Dlugosz

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2024-04-18 17:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found