Free Republic
Browse · Search
General/Chat
Topics · Post Article

Skip to comments.

How to I make CSS to make the background of my replies light green?
8/13/2020 | me

Posted on 08/13/2020 4:40:50 AM PDT by ChuckR163

I have Firefox with Stylus. Stylus allows me to change styling, including background colors, of certain elements on a page via CSS. I can then apply this CSS to one site only, like Freerepublic.com.

I'm able to change the background color of my username on this site in a reply like this:

a[href*="chuckr163"]
  { background-color: #99d78b !important; 
}

But how do I change the background color of my whole reply but not anyone else's reply? All replies have a CSS selector of "div.a2" but I don't want to color all replies, just my own replies.

Thank you!


TOPICS: Computers/Internet; Free Republic Policy/Q&A
KEYWORDS: anothervanity; css; freerepublic; howtoimake; vanity
Navigation: use the links below to view more comments.
first 1-2021-4041-42 next last

1 posted on 08/13/2020 4:40:50 AM PDT by ChuckR163
[ Post Reply | Private Reply | View Replies]

To: ChuckR163

Call Bill Gates


2 posted on 08/13/2020 4:42:38 AM PDT by dp0622 (Patriots: Better stand tall when they're calling you out. Don't bend, don't brweak, don't back down.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ChuckR163

The obligatory...”Are you logged in?”.


3 posted on 08/13/2020 4:55:01 AM PDT by moovova
[ Post Reply | Private Reply | To 1 | View Replies]

To: dp0622; ChuckR163
Best I can do.


4 posted on 08/13/2020 4:58:51 AM PDT by Larry Lucido
[ Post Reply | Private Reply | To 2 | View Replies]

To: ChuckR163
The bigger question is; why would you want to subject everyone to seeing a nasty sherbert/sherbet green background on all your posts?

https://www.colorhexa.com/99d78b

5 posted on 08/13/2020 5:02:19 AM PDT by Pollard (whatever)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ChuckR163

id be very surprised if you could use css of fr. I used to use the span html tag to do something similar.


6 posted on 08/13/2020 5:03:25 AM PDT by Theophilus (we will remember the name of the Lord our God)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Pollard
The bigger question is; why would you want to subject everyone to seeing a nasty sherbert/sherbet green background on all your posts?
This would not affect anyone that views the web page but me. That's how Stylus works.
7 posted on 08/13/2020 5:05:07 AM PDT by ChuckR163 (http://qmap.pub, http://qanon.pub)
[ Post Reply | Private Reply | To 5 | View Replies]

To: ChuckR163

I’m not familiar with it, but you’ve already figured out “selectors” from glancing at their instructions. If you combine that logic with “conditionals” and “iterations”, you might can build up a list of all posting blocks, and then spit out a color when the posting block matches your name. Assuming that’s possible, it’ll take a bit of finagling.


8 posted on 08/13/2020 5:10:24 AM PDT by TheZMan (I am a secessionist.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Pollard

It would only be visible to him.


9 posted on 08/13/2020 5:10:50 AM PDT by TheZMan (I am a secessionist.)
[ Post Reply | Private Reply | To 5 | View Replies]

To: Pollard

Lol...


10 posted on 08/13/2020 5:15:49 AM PDT by Openurmind (The ultimate test of a moral society is the kind of world it leaves to its children. ~ D. Bonhoeffer)
[ Post Reply | Private Reply | To 5 | View Replies]

To: ChuckR163

I think he was being funny. :)


11 posted on 08/13/2020 5:17:13 AM PDT by Openurmind (The ultimate test of a moral society is the kind of world it leaves to its children. ~ D. Bonhoeffer)
[ Post Reply | Private Reply | To 7 | View Replies]

To: ChuckR163
This is where I go for all questions related to HTML or CSS:

https://www.w3schools.com/
12 posted on 08/13/2020 5:17:28 AM PDT by Dan in Wichita
[ Post Reply | Private Reply | To 1 | View Replies]

To: ChuckR163

So, you’re asking for a ‘Light Green’ New Deal?....................


13 posted on 08/13/2020 5:21:48 AM PDT by Red Badger (Jesus said "There is no marriage in Heaven." That's why they call it Heaven............)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ChuckR163

Put it in a frame.


14 posted on 08/13/2020 5:24:51 AM PDT by Delta 21 (Be strong & prosper, be weak & die! Stay true.... ~~ Donald J. Trump)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Red Badger
So, you’re asking for a ‘Light Green’ New Deal?....................
I fart in the general direction of any Commie Green New Deal.
15 posted on 08/13/2020 5:25:02 AM PDT by ChuckR163 (http://qmap.pub, http://qanon.pub)
[ Post Reply | Private Reply | To 13 | View Replies]

To: ChuckR163
This does NOT work for some reason:

< html>

< head>

< style>

body {background-color:grey;}

< /style>

< /head>

< body>

< p>test test test background

< /body>

< /html>

16 posted on 08/13/2020 5:31:38 AM PDT by central_va (I won't be reconstructed and I do not give a damn...)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ChuckR163

Questions? Yea I’ve got questions! Why can’t I stay logged on to FR? That new security feature logs me out every time I close the viewer.no matter what level of security I choose I’m randomly logged off FR, while at home, or traveling. It would be nice not to have to log back in each time I open Safari to read FR. luckily my face recognition saves my username and password, but C’mon man! I’m wasting time logging in when I could be reading great FR responses!
iPhone XR
Safari explorer.


17 posted on 08/13/2020 5:32:17 AM PDT by 9422WMR (Scamdemic 2020)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ChuckR163

You’re an old timer here, you should remember all the chaos those nasty italians used to create here.....


18 posted on 08/13/2020 5:36:11 AM PDT by Hot Tabasco
[ Post Reply | Private Reply | To 1 | View Replies]

To: 9422WMR

A pastor once told me that the answer to a “Why?” question is always “because you sin”.


19 posted on 08/13/2020 5:36:53 AM PDT by AppyPappy (How many fingers am I holding up, Winston?)
[ Post Reply | Private Reply | To 17 | View Replies]

To: 9422WMR

Know what? I think that might be a Safari/Apple problem. I am fighting that very same issue right now with one of the members on my website. She is the only one using Safari on an apple mobile device... ipad. And this is happening to her a lot.

I have done everything I can with the site yet it is still happening. And only to her with the Safari and the apple device. The “remember me” will not work for her at all, and even page changes kick her out. So I am now leaning heavily towards the problem being on her end and browser.


20 posted on 08/13/2020 5:48:25 AM PDT by Openurmind (The ultimate test of a moral society is the kind of world it leaves to its children. ~ D. Bonhoeffer)
[ Post Reply | Private Reply | To 17 | View Replies]


Navigation: use the links below to view more comments.
first 1-2021-4041-42 next last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
General/Chat
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson