Most voted "css" questions
Cascading Style Sheets (or simply CSS) is a style language used to define the presentation of documents written in a markup language, such as HTML or XML. Its main benefit is to provide the separation between the format and content of a document.
Learn more…8,314 questions
Sort by count of
-
0
votes0
answers16
views -
0
votes1
answer116
viewsJavascript and css popup window
I’m making some cards that when I click in it shows in the middle of the screen a popup with the inlays of each card , I did a function in javascript , card 1 worked well , but card 2 it opens the…
-
0
votes2
answers76
viewsDelete table row through an ID
In my table the rows are entered through Javascript with an ID that is the same ID filled in the form, and these lines include a recycle bin icon that I captured as let botaoExcluir =…
-
0
votes0
answers21
viewslinear-gradient(); and
I’m good with CSS but I still have a question as to background color Linear-gradient only it didn’t stay 100% it keeps repeating depending on the size. body{ background:…
-
0
votes1
answer560
viewsFunction calculation with Javascript Return
I am developing a calculation that adds interest according to the number of installments, but it is returning the wrong amount. <!DOCTYPE html> <html> <head> <meta…
-
0
votes1
answer39
viewsModify a function while maintaining its functionality
I have a function that performs a search for the entries of the table already created, but there is a condition that leaves the code strange and I even did not understand the reason for this IF. The…
-
0
votes2
answers993
viewsLimit image size
I have a news listing and I would need all images to be limited by one height, but I can’t define a specific value, otherwise the image can stretch. All images should be the same size and width. You…
cssasked 7 years, 2 months ago Felipe Viero Goulart 3,693 -
0
votes0
answers11
viewsInteractions with progress bar
I created a progress bar and I wanted to know how I do so I can interact with it. Example: I click on a button and the progress bar goes up to x% each time I click on that button. How do I do that?…
-
0
votes0
answers93
viewsHow to change the color of the mat-label in a mat-form-field
I need to change the color of my mat-label, but when I change by css using the "! Important", I lose the red color when my field is invalid.. how to change the color of my label without losing the…
-
0
votes2
answers65
viewsDisplay script variable value in HTML
I created a basic script to generate a random value from 1 to 100. But when I opened the html in which I created the script it only appeared on the page’s console and not on the page I created. How…
-
0
votes1
answer49
viewsAnimation in Automatic Scroll by clicking on an Anchor
Hello folks I’m having a question with animation automatic scrolling with the redirect to the Anchor in the Html on the same page I tried several alternatives here the site did not work. Among them…
-
0
votes1
answer76
viewsProblem with width of components with form-inline bootstrap
I am building a form and I am having trouble organizing the form components the way I would like. When I use the class col-md bootstrap components are getting all messed up and when I move the size…
-
0
votes1
answer110
viewsPositioning of components in ASP.NET MVC
I’m having a hard time positioning components in css, in this project I’m using the bootstrap techniques to make a form, and as picture below I can’t leave the centered components right in a row…
-
0
votes0
answers19
viewsHow to make CSS of a div with both sides tilt? As image:
I would like to do this effect for division of section, some direction?…
-
0
votes1
answer89
viewsCSS formatting does not apply in HTML2PDF plugin
I’m using the plugin html2pdf, but when trying to use formatting CSS: table { line-height: 10px } The same is not applied, I found nothing in the plugin documentation, someone knows how to fix it?…
cssasked 7 years, 2 months ago Marcos Henzel 797 -
0
votes2
answers54
viewsDelay error in transition
I’m doing a CSS animation with Hover, but a problem has arisen, when giving the item the Hover, it first performs the transition in the first element within itself, and after that, it makes the…
-
0
votes1
answer27
viewsSlide made using html and css does not fill the page width
I’m trying to fill the screen with the slides, but I can’t. I’m using gallery.css to create the slides,I tried to modify the css, but the name of the class that is used for the gallery to work, HTML…
-
0
votes1
answer47
views -
0
votes1
answer1224
viewsHow to call an ID in HTML more than once?
How to call an id more than once ? <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <!DOCTYPE html> <html> <head> <meta…
-
0
votes1
answer28
viewsI cannot insert a linear gradient in the black color
I’m trying to make the linear gradient effect to leave the bottom of the image with black "gradient", but when I put the command, regardless of the color I use, it turns white, follows code for…
-
0
votes1
answer550
viewsSeparate content in the CSS menu
I want to leave the links of the pages Control Drivers,Control Passengers,Control Racing, the menu a little more separate but spaced, but I’m not getting. <%@page contentType="text/html"…
-
0
votes3
answers38
viewsHow to apply style to a group of selectors
Context I have the following code <div id="id1"></div> <div id="id2"></div> How could I make that by passing the mouse on #div1 and #div2, only the #div1 stay with the green…
-
0
votes0
answers15
viewsI have a question about audio
I want to make a text that when I click plays some audio (but that does not open on another page) clicked on the word played the audio I have this doubt in html I’ve tried to make a link but when…
-
0
votes1
answer32
viewsHow to merge images in PHP
Guys , as I could join these 3 images in one to download it , my code is like this : <div class="imgtmn"> <?php echo "<img id='imgpos1' src='img/$cod.png' alt='' />"?></div>…
-
0
votes0
answers262
viewsMy Error Notice: Undefined index: file in C: xampp htdocs zayonet start.php on line 99
I have some problem with this code below. I have a form where the user has two options between simply writing a text and publishing or an image text. Unfortunately the $_FILES["file"] is being…
-
0
votes1
answer12
viewsSasscss Undefined variable using RGBA
When I try to use a variable from a file . scss, with one variable it works and another not: _templateColors.scss $blue-dark : #0277bd !important; $gray-light : #f5f5f5 !important; $gray-dark :…
-
0
votes1
answer23
viewsCreate alias for css Imports
I have a React project that uses typescript and would like to have some way to import css without putting the whole css site path. I would like to avoid such import time: @import…
-
0
votes1
answer69
viewsLaravel Controller?
How I can style an object into one array in the controller Laravel? Mapper::marker($marker['lat'], $marker['lng'],['label'=> "<div>".$marker['label']."</div>"]); Controller public…
-
0
votes1
answer526
viewsHow to make ul inline responsive?
I want to make this code responsive, but always stop being responsive when there are two lines and three columns. nav li { display: inline-block; } nav a { display: block; padding: 1em; margin:…
-
0
votes0
answers18
views -
0
votes0
answers12
viewsDoes viewport influence the use of the css touch-action attribute?
I’d like to use the pincer css (touch-action) event in a container, but I don’t know exactly why it’s not working in my container: css: .container { position:relative; top:0; left:0; z-index: 15;…
-
0
votes3
answers119
viewsHow to style the field where the options of a tag select are?
As the previous photo shows, I would like to style that spot that is marked in red. I’ve already put the following code: select option { background-color: white; border: 1px dashed red; } The…
-
0
votes1
answer12692
viewsHow to change button color with Hover over a single button (CSS)
Well, here’s my problem: I have five buttons, in horizontal order. Each one has a specific color in the Hover. When placing the mouse over any of them, all the others should take over the color the…
-
0
votes1
answer27
viewsHow to apply style to an element from the value of the same using CSS
Good afternoon, I would like to know if there is a possibility to apply style to an element from its value. for example... <p>Ola mundo</p> p(mundo){ background-color('blue') } in case…
cssasked 3 years, 9 months ago Bruno Bafilli 85 -
0
votes0
answers7
viewsHow to remove a box from an index?
Well, my question is something very simple, I’m starting now with html and php, and wanted to know about one thing, is there any way to remove this box that gets around? It appears only when I click…
-
0
votes0
answers10
viewsChange option blue color
I want to change this blue color of the option when selected <select size="4"> <option>Volvo</option> <option value="saab">Saab</option> <option…
-
0
votes1
answer70
viewsInput Submit value in two colors
My first question here... starting my studies... I have the following problem: <input type="submit" value="Enviar E-book"> I need in the Bt text, "Send" to be one color and "E-book" to…
-
0
votes1
answer87
viewsHow to show other codes within HTML?
I would like to present on a WEB page that shows other codes, for example the language documentation pages, they show code snippets... I have the idea to show you some code snippets in the same…
-
0
votes1
answer40
viewsShow date list with moving arrows?
I would like to know how to make a kind of slide with dates, with arrows on the sides if it exceeds a specific width. This is what I have. What I need is a kind of pagination system, but it doesn’t…
-
0
votes1
answer3685
viewsseparate Divs HTML
Hello! Using the bootstrap, can you tell how I can align the Divs ? (col-Md-6) ? but in the first half, I need to divide the grid in two . <div class="col-md-6"> <div class="row">…
-
0
votes0
answers354
viewsMy mobile menu is fixed at the top, but the dropdown follows his scroll, what to do?
I am creating a responsive site manually, so I created 2 menus, one to appear on the desktop and another for mobile version. These menus are not at the top, but about 150 pixels away. I decided to…
-
0
votes0
answers888
viewsSlider (Carousel) Bootstrap, How to Change Nesting
I’m starting now to mess with both site and bootstrap, I’m using wordpress tbm. Ok my doubt is the following, I wonder if it is possible to change the transition pattern animation that comes with…
-
0
votes2
answers60
viewsI would like a tip on checked, select option as I do to clear the fields if a person selects an option
Good morning I would like a tip on checked, select option as I do to clear the fields if a person selects an option <form method="post"> <input type="hidden" name="id" value="<!--#…
-
0
votes1
answer33
viewsButton that when clicked displays an image, if clicked again displays another image
All right? I’m creating a button that when clicked it displays an image, and if clicked again it goes back to the old image, at the angle, currently I’m only able to catch the first action, I can’t…
-
0
votes1
answer19
viewsI am using Sweet alert2 to display a form pucked with ajax, I need a way to close when Save, Cancel or X is clicked
The main goal here is to display the form inside the popup, so that if the user clicks cancel or the x above the popup disappears, the library used is sweetAlert2 (https://sweetalert2.github.io/)…
-
0
votes1
answer1107
viewsHow to add opacity in the bootstrap menu
I’m starting now to mess with both site and bootstrap, I’m using wordpress tbm. OK my doubt is the following, I added the standard bootstrap menu on my site, and I left it fixed at the top tbm, I…
-
0
votes1
answer37
viewsIs it possible to use display block and flex together?
I recently saw an Indian make a navigation menu using HTML,CSS,JS but what intrigued me was he used display: block and display: flex in the same element. Maybe he made a mistake because until then I…
cssasked 3 years, 4 months ago Josué Mendonça 7 -
0
votes0
answers30
viewsHow to get the text width of a textarea tag?
If in the code below the font was monospace and each character was 10px wide, the output would be 330px, the font size and type interfere with this value. <textarea>fonte monospace com 33…
-
0
votes0
answers7
viewsFlex-Basis and flex-Grow together
What is the behavior of a flex item with flex-Basis: 300px and flex-Grow: 1 inside a 600px container??? I see no use for flex-Basis in this scenario. Something happens?? <style> .container {…
-
0
votes0
answers9
viewsHow to change the color of the Chartjs Chart Colors?
Whoa, whoa, so... I’ve been working with Coreui (it’s a tamplate based on bootstrap-4 and React to create interfaces) in this, I wanted to implement a graph, and the graph from what I saw in the…