Questions tagged as 'css'

1
answer

CSS attribute in innerHTML, how to use it?

I have span that depending on the value I wanted it to be red for divergence and blue if the data is acceptable, I tried this way: getElementById('span').css('color', 'blue').innerHTML = <valor> But this did not work, I saw in...
asked by 22.05.2017 / 20:57
3
answers

How do I make a switch button to switch css?

I have two CSS files for the same HTML and I would like to use a switch button to switch styles. The idea is to set up a switch "default layout" "new layout". I tried this, but I did not succeed. <div class="onoffswitch"> <inpu...
asked by 10.03.2017 / 13:53
1
answer

How to align elements within a DIV to the left of it

I'd like it to look this way: .episodesContainer { width: 90%; height: auto; background: rgba(105, 203, 115, 0.5); margin-top: 40px; margin: 0 auto; display: flex; align-items: center; justify-co...
asked by 05.05.2017 / 19:44
1
answer

How to put cursor: move in a draggable div with javascript?

I have the following excerpt of a div <div class="teste" draggable="true">CONTEÚDO DA DIV</div> I would like that when I drag this div on the screen the cursor would be in default, but the problem is that only with...
asked by 03.05.2017 / 22:12
2
answers

Error "Show More" button html

I created an area on my site where it contains a small text, and a button at the end "Show More", I put two items like this, But every time I click the "Show More" button of the second item opens the first content. What could be causing this err...
asked by 13.01.2018 / 17:36
2
answers

How to put texts in progress

Hello, I have a progress , however I would like to add the percentage value in the center of it, with some more information. <progress name="progressbar" id="progressbar" class="progressbar" value="35" max="100"> &...
asked by 22.02.2017 / 00:12
3
answers

Horizontal scrollbar table

I've set up a table with CSS, but I'm having a problem when reports are opened on a phone or tablet. The table is flattened, or data is confusing. Can you put a scrollbar horizontally, and prevent the data from flattening? Follow the table...
asked by 13.02.2017 / 17:14
1
answer

Move uppercase to lowercase

I have a richfaces datatable component that returns a record from the database and this record comes in all capital letters. Example: PAULO FERNANDES DA SILVA . Would there be something I could do to edit this name with CSS to Pau...
asked by 27.10.2016 / 03:45
1
answer

CSS Setup for Dot Matrix Printer

Well, my problem is this. I am developing a web system and I use ASP.NET MVC, I was able to generate a tab where the layout I present is null . However, I was unable to set up the print correctly for a dot matrix printer. The size of the m...
asked by 31.10.2016 / 14:21
1
answer

Divs side by side header

I want to put the divs all in the heading with relative position to adapt in all resolutions. It did not work to use float in the divs. <!doctype html> <html> <head> <meta charset="utf-8"> <title>Farra Certa</t...
asked by 09.10.2016 / 00:09