Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: background in tags

by ambrus (Abbot)
on Jun 05, 2009 at 20:00 UTC ( #768913=note: print w/replies, xml ) Need Help??

in reply to background in <readmore> tags

I don't like the changed background either, and I had sucessfully turned it off. The relevant section from my user css in Display settings is this. Note "transparent".

div.readmore { background-color: transparent; padding-left: 2px; borde +r-left-width: 2px; border-left-color: #080; border-left-style: solid +}

Replies are listed 'Best First'.
Re^2: background in <readmore> tags
by John M. Dlugosz (Monsignor) on Jun 08, 2009 at 15:12 UTC
    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% }

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://768913]
[Corion]: Yeah - I have either to come up with a better search query or simply steal the template of some other file download site... I'm thinking of turning the JSON for Strawberry Perl releases into a small website that offers the files for download, with a ...
[Corion]: ... separate page per release, and potentially RSS for the versions

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2017-02-28 08:38 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (398 votes). Check out past polls.