Questions tagged [background-color]
"background-color" is a CSS property used to define the background color of an element. Tag these questions with "css" also.
3,491
questions
1
vote
1
answer
30
views
Create a LaTeX style table in Markdown with colors
I want to create a table like this in Rmarkdown:
and this website can generate codes to create a similar table in LaTeX which can be used in Rmarkdown. However, after generating the code and copying ...
0
votes
2
answers
42
views
Change color depending on background image
So I have this problem, I have a menu with links in it and a picture that follows the curosor and go behind the links. But when the image goes behind the links the links are not visible enough due to ...
-1
votes
0
answers
60
views
How can I change background color of div when I click it? [closed]
I want to change the background color of a div when I click it (without buttons) by changing the class. For example, .red > .orange ....... > .purple
I don't know how to make appropriate ...
0
votes
1
answer
51
views
In a Excel file how to find the background color of a cell using openpyxl (Python)
`wb = openpyxl.load_workbook('file.xlsx',data_only=True)
fs_count_row = fs.max_row
fs_count_col = fs.max_column
for a in range(1,fs_count_row):
cell_color = fs.cell(column=1, row=a)
bgColor =...
1
vote
1
answer
50
views
Inkwell changes widget background color to the splash color, Flutter
Inkwell changes my widget background color to the splash color after doing a fast double tap directly after a tap, the splash starts to get bigger slowly until it fills the widget container, and then ...
1
vote
2
answers
50
views
Background color not change TextEditor view
//.........some other views........
ZStack(alignment: .leading ) {
Color.black.ignoresSafeArea()
TextEditor(text: $mytext)
.background(...
0
votes
2
answers
26
views
CSS - Change accordion color when open and unchanged when closed
I am trying to create an accordion inspire into this one. I want it to change the color of the text and from the background when the accordion is open, and unchanged when it is closed.
My code is this,...
0
votes
2
answers
41
views
Google Sheets Script that Changes Background Color of Range to match the Hex Value in a Separate List
I have a range (S3:Z4) in a sheet called SUMMARY that I'd like to be able to set the background color of based on a hex value in a different tab (REFERENCE) of the sheet. Cell W3 of SUMMARY contains ...
0
votes
0
answers
30
views
How to set custom colors in these areas for IntelliJ?
I'm new to IntelliJ, and I'm trying to setup some custom colors, but in the IDEA, I couldn't fine where the colors are for these areas, could some one show me how to locate these colors in the setting ...
0
votes
0
answers
34
views
How to change the background color in kableExtra?
Looking for a way to set the background color.
I know how to change single elements but couldn't figure it out how to do it for the whole html document.
Any suggestions ?
-1
votes
0
answers
15
views
How to have 2 background color for a div with percentage [duplicate]
I'm trying to giv a div two backgrounds in such a way that the first(black) would fill 70% of it and the second(white) would have the remaining 30% WITHOUT FADING INTO EACH OTHER. Similar to the ...
1
vote
1
answer
31
views
No Plotting all values of X in xaxis and why there is the background grey?
I would like to get a plot with less data on xaxis. I have this very simple script. I put a 'range' for xaxis. Furthemore I would like that my background was white with contours black and not grey (...
0
votes
1
answer
36
views
Darkening background-color of React styled-component on hover
I want to make my custom div's background color change on hover. It is a styled component and the color is passed in by props. However, with the code below, the hover effect is not working.
const ...
0
votes
0
answers
27
views
Adding Second Background Color Option to Shopify Theme
I'm currently using Shopify theme "Motion" on my site and the theme settings allow me to chose one background color. I want to be able to alternate between light and dark background colors ...
0
votes
1
answer
53
views
How to get the background color of the current view in SwiftUI?
I'd like to set the gradient second color to the color of the background.
I tried to set .clear, but for some reason it becomes dark. If I use .white the radient is as expected in light mode.
The best ...
0
votes
0
answers
45
views
Dynamic Intensity of a Color with JavaScript
I've seen many people managing to work with intensity between two or three colors, but I only need one.
I have a table with a column for late dates and I only need to work with red in that case. If ...
-1
votes
0
answers
14
views
CSS: combining a color + semi-transparent white [duplicate]
I have checked dark theme advices on Material.io (link). It recommends to have different overlay surfaces to manage elevations. In figma, I simply added a semi-transparent white on top of the ...
0
votes
1
answer
27
views
Change background to a random colour via a Button
as you can read in the title, i'm trying to set the background of a frame to a random colour everytime the button is pressed. I set up a variable which holds the colours. I tested that and it does ...
0
votes
0
answers
53
views
Procedure (sub) to choose cell and assign rgb-interior.color
I would like to build a flexible sub to define the background color of cells. All five parameters should be defined outside the sub on the Excel sheet.
Up to now I only manage to define the Cells-...
0
votes
1
answer
35
views
How to change alternate items color in FlatList
I am using a FlatList which has 2 columns in one row. I want to add background colour in such a way so that 2 items in one row and same column does not have same colour.I want different colour for ...
1
vote
2
answers
43
views
How to apply linear-gradient css to generally any 2 spans that have background color overlapped with each other?
Given Situation
1 .
Say I have 2 spans, both with background-color, and one is inside another (overlapped):
<p>Alpha <span class="highlightTopic">Beta <span class="...
0
votes
1
answer
22
views
Clip path goes in front of other background
So basically i'm making html website with background and clip path, i wonder why does my clip path goes in front of every other color background.
I did it like this :
<div class="clippath1&...
0
votes
1
answer
60
views
How to put background color white in bootstrap 5?
I need some help to put my background portfolio color in white. I tried to do it by putting a global css but on both sides of the page I have a black background and I can´t change it.
return (
<...
0
votes
0
answers
22
views
I don't know all the available colors i can use as a back ground color in my program
What are all the options available as background color in my program in vs code?
I've already used darkGreen,darkYellow and darkRed, if i use one of these colors, it will not show perfectly. my ...
1
vote
2
answers
42
views
How to change the color of ElevatedButton when entering text in TextField
I have TextFild and ElevatedButton, by default TextFild is empty and ElevatedButton has one color set, when entering some text, I would like to change the color of ElevatedButton to another. I tried ...
0
votes
2
answers
41
views
I need help trying to add color to div when there is no content yet in it. Javascript adds the content as much as the user needs
I am trying to make a flashcards app. At the top is a title, some form elements that the input into them eventually makes it into the flashcard, and two buttons -- one to open the form elements to ...
0
votes
1
answer
28
views
Get the average color of an image before it loads on the page
I have javascript code that gets the average colour of an image.
But the issue now is that it doesn't work well with lazyloading.
btw I found a similar question here on StackOverflow but mine is a ...
0
votes
1
answer
10
views
change radar color on condition using existing js file variable
I have a radar_box div which is color #7eb6ff, i want to change the color to red if the jsonstr value in external javascript file is above 100. my code is so far doing nothing:
html:
<script ...
1
vote
1
answer
60
views
How to add color in some specific words in a text React JS?
I am developing a text area that contains some specific words(Eg. they can start/end with "%": %QWERTY%). I want these words to have a different color(E.g: Green) and the text area is still ...
0
votes
0
answers
45
views
Is there any way to change keyboard colors (especially for dark mode) for Android using React native?
Is there any way to change the keyboard colors (especially for dark mode) for Android using React native? iOS allow to do this.
Maybe it can be done changing default Android color scheme, I don't know ...
1
vote
3
answers
46
views
Smooth transition of background-color
I have a problem with the color transition on my site.
Basically, I want to transition from a black background-color to white but I want it to go like on this site https://bullmade.dk/ - smooth (check ...
0
votes
0
answers
27
views
Coloring dataframe cells based on other datafame and export into excel, ValueError
I have a problem with coloring dataframe and exporting the df to excel. I have two df's with same shape and index. In the first are only numbers 0, 1, 2 and 3. The second contains various numbers and ...
0
votes
0
answers
120
views
How to resolve "An error has occurred. See error log for more details. " in Eclipse
I use Eclipse-2022-06-R in ubuntu 20.04.4 to debug stm32. I would like to change Ruler background color of Disassembly page. When I click Apply, Problem Occurred dialog comes out. It says "An ...
0
votes
4
answers
69
views
CSS: Background color on text doesn't work when the line breaks in responsive mode [duplicate]
I am trying to use a background color on text only, which works fine on single lines, but when the line breaks in responsive mode it ends up looking like this:
Does anyone know what to add to make ...
0
votes
1
answer
72
views
How to fill background color of excel rows with Python?
I' m beginner in Python.
I have a excel file.
| Name | Reg Date |
|Annie | 2021-07-01 |
|Billy | 2021-07-02 |
|Cat | 2021-07-03 |
|David | 2021-07-04 |
|Eric | 2021-07-04 |
|...
0
votes
1
answer
62
views
How to select a different argument list based on a radio button and if statements
I have a 96 well plate made from a datatable, with certain cells or rows being colored in, and a radio button that I want to control whether it is the rows or the columns that are colored.
This is ...
0
votes
2
answers
69
views
CSS to change background color in image container
Need a CSS to set the background color of image containers to white. I think my snag is how to call out the specific item to apply the CSS to. Below works on the site background but not the image ...
0
votes
0
answers
12
views
ios custom keyboard : change keyboard view background color to custom color
i have to change custom keyboard inputView backgroundColor in my project . but did not get custom keyboard inputView in project.
how to get custom keyboard inputView in project ? to change color
0
votes
2
answers
163
views
Paper background color not changing using Material UI ThemeProvider
I am creating a react frontend using Material UI. I have created a basic Paper component and I want to change its background color and set it to the primary color set in ThemeProvider. Following is my ...
2
votes
2
answers
42
views
CSS background position starting from given pixels on top?
#page {
background-image: linear-gradient(rgba(74, 131, 167, .20) 1px, transparent 1px), linear-gradient(90deg, rgba(74, 131, 167, .20) 1px, transparent 1px);
background-size: 10px 10px, ...
0
votes
0
answers
152
views
GSAP ScrollTrigger background color change animation not working well on Safari
I'm trying to make a gsap animation that switches the viewport's background color depending on your scrolling position. The animation works great on Chrome and on FireFox, but on Safari it just looks ...
-2
votes
1
answer
57
views
Javafx - Changing the color of a buttom [closed]
I am a java beginner and i tried to lock it up and tried diffrent command but none of them worked.
I want to change the Background Color of Button for example from red to green.
0
votes
0
answers
13
views
Stylising options in a datalist
I want to customize my input by changing the backgroud color of the selected option in my
datalist but it doesn't work. Could you help me please.
enter image description here
2
votes
1
answer
219
views
How to change the text color based on container background color?
I have a container that has a gradient background color with some text. I am showing the percentage at the end of the container. Depending upon the percentage, Green color should be applied from left ...
0
votes
2
answers
39
views
How to animate background-color on hovering from bottom to top and again from bottom to top [duplicate]
I am trying to animate background-color property on hovering from bottom to top and again from bottom to top when mouse is out. I have this pen, but it seems like width: 100% and height: 100% in ::...
-1
votes
1
answer
75
views
How can i add customize background color of card component of bootstrap?
As i have tried to add custom color but couldn't so now i want to add a custom background color of div
0
votes
0
answers
39
views
Background color change automatically in fragment in Android studio?
I have added the blue-alliance spectrum color picker to my simple note app. Now, I can change the background color using the color picker. And the card color also changes according to the selected ...
-1
votes
1
answer
36
views
I made my navbar fixed and now it's transparent no matter what I style the background color to be. How can I fix this?
I tried to create a fixed bar with this code, but after I created it, it became transparent even after I added a background color.
.header-nav{
width: 100%;
display: flex;
justify-content: space-...
0
votes
2
answers
287
views
How to change the color of a dataframe header with python pandas
I'm using this function to change the color of a specific cells:
def cell_colours(series):
red = 'background-color: red;'
yellow = 'background-color: yellow;'
green = 'background-color: green;'
...
1
vote
0
answers
39
views
White glitch background before turning black in React
I have a website mostly done with React-Bootstrap and I am kind of a beginner in this field. I want my background to be black in all the pages so I set it with background-color:black !important; in ...