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
-
2
votes1
answer57
viewsDetect Ellipsis
I have a following div with an image, the title and some options. See: .truncate { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } <div class="item thumb">…
-
2
votes1
answer168
viewsTag video inside Slick
I’m having a problem in my project, installed the Slick Carousel, put the images and worked, however, I added a tag containing the video path and the video does not work, just appears a black…
-
2
votes1
answer72
viewsHow to import node_modules styles into an Angular 10 library?
I am developing an Angular 10 library. This library uses Swiper JS as a dependency. My library should import css styles from Swiper. I import Swiper styles from node_modules using the @import scss.…
-
2
votes1
answer647
viewsCenter in element :after
I have the code below: .divCheckList .valorBool, .divCheckList .divCheckBox { height: 34px; display: inline-block; border:#CCC .1px solid; vertical-align:middle; } .divCheckList .valorBool {…
-
2
votes1
answer83
viewsMenu Responsive
Speak guys, how can I hide my menu when I get to 990 resolution? the menu some toggle button appears but when I click on it no menu appears. .header_topo { display: -webkit-box; display:…
-
2
votes1
answer514
viewsFixed menu in Parallax
Guys, I’ve done everything but I can’t put a fixed menu in this code (made by tekzzoom), when inserting an item the background overwrites it, and the item does not remain fixed on the screen. Can…
-
2
votes2
answers326
viewsForce require on display:None
I have the following html: <ul class="payment-methods"> <li class="payment-method paypal"> <input name="payment_methods" type="radio" id="paypal"> <label…
-
2
votes1
answer127
viewsHow to change html data-start-height by Media Queries?
I have a website Based on a template I bought on themeforrest, the banner of the homepage of this site has its height adjusted by this attribute: data-start-height (which I had never used, I know…
-
2
votes1
answer978
viewsHow to change the image of the mobile menu icon to indicate toggle closure?
I’m creating a responsive menu from scratch using html, css and jQuery. I was able to create it and it is working toggle opening and closing after function click on an image (the menu icon). The…
-
2
votes1
answer223
viewsHow to style HTML5 calendar icon
I have an HTML5 input with type="date", thus: <input type="date"> Is there any way to change the color of the calendar icon it brings natively? I’ve tried properties like…
-
2
votes4
answers182
viewsAdjustable design for mobile
I would like to know what I am doing wrong, I want when the user enters my site by mobile, change some dimensions of my page, background and other things that I will change.. @media screen and…
-
2
votes1
answer8172
viewsIcons do not appear - Font Awesome
The icons used from the awesome font do not appear on my site, it is just a few squares, I do not understand why. It’s like this topic: LINK As it was not solved, I posted again to ask for help.…
-
2
votes2
answers1075
viewsmpdf only displays in firerox
I am using mPDF and it is only generating the reports correctly in Firefox or opening by IE. If I try to open the file with PDF reader it returns the failure error when loading PDF document.…
-
2
votes3
answers3621
viewsHow to readjust the image to the size of the div
This image has 500px x 500px and the div has 600px x 600 px How can I treat the image to be the same size as the div? #conteudo{ width:600px; height:600px; float:left; background-color:#ff1;…
-
2
votes1
answer1036
viewsImage with CSS - image and title manipulation
I want to put an image behind the title at the top of the page, placing the title to the right and centered and a paragraph to the left containing some words, but I have a problem: I can’t put the…
-
2
votes2
answers8065
viewsHow to make the background image transparent - image?
I want to make the background image transparent without affecting the other items of the body, only the image, but when I put the opacity the whole site becomes transparent, if in case there is no…
-
2
votes1
answer73
viewsIncrease text size by scrolling the page
How do I when scrolling the page increase the size of the text? I would like each 50px the text increased in 10px to scroll the page to a total of 1000px top-down. Below is Fiddle and Snippet:…
-
2
votes1
answer849
viewsWhy even with margin 0 and padding 0 there is still space between the elements?
I have 3 buttons on each other and I wanted them to have 1px of margin just between them but it’s getting much more: The html: <div class="popup"> <p id="popupText">TRUCO!</p>…
-
2
votes1
answer741
viewsChange textarea background color when button is clicked
I developed an application in Javascript, Jquery and HTML. I would like to make sure that when the user clicks the button btnalterar, to textarea created change your background color. Does anyone…
-
2
votes1
answer3967
views -
2
votes2
answers372
viewsDisplay text contained in span in Hover
I have the following html code below: <a class="tooltips" href="#"><strong>!</strong><span>Ingresse o máximo de informações possíveis para uma entrega…
-
2
votes2
answers927
viewsFormat CSS table color
I wish my chart looked like this. but when adding the content to it it gets this look I’m not able to leave it as the top table. function listarProdutos(){ var conteudo="<table border='1'>";…
-
2
votes1
answer253
views -
2
votes2
answers247
viewsHow to change the color of a div Parent relative to the size of the Childs
I have a div parent and 4 div's child and would like to change the color of border of div parent relative to the size of div child. To exclaim better put down an image with an example of what I…
-
2
votes4
answers281
viewsCSS - How to manipulate Div’s?
I’m doing div’s and I’m having a hard time lining up div’s the way I need to, like in the following picture : But it’s getting like this : #total { background-color: red; width: 300px; height:…
-
2
votes2
answers320
views -
2
votes2
answers84
viewsAnchor validation for download
Next, I need to validate this form so that only after the person registers can they download the file. With the tag I can already have this validation but I was able to put to download only with the…
-
2
votes1
answer69
viewsJavascript - Doubt when manipulating div’s values with variables
Good afternoon ! I have a question regarding the manipulation of div’s values... When dragging an image from the div fundo1 (blue) or the fundo2 (yellow) to div conteudo, would like the values…
-
2
votes1
answer205
viewsCustom jQuery Show function
I would like to know how to add "effects" in show and Hide, I tried to add in my code but did not succeed. Because I tried to show only a common div with class in css that gives the appearance that…
-
2
votes4
answers102
viewsHow to create a button that randomly selects 3 out of 5 numbers
my question is, how to create a button that randomly and automatically selects 3 of the 5 numbers that are shown. Like I just clicked on them. follows all my code below. <html> <head>…
-
2
votes1
answer418
viewsHow to change another element with pure CSS?
How can I change another element with Pure CSS, from one element? I tried to do this but it didn’t roll. I don’t know the CSS selectors and wonders in depth. input { display: block; transition: top…
-
2
votes2
answers510
viewsHow to load html page with the scroll bar of a DIV at the end?
I have a div with a fixed size and containing many large texts within it. I would like that whenever the page that contains it was loaded, it was "focused" (that is, the focus of the page went…
-
2
votes3
answers401
viewsMaterializecss: image without margin
I have an image inside a div. Down she gets a margin. I tried with Firebug to look at the code of div and img, but I found nothing stated with margin and padding. <div class="row"> <div…
-
2
votes2
answers1029
viewsMethod to change CSS subclass (choicebox item text color)
I have a Choice-box. In my Choice-box there is a list of colors to be selected by the user through the interface. Every time the user selects a color, the background of that same Color Box gets the…
-
2
votes2
answers451
viewsApply CSS to a button
In the company where I work we have an ERP system, and I am passing some things to the Web, but in the system there is a button 'inside' an input that is already proper to the Dataflex language How…
-
2
votes1
answer240
viewsChange div CSS with click
I’m trying to create a portfolio, his idea is that by clicking on Banner, the Logos disappears and if you click on Logos again, it re-appears and the Banner goes away. In this case, by clicking 1 of…
-
2
votes1
answer68
viewsChecklist: with CSS only
I have a list with 2 items per line and I need each item to be of one color. However, the bottom item has to be different than the top item. Follow the image of what I need: I am unable to make this…
-
2
votes1
answer908
viewsoverlay text in background
How do I put half the text on top of the blue background? .event_background { background: #bdecef; } .flexbox_grid { display: flex; } .flexbox_event_image { width: 70.0%; margin: 1%; }…
-
2
votes1
answer116
viewsHow to fit these elements?
I would like to know how to fit this element, I would like when the top end the bottom come right down to it. How can I do that? Here is the html: <?php $postagens = timeline($conexao);…
cssasked 7 years, 1 month ago Francis Vagner da Luz 461 -
2
votes1
answer1253
viewsHow to place the bootstrap table on a background image?
I’m doing a lineup of teams using the bootstrap, where each registered match, a new row is generated with the data, the problem is that the table is not on the background image. Table does not…
-
2
votes1
answer250
viewsCSS options menu
Good morning, I need to create a menu in the right corner equal to the example, but I’m not getting... when I click my button it is necessary to open the menu on top of the button without leaving…
-
2
votes1
answer50
viewsSimple CSS alignment problem
I’m 3 hours away from this simple problem, first course work. I’d like to leave it at that: #conteudo{ background-color: #F5F5F6; position: absolute; width: 80%; top: 20%; right: 10%; } .bloco{…
-
2
votes1
answer900
viewsAdaptive border according to text size
What is the correct way to do this is the border below the text? I am currently doing it this way, but if the text is too large and breaks to the bottom line the border does not adapt to the size…
-
2
votes3
answers1992
viewshow do I get the scrollbars out of my iframe via css?
I’m doing an exercise to hide the scrollbars of the iframe but something went wrong! again !!! function mudaFoto (foto) { document.getElementById("icone").src=foto; } @charset"UTF-8";…
-
2
votes2
answers308
viewsDiv alignment
I own a table that is built dynamically with the information of a film director. And I need to change the structure to a div, mainly for the issue of responsibility, today by reducing the size of…
-
2
votes2
answers443
viewsLeaked triangle with css
I’m needing to do this kind of effect with css will have as ? It wouldn’t matter to use css3 or any technology, this kind of css will be used in an application ionic, I don’t know if this would…
-
2
votes2
answers119
viewsIframe does not support the "resize:" property in Mozilla Firefox
I have a function that arrow the WYSIHTML5 plugin in a textarea, this plugin migrates the textarea to an iframe: <iframe class="wysihtml5-sandbox" security="restricted" allowtransparency="true"…
-
2
votes1
answer377
viewsPaging without php and mysql
I’m trying to make a simple pagination, just click on the "2" button for example and it happens. I tried to use this, but I couldn’t: https://esimakin.github.io/twbs-pagination/ Could anyone help me…
-
2
votes2
answers7004
viewsCustomize option of select
People I’m trying to personalize options of select but the colors of Hover don’t change always turn blue. Follow the code .personalizar-select{ border: 1px solid red; } .personalizar-option{ border:…
-
2
votes1
answer5096
viewsSpace between Ivs
Good Morning! I have the figure below where between the figure "HOME GAS" and the Div which contains some red buttons, we see a space. The problem is that space does not exist in the code. body {…