Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: background in <readmore> tags

by John M. Dlugosz (Monsignor)
on Jun 08, 2009 at 15:12 UTC ( #769581=note: print w/ replies, xml ) Need Help??


in reply to Re: background in <readmore> tags
in thread background in <readmore> tags

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


Comment on Re^2: background in <readmore> tags
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://769581]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2014-09-17 02:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (56 votes), past polls