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
-
4
votes2
answers471
viewsDisplay a sequence of Divs in two lines
Good evening, I have the following structure of Ivs: 1 | 2 | 3 | 4 | 5 | 6 What I need to do is that this structure looks like this: 1 | 3 | 5 2 | 4 | 6 A single detail, is that I need to do this…
-
4
votes2
answers844
viewsWhy does this menu not work in the mobile version?
I was looking for some menus/layouts templates and found that very cool, but when I googled to the mobile view when I clicked on the menu the 1st ball came and went, instead of seeing all of them…
-
4
votes1
answer283
viewsColorbox responsive
I’m using Colorbox in a project and need to make it responsive. I was able to change the size of all Divs with Media Queries in CSS, but div #colorbox does not change the size! This causes the page…
-
4
votes1
answer1790
viewsDivide in circles with responsive layout
I’m trying to make a page that contains div in circles and which fit one below the other when the layout decrease, for example, to cell phone sizes. With the common size I would like them to be 4…
-
4
votes1
answer3192
viewsContainer that adjusts to 100% window height and width
I wanted to create a container or a secção which automatically adjusts to the height and width of the screen, which even when resized to secção adapts to the size of this, followed by another type…
-
4
votes2
answers190
viewsCSS SVG file does not perform Javascript function
I’m using an SVG as background-image, via css: #element { background-image: url('triangle.svg'); } Then inside the SVG arch I call a function in the onload because I need to pass RGB color…
-
4
votes2
answers191
viewsServe libraries with CDN or Own Server?
Aiming performance is more performative to use a CDN (providing the library’s full and primary version) or distributing versions of Custom Libraries (e.g.: jQuery UI that provides only the effect…
-
4
votes3
answers598
viewsIs it possible to assemble default layout for HTML pages?
If I have two pages: pagina1.html and pagina2.html, that are very similar, it is possible to use a page layout.html to determine common elements of each page? And thus also avoid the repetition of…
-
4
votes1
answer461
viewsHow to use Helvetica font or other on a website, and make appear any PC?
I’m having font problem on a website, I’m using Helvetica, but on other Pcs that do not have this source it does not appear. How to make everyone see with this source?
-
4
votes2
answers11358
viewsHow to customize upload file button?
I have a file upload button: <input id="file" name="file" type="file" /> He’s like this: I want to remove this description "No selected file" and customize the text of the button. Can anyone…
-
4
votes2
answers4779
viewsResponsive font as screen size is adjusted
I have a responsive website only the lyrics even putting in %, Rem or EM is not adjusting. Then it is possible to make the font change for example a window with the length in 1000px and font-size in…
-
4
votes1
answer202
viewsScript to mute my site (game)
I have a project in localhost (little game in HTML 5, JS and CSS), at the bottom of the game plays a song, I can’t make the button to turn off the sound work, anyone knows any article teaching or…
-
4
votes2
answers5048
viewsHow to make a progress bar with steps?
How could I make a step progress bar using Html5, css3 and js? An example to clarify what I need to do: I prefer to do it from scratch, but is there any library ready for it?…
-
4
votes1
answer1289
viewsPost typing effect on placeholder
Guys I’m trying to add a behavior to a placeholder but I’m not getting it. On the website of ticket with. when the user enters a value in the placeholder forml some and a small label appears above…
-
4
votes2
answers954
viewsCss change in iOS only
I need to make a css change on iOS only, I used if (navigator.userAgent.match(/(iPod|iPhone|iPad)/)) {} But it didn’t work. The code I need to change is this. .sdn-music-player>.yt-wrap>iframe…
-
4
votes2
answers541
viewsHow do I check if my application is open on mobile or web?
I need to do a.css style for mobile and another for web .
-
4
votes2
answers1718
viewsHow to place two Ivs next to a container?
How do I place two Ivs, one on the left and one on the right side of a container with the bootstrap? Since you would like the side Divs to increase in size depending on the screen.
-
4
votes2
answers1004
viewsHow to put » and « in :before?
I need to put one » » and a « « in the attribute :before of a given, element. How do I do this in CSS? ul.breadcumb > li:after{ content: '»'; /** Isso aqui não funciona…
-
4
votes2
answers191
viewsCustomization scroll bar
Today, can we use CSS only to change the customization of the scrollbar of a DIV? If yes, how can I do it. Otherwise which script is best and how to use it?
-
4
votes1
answer126
viewsProblem with Bootstrap menu
I made a menu customizing using Bootstrap, however, I am having a problem when I decrease the width to <=767px and click on the button to expand the menu. I know this problem is due to menu…
-
4
votes5
answers364
viewsHierarchy between CSS styles
I’m studying some more efficient ways to style an app using themes. My idea would be to use something like this: <div class='tema-1'> <button class='btn btn-primary'>botão…
-
4
votes2
answers117
viewsIs it correct to use $(selector). not(':Visible') here?
I am refactoring the CSS of a system function and to treat the CSS property and not a string I switched this line of code: (1st way was working properly) var ultimaMensagem =…
-
4
votes2
answers541
viewsIs there a list of all properties that need prefixes?
I have a question about CSS: To run in different browsers you need to use the prefix before the property, for example: -webkit-boder-left-rarius: 3px;. But which CSS Styles as border, margin,…
-
4
votes1
answer960
viewsWhat would be the best way to make a "vertical text" in HTML/CSS?
I would like to know from you how best to do these types of text alignment as in the example (vertical alignment, with letters up, "vertically straight". And vertically aligned with the edge of a…
-
4
votes1
answer3424
viewsHow to rank with PHP
Well, I have a problem, I know how to pull the ranking and all. My question is I’m gonna pull the 6 with the highest score, and I wanted the first 3 to have a different background, like: Whatever…
-
4
votes2
answers1474
viewsButton next to input text bootstrap 3
I’m having a problem that I can’t put my input file button next to my input text. I’ve done some research, tried some things I’ve seen and nothing. Maybe it’s pretty silly, but I’m kind of new to…
-
4
votes1
answer137
viewsPerformance CSS (CSSOM and selectors)
Considering the assembly of CSSOM by the browser and parser (read) given right to left. I would like to play a question, because I was writing a css in a project and always have with me for…
-
4
votes1
answer2140
viewsHow to insert external CSS into Codeigniter 3
I would like to know how to insert an external css file into a Codeigniter 3 view. I set up the $autoload['helper'] = array('url'); I tried to make the call in the following ways: <link…
-
4
votes1
answer229
viewsChange image src when input value is equal to a given value
Good night! I have a login input and an img with the user image. I am trying to change the user image when this input loses focus and if the entered value corresponds to a given value. ex: if I type…
-
4
votes1
answer140
viewsWill users from other platforms see my website fonts?
The question is simple: I have a website, its default font is Segoe UI normal, and the Segoe UI Light, the site uses only these two. In Windows, the site appeared correctly and without problems, now…
-
4
votes2
answers21648
viewsImage alignment with CSS
I have a div that contains another div within, but this second div (from within) contains a <img src="">, how can I do to leave this div with the image aligned in the center of the first div?…
-
4
votes2
answers449
viewsPutting Forward and Return Control on Slide Show
I would like to know how I can change the Slide Show script below so that it works with two action controls called Next and Previous and I need the Slide only change the text if the user click one…
-
4
votes1
answer342
viewsFloat 2 side-by-side with triangular tip
This is a tough one, and I’ll explain why, I have two Ivs like in the print below, the site is responsive, they should float side by side, but these Ivs have triangular tips, and they should scale…
-
4
votes1
answer931
viewsLayout Template and Routes
I’m working on a system that uses MVC as follows, View -> HTML,CSS Model -> PHP Controller -> JS Basically all system actions work by going through the following order: User triggers some…
-
4
votes1
answer122
viewsWhy is it not recommended to use the asterisk in css "reset" operations?
I’ve seen several internet tutorials on css reset teaching that one should never use the asterisk to apply the modifications. For example: * { margin:0; padding:0; } But, along with the statement…
cssasked 8 years, 9 months ago Wallace Maxters 102,340 -
4
votes3
answers388
viewsVertical menu disappearing below the footer
On screens where the height is less than 600px the menu disappears below the footer. I also tried to leave the position as fixed, relative and with nothing but the result was the same. Follow the…
-
4
votes1
answer1864
views -
4
votes1
answer245
viewsI cannot limit text with Japanese characters
I’m trying to limit the text "in Japanese" that will be displayed in some places on the page, it doesn’t seem that php can handle this type of character well. Example of php: echo substr("あ え い う…
-
4
votes1
answer1852
viewsHow to use @Html.Validationmessagefor to change the text box class
I bought a bootstrap template, the validation of the controls is done by a class that leaves the controls red. This would be the classes form-group has-error Only that I never used this way, I’m…
-
4
votes2
answers1231
viewsChange cell color of a table by changing the backgroud and the text to be displayed
Good morning to you all! Gentlemen, I have a table where I upload information from the database, and I display it in this table. The table is already ready and loading the data right. What I need is…
-
4
votes1
answer499
viewsPick up CSS Specific Element with Sign +
My question relates to this question: What the + sign in CSS means? I’m using the + sign to do an effect on a form I have. It works, but the point is that my form has validation. That is, when I…
-
4
votes3
answers167
viewsAlignment of Divs
I have 3 Div, and I’d like you to be willing as follows: To Div1 is the div who "holds" the other two. I would like the DIV2 stood over the DIV1 ,superimposing the text. And that the DIV3 remained…
-
4
votes3
answers207
viewsI need a function to add <br> under certain conditions
I want a function that adds the tag <br> when the text is not spaced, I made a fiddle with the problem: https://jsfiddle.net/sc290ssn/. This function can be done in Javascript or PHP. <div…
-
4
votes1
answer819
viewsHow to customize a Select in columns?
Guys I have a select that shows CODE | TITLE | DESCRIPTION | UF 0001 | TESTE1 | NEW ITEM 1 | SP 0002 | TESTE2 | NEW ITEM ADD 2 | SC See that the column is disfigured, I would like to align this with…
-
4
votes1
answer346
viewsAs always show search field
I have a form where I have a search field, this field is only visible when the user clicks on the image of the existing magnifying glass and the field is displayed a line below my layout, I would…
cssasked 9 years ago adventistapr 5,498 -
4
votes2
answers116
viewsHow to add font to a select?
I have the following link: <link type="text/css" rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800">…
-
4
votes3
answers13930
viewsChange color of an image by hovering the mouse over it
How do I effect CSS to move the mouse over an image it appears with colors and when removing it becomes black and white? I’d like to do with CSS or other than with the flash(R.I.P.).…
-
4
votes1
answer153
viewsUnwanted texts in Bootstrap
Why does my text appear with another under it after I add the Bootstrap library to the page? (Note the Copyright and top text)…
-
4
votes2
answers634
viewsHow to Remove Input Image Edge
I’m wearing a input image to work as a favorite button <input type="image" class="btnFav" title="Favoritar" /> Only he gets a square edge on him I’ve tried using the css down, but nothing…
-
4
votes1
answer3986
viewsHow to align checkbox and label with bootstrap
The result of this my form puts the checkbox and Abels in line, which is correct, but I can’t find a bootstrap class that makes the label aligned with the checkbox. How do I do it? <script…