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
votes1
answer43
viewsAligns pseudo element to direct in the navigation bar
I’m having a hard time aligning the :before bar on the right. Can anyone help me with that? I’m using this code: .nav-romeu li:before { content: ''; width: 50px; height: 2px; background: #000;…
-
0
votes1
answer53
viewsBootstrap interfering Imageareaselect (Primefaces)
I’m using the component, from the Extesions primefaces, called Imageareaselect. Primefaces Extesion - Imageareaselect However this Bootstrap TAG is causing the background of Imageareaselect is…
-
0
votes1
answer136
viewsNormalize css and reset Global
Is there any way to use Normalize css and at the same time give a global reset on style sheets? I use the reset like this in my css: * { margin: 0; padding: 0; box-sizing: border-box; } But even…
-
0
votes1
answer38
viewsLoop for printing per page
I have a loop: <?php for($i=0; $i<=20; $i++){ ?> <div id=""> <?php echo $i; ?> </div> <?php } ?> I need each of these Divs to appear separately at the time of…
-
0
votes1
answer24
viewsAdd a page size controller
I wonder how I can make this page size controller when resizing it to be dynamic like in this example of w3schools. I want to add this to my site and credit whatever with Javascript I can leave this…
-
0
votes1
answer212
viewsHow to Calculate Pixel Height with PHP
I have a screen on which a report is generated with a limit amount of tables that cannot be broken. I have to paginate this report. How to calculate the height of pixels generated ??
-
0
votes1
answer91
viewsFlexslider - Loading with still images
I’m using Flexslider, but while the images load and the function is not executed, it plays one image under the other, generating a huge scroll bar and, after the execution and loading of the images,…
-
0
votes1
answer50
viewsError opening and closing modals
Javascript var inicio = document.getElementById('inicio-modal'); var banner = document.getElementById('banner-modal'); var produto = document.getElementById('produtos-modal'); function abreInicio(){…
-
0
votes1
answer168
viewsRelative Position of the Table row
I have a table with 50 lines Of these only 10 are visible Added the css class "ux-select" to line 5 The code $('table tbody tr:visible.ux-select').index() will tell me what the row number in the…
-
0
votes2
answers90
viewsButton available when filling fields
Good afternoon, How can I make the send message button available only when the user fills all fields correctly? <h2>Quero um <span>Automóvel</span></h2> <div…
-
0
votes1
answer8826
viewsBackground with transparent image
As I make the background image transparent and responsive, responsive I managed with the code below, more now I need to put transparecia in the image. CSS body{ background: url(../img/bg.jpg)…
-
0
votes1
answer156
viewsFooter element do not descend using the bootstrap class when I open the menu in mobile mode
In mobile mode is having problems when I open the menu as it collides with the buttons to pass images of Carousel and also with the footer CSS .footer { position: absolute; bottom: 0; width: 100%;…
-
0
votes2
answers1402
viewsWhat does ">" mean in CSS selectors?
Guys, I came across this CSS from a free project that I downloaded from the web. .user-panel>.image>img {} What this "nested" notation represents? Because the "img" doesn’t have the point (.)?…
-
0
votes2
answers70
viewsColors changing as the monitor
I’m creating a website for use in the company where I work, this site has blue background and everything, in my notebook it looks beautiful, the blue color I chose even, but when I switch to another…
-
0
votes1
answer450
viewsHtml and css alignment
I am facing some difficulties while trying to align the following content HTML <div class="header"> <div class="logo-para-header"> <h2>Logo teste</h2> </div> <div…
-
0
votes1
answer50
viewsClosing app on android 6.0
How do I get the button to exit in an application with phonegap. We have tried all available forms and in no way the command executes the "exit".
-
0
votes0
answers113
viewsDynamic Carousel image resolution
I’m having problems solving the images that comes inside the carousel, have to set a pattern by css or javascript ? follow the images follows my aspx code: <div id="paginas"> <div…
-
0
votes1
answer82
viewsDynamic php css
Well, I have a map in SVG and I need to color some cities, but I need to do it dynamically because there are a thousand cities. It will be about 4 colors and each group with such cities will be of…
-
0
votes1
answer56
viewsHow to remove screen header on some routes
Good morning guys, in my angular project 4 I completed the Adm screen and I wish the header did not appear in it, I know I could do this with ngIf but I’m lost >_>, Can someone give a light?…
-
0
votes1
answer88
viewsOverflow-y is leaving a blank in the table width
Hello. I am trying to make my table have a scroll, as follows: <table ng-if="vm.model.id" width="100%" class="table table-striped table-bordered table-hover dataTable no-footer" style="width:…
-
0
votes1
answer3653
viewsNavbar Bootstrap 4 Collapse now automatic
I am copying EXACTLY any navbar template I found in the new bootstrap 4 documentation I am using in my projects. Only, it already comes "collapsado" let’s say so. Is there any javascript function…
-
0
votes1
answer378
viewsClick and show div, click again and hide
Guys I have the following html <nav class="nav nav-default"> <div class="container"> <a href="#" class="nav-brand">Brand</a> <button type="button" class="nav-button">…
-
0
votes3
answers1702
viewsCreate button with border and gradient text
I need to make a button with the border and the text color gradient, but the button also has border-Radius. I have tried several forms here, but I did not succeed. What is the best way to make this…
-
0
votes1
answer36
viewsVideo with Reflection in firefox
I have the following structure that displays a video: div { height: 460px; width: 100% background: -moz-linear-gradient(top, black 0%, #020223 100%); /* FF3.6+ */ background:…
-
0
votes2
answers67
viewsinput is inside the fildset tag, but is cutting the line
input { font-size: 16px; margin-bottom: 20px; border-radius: 5px; border: 1px solid #ccc; position: relative; }…
-
0
votes1
answer1598
viewsCommand "see more"
I have a mobile page, it has enough texts with various information on such a subject, with a few paragraphs, I wonder if there is a way to leave a paragraph of each subject in view with three dots…
-
0
votes0
answers42
viewsWhich html markup for menu, which consumes the least browser resources?
Below is a simplified version of the HTML markup of a menu I use: <ul> <li><a href="#" title="Teste X">Teste X</a></li> <li><a href="#" title="Teste…
-
0
votes3
answers131
viewsHtml, icon respecting page background color
I am inserting on my page an image that has an event, this image has a drawing, and the background of the drawing is white, I would like this background of this drawing to be filled with the same…
-
0
votes2
answers1149
viewsHow to Put color over the image when passing the mouse?
Place color over image by hovering mouse? Normal image: Image with black color superimposed: How do you do that?…
-
0
votes2
answers100
viewsI can’t break line using Javascript
Good morning, I’m having some difficulty trying to break a line using [b] n[/b] javascript. The code is working perfectly, what happens is that when it displays, it looks like this: My nick:…
-
0
votes1
answer453
viewswith capturing the width of the printing screen with jQuery
I have the following code: HTML <table style="width: 100%"> <tr> <th> teste </th> </tr> </table> JQUERY // Imprime a página window.print(); // Redireciona página…
-
0
votes1
answer746
viewsHow to call files on localhost
I installed a script made in codelgniter in localhost, but the site is entire without formatting and functions working, I believe that is not making the correct call of css files, js. <link…
-
0
votes1
answer46
viewsDisplay None in Chrome for iphone
I’m trying to hide items from a dropdown for value. In the Chrome of the computer and Android worked, but in the iPhone nay: option[value="home-01"]{ display: none; }…
-
0
votes1
answer342
viewsHow to hide the scrollbar when taking the mouse and making it visible when placing the mouse?
Well guys, I made a side-Nav with some contents and would like to make a scroll bar visible when the mouse is on top, however, I would also like to hide it when the mouse is off that side-Nav.…
-
0
votes1
answer811
viewsDropdown menu form Does not appear when clicking button
I’m making a menu with Dropdown using bootstrap. That when you click on the login button it displays the fields for the user to enter the email and password. However, when you click the button the…
-
0
votes1
answer265
viewsDiv occupies the entire width of the screen
I am building a layout where there is a bar at the top of the screen that plays from side to side. I used the property witdh:100%;, but I did not get a satisfactory result. The body of the page is…
-
0
votes2
answers369
viewsShould I use form or div?
In case it is sent with ajax I believe that it is even recommended to use the tag form, but if I am only doing something with javascript, that is only on the client side, for example change the…
-
0
votes3
answers7852
viewsAlign image to the right of the browser screen
An object by default is aligned to the left of the screen. I would like to know how to line an image on the right of the screen, so that when I change the size of the window the image remains…
-
0
votes1
answer230
viewsAlign image in the browser window footer
I would like to know how to line an image in the footer of the browser window, so that when I change the size of the window the image remains "leaning" at the bottom corner of the screen, without…
-
0
votes2
answers1047
viewsProblem with Hover in p button/ change background color
Basically, I’m trying to make the Hover effect on a button make the background change color, but I can’t find any solution on the internet, including here. I’ve tried that with elements like…
-
0
votes2
answers346
viewsMain differences between structuring CSS with PHP and LESS/SASS
In many projects I’ve been writing CSS with PHP, what is a practice well unknown but that meets all the needs of dynamization, example... CSS <?php header("Content-type: text/css"); $cor_fundo =…
-
0
votes1
answer2545
viewsHow do I move the mouse over a particular div when another element appears?
My goal is to have an invisible div, and when you mouse over that invisible div, make another div appear? example: <div class="invisivel"></div> <div class=visivel"> Olá…
-
0
votes1
answer178
viewsHow to make a fully fixed footer in html page
Good morning, I’m trying to put a footer on my html page, I was able to adjust the image automatically at the base of the window, the problem is that when I use the scroll and I take off the page…
-
0
votes2
answers635
viewsBootstrap menu does not work, according to the code provided by the site
In the head is like this: <link rel="stylesheet" href="css/bootstrap.css"> <link rel="stylesheet" href="css/bootstrap-theme.css"> <link rel="stylesheet" href="css/stylesheet.css"…
-
0
votes2
answers809
viewsBreaking table into multiple pages
I am creating a web application that displays two tables of equal sizes However, both have about 100 lines each, I would like only 25 rows of each table to be displayed and to see the rest of the…
-
0
votes1
answer39
viewsHow to activate certain CSS from certain scrolling?
Good morning I would like to know how to activate certain CSS from certain scrolling. For example, in some portfolios, in the skills part, most put a circle that when descending the full page…
-
0
votes1
answer41
viewsHow do I make my div height fit the size of my text?
When I insert my text it goes beyond my div. Please help me out.
-
0
votes2
answers291
viewsHow to manipulate image loaded by background: url();
I loaded an img that got too big, right through the css style sheet, how to decrease it, because it appears only a piece.
-
0
votes0
answers38
viewsBackground does not continue in the area larger than the browser screen
I have a login screen: <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <c:set var="context"…
-
0
votes2
answers97
viewsElement Span at the front
I have the following column of a table: <td style="font-size:10%"> <p class="list-group-item-text"> <a href="@Url.Action("Cidade", "Cidade", new { cidadecod = item.cidadecod,…