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
-
1
votes2
answers4092
viewsIcon inside the input
How do I put one icon inside of input? input: <input id="password2" class="form-control" placeholder="Enter password" name="Password" type="password" value="" ng-model="user.Password"…
-
1
votes2
answers2126
viewsHow to increase the size of the icon by hovering the mouse over a list
I’m trying to change the size of certain icons by passing the mouse. It turns out that when I move the mouse the icon even increases the size, but the same one that makes the other icons go out of…
-
1
votes0
answers58
viewsHow do I style codes?
How do I style a code ? For example: I posted this code on my blog: <?= "Olá :D"; ?> Only it will display normal, like a text, but inside the tag <pre></pre>. But my question is,…
-
1
votes1
answer1499
viewsHow to put a dropdown menu on a navigation bar using bootstrap?
I know very little about css and am having a hard time putting a dropdown menu in the navigation bar of a page. I have several links in this navigation bar and needed to open a menu with a list of…
-
1
votes1
answer377
viewsMount table with div
I have the following table in HTML <table style="width: 100%"> <tr> <td style="width: 50px"> <img src="https://s32.postimg.org/x1llms2ph/caixa_padrao.png"> </td>…
-
1
votes2
answers501
viewsText alignment problem within select and input
I’m having trouble defining the style of inputs and selects. The text is misaligned/cut, according to the figures below (first image in Chrome and the second image in IE, in Mozilla is equal to…
-
1
votes1
answer69
viewslinks are leaving space
I was modifying my fixed bar on my site, and something occurred to me that I can’t fix: I have 1 nav that inside is 1 ul that inside is 4 lis and within each li has a a, what happens is that I am…
-
1
votes1
answer394
viewsDivs of window size
I have a map below a div. My problem is that when I add altura 100%, he takes the value of body, below the primeira div, appearing scroll. Example: jsfiddle <!DOCTYPE html> <html>…
-
1
votes2
answers567
viewsProblems with dropdown menu
I’m making a website and using the dropdown , however, I can’t use 2 dropdowns on a page, I can only use 1. I’ve researched and found something about using classes, but I don’t know how it works or…
-
1
votes1
answer2861
views -
1
votes3
answers118
viewsCSS or JS selector
I have a paragraph with no id that I need to style. Styling can only occur for this paragraph. Example: <p>Conteúdo</p> So I want to apply CSS only to it. seletor {estilo;} Note: I…
-
1
votes2
answers1108
viewsResize NAVBAR size when scrolling the page
I’m trying to get Navbar to slow down when I scroll the page, assigning the class .sticky in <nav>. But for some reason, the slider doesn’t decrease, it just changes color. I’ve tried…
-
1
votes1
answer1742
viewsGenerating graph from an HTML Txt
How do I take data from a txt file and play in html to generate a graph?? I’m using that Highcharts tool, and I’d like to know how to play the values on the date, so I can generate the chart.…
-
1
votes3
answers25286
viewsChange image color with CSS
Is it possible to change the color of an image with CSS? By applying a filter maybe, or something like that. Is there a way? For example, an image like this:…
cssasked 7 years, 5 months ago Lucas de Carvalho 6,427 -
1
votes1
answer114
viewsPosition div across the screen
I’m creating a home and want to position a div (with a background image) across the visible screen when the page loads. I did it this way: .home-entrada{ position: absolute; bottom: 0; top: 0;…
-
1
votes1
answer131
viewsFlexslider - Thumbnails Vertically
Hello, I’m using a Flexslider to do the listing of page images, but I wonder if there is the option to list the Carousel images vertically, at the moment, they are going through the horizontal.…
-
1
votes1
answer415
viewsHow to run a php file via a Switch Button with html and css?
Save people!! I’m new in the programming universe. I wonder how to make this button run a file in . php triggered and another file . php when not triggered. /* Estilo iOS */ .switch__container {…
-
1
votes1
answer1692
viewsDoubt with Theme-color, change the color of the browser
After accessing the mobile phone, I did not notice that he changed the color of the browser, nothing changed, using safari on Ios or Android, did anything missing? I made the inclusion in my head :…
-
1
votes3
answers15107
viewsHow to change the color of the text typed in the input?
I have a input and when I type something into it the text gets the same background color(white). Does anyone know how to edit this? I would like to put the color of text black.…
-
1
votes1
answer594
viewsHow to put a CSS inside the html tag with URL?
I have this CSS I’d like to put in my form <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> But when I put in <head> the CSS of every page is changed (obviously…
-
1
votes2
answers122
viewsalignment of text and image
Can someone help me with the positioning of the text? I would like the text to go underneath the image when the resolution is that of a mobile device with on maximum 540px wide. Follows the website:…
-
1
votes1
answer6123
viewsAdd link to image by *.CSS file
I have a file *.css that I determined the position and size of the image I have in my header, it is possible to add a hyperlink to that image in the file itself *.css and then when I assign that…
-
1
votes0
answers183
viewsCSS Element "passing" over each other in a li
I have a custom select (Dropbox), in which there is a search field in the list, this select with jquery was downloaded (I didn’t do it), well, I had to position one over the other for my purpose,…
-
1
votes1
answer424
viewsBoostrap Responsive Slide
Hello , I would like to add a full slide to my head using bootstrap, like the image example: Could you help me ? If you want to view my structure I’m leaving the link of my repository on github:…
-
1
votes1
answer41
viewsOpening 2 modals with same class - CSS
Guys, mt good night. All right? My question is relatively simple. I have a modal box for presenting a simple text. I would also like to use it to show, as soon as the user clicks on another link, a…
-
1
votes1
answer50
views -
1
votes1
answer4509
viewsFreeze row of an html table
I would like to know how to freeze a row of an html table, for example I would like to freeze the 1 row of the table, for when I descend the scroll it accompanies, could someone help me? I tried to…
-
1
votes1
answer110
viewsHow to show/display each <li> item?
I am creating a menu where your content is displayed via a modal. As an element li is unique (has neither id nor class), so the jQuery will capture the last declared element.…
-
1
votes2
answers70
viewsIs it possible to do this with table td?
Okay let’s see: //PHONE <table> <tr> <td>COL 1</td> <td>COL 2</td> </tr> <tr> <td>COL 1</td> <td>COL 2</td> </tr>…
-
1
votes0
answers23
viewsDynamically change the opacity of a browser window in an Electron application
Is it possible to dynamically change the opacity at runtime of an Electron browser window? If so, how can this be done? I wish to have a slider that controls opacity while the application is…
-
1
votes1
answer898
viewsHow do I fade in the page load?
I’m trying to make a fade-in effect so my page is opened using only CSS, would there be any way to do that? The browser is able to do this? I did some research and what I found I’m leaving here to…
-
1
votes1
answer232
viewsHow to make the pseudo-element before work?
I have the pseudo-element before but I’ve done everything and I can’t make it work. The image doesn’t appear at all. section.conteudopadrao a:before{ content: url("./anuncie/pdf.png"); } For several…
-
1
votes0
answers31
viewsCSS Preprocessors - Advantages and Disadvantages
you use CSS Preprocessors, if yes, which?? What are its advantages and disadvantages?? Why do they use it? Or Why don’t they use it??…
cssasked 7 years, 4 months ago user81583 -
1
votes1
answer1416
viewsChange text according to slide image
Hello, I’m dealing with HTML/CSS, I went to make a slide and I came up with a question, probably Javascript. I made a mini slide of featured products, and next to this slide, there’s the text…
-
1
votes1
answer291
viewsHow to highlight text in jQuery autocomplete?
I am using jQuery autocomplete and would like to underline inside the result the text being searched, I looked for some examples on the web, but only found with plug-in, like this: Example I tried…
-
1
votes3
answers14308
viewsAdjust image to <div> size
Well, I’m creating a mini social network but I’m having a little problem, the profile image does not fit the div. My code is: <div class="profilepic"></div> <style> .profilepic {…
-
1
votes0
answers49
viewsDoubts with jssor carousel
I’m using the carousel for on my page, follows image so far so good , the problem is when I open it on mobile, it decreases the carousel , and I wanted q it plays down , follows image I’ll send you…
-
1
votes2
answers1649
viewsName over image when mouse passes css
I need to put the name of the image on it when the mouse passes. The same effect we have using :Hover when the mouse goes over. I want to make the image name appear, put bold, font size, etc.
cssasked 7 years, 4 months ago user84584 -
1
votes2
answers508
viewsCatch the Children of an Object
I’m trying to add and remove classes only to the div that has Hover, but I can’t because I have 4 Divs with class .image. The same is true for all Ivs. Here’s the code: $(document).ready(function()…
-
1
votes0
answers136
viewsHow to resolve stylization error in Select Option options that appears error in Firefox
In Firefox version 48.0, this giving error in styling the options of Select Option. Follows the code: <div class="buscaCodigo"> <div class="form"> <br /> <br />…
-
1
votes1
answer218
viewsCan I use Grid CSS Layout in all new projects?
Even without full support from microsoft browsers, it is necessary to use the prefix -ms-, I can start using CSS Grids in new projects without worrying or I must continue using frameworks grids ?…
-
1
votes2
answers49
viewsAuto-Complete with database values in input text type
Good evening, I need a code that when entering the input the user will see suggestions below that should be the values pulled from the bank. <input type="text" id="pesquisa" name="pesquisa">…
-
1
votes1
answer394
viewsEffects on links through the Hover
Guys, can anyone tell me how I do this effect with hover? When passing the mouse over the menu link it appears that vertical line on the name, I could only with the horizontal line below the name.…
-
1
votes1
answer333
viewsProblem with line breaking JS
The problem is this, when breaking the line in textarea in div .result where the result of what is typed in the textarea, he just gives a space and doesn’t break the line. How do I make it break the…
-
1
votes1
answer1574
viewsFlap system with jQuery
Guys I set up a flap system using jQuery. Follow it below. $('ul.tabs li').click(function(){ var tab_id = $(this).attr('data-tab'); $('ul.tabs li').removeClass('current');…
-
1
votes1
answer51
viewsForm effect (CSS)
Someone knows if this type of style of the site inputs below has a name, I’ve seen this label transition effect in several Forms but I haven’t found the name of this technique. Website:…
-
1
votes1
answer625
viewsSpecific css file for each wordpress page
I’m making some custom pages in a wordpress template and would like to put a css stylesheet in each one right in the header. Is there any way to do that? I tried to get the title of the page and I…
-
1
votes2
answers36
viewsMy main DIV link does not work if I have a link in my internal DIV
I have a DIV inside another, but my main DIV does not work the link if I put inside it a DIV with link to close. CSS: #guaraparivirtualsuperpopup { position:relative; width:1215px; height:500px;…
-
1
votes1
answer226
viewsMobile responsiveness with bootstrap-material?
I’m using bootstrap-materialon a system, if I use the browser not maximized responsiveness works. But on mobile devices not. Someone knows what might be? Styles <link href="{{…
-
1
votes1
answer1002
viewsHow to center Google reCaptcha?
I have a reCaptcha in my form, but I’m not able to center it or leave it in the same size as the fields. <div class="container-fluid"> <div class="row"> <div class="col-sm-10…