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
answer121
viewsOpen a new window "inside" the current window
I have a page where I insert some data and click on Ubmit, a query is made in the database and returns me a . xml in another window. Well, I wonder if it is possible, to put a field in the current…
-
0
votes0
answers91
viewsReplace words on the site
I use the code below to generate a space with the recent comments made on my blog. It’s working perfectly, only Disqus generates the date of the comment in English. Ex: 1 Month ago, 2 Weeks ago, 1…
-
0
votes1
answer217
viewsLimit a loop
I’m recently practicing PHP and I know how to loop with While, but I wanted to limit this loop so as not to break a column of the site. <?php include_once 'conexao.php'; $sql = "select * from…
-
0
votes1
answer151
viewsPlace Items in Scroll
Hello! I’m trying to create a horizontal scroll with certain items. But it breaks down instead of continuing to the side. I want to do a scroll effect to show more content next door. .container {…
-
0
votes2
answers685
viewsHow to align the close button of the pop-up window?
I’m creating a pop-up window in CSS, but the close button is not inside the element where it displays the advertisement in the pop-up. The button is in the far left corner of the site. Note below my…
-
0
votes1
answer336
viewsHow to click on a link and make an element invisible using CSS only?
I need you to click this link <a class="close" href="#">×</a> mine figure remain invisible. Using only CSS. CSS figure.pop-up-principal { position: fixed; width: 100%;…
-
0
votes1
answer30
viewsFormat table column by id using jQuery
I would like to know how to format only the column that the user selects. For this I am using a PHP Loop with While. Each Lopp returns an id to me. My code is as follows:…
-
0
votes2
answers495
viewsHow to adjust a div to fit across the screen if there isn’t enough content to do so
Hello, I’m using freamework Materialize to create an administrative panel for a system I’m creating in PHP, but I know very little about front-end. I would like help to adjust the leftbar to fit…
-
0
votes1
answer899
viewsUse bootstrap or CSS manually for responsiveness?
I have a question in which situations are more valid to invest in front-end knowledge, including responsiveness. It would be more important to trust Bootstrap to leave your website responsive, or it…
-
0
votes1
answer185
viewsSetting of Div Parent CSS
I have the following HTML: <div id="fotos-listagem"> <div id="fotos-listagem-imagem"> <img src="http://localhost/proyectopen/assets/uploads/interno_fotos/ingresso/1348357833.jpg"…
cssasked 7 years, 4 months ago Sr. André Baill 6,946 -
0
votes2
answers65
viewsWhat is the difference between a class and an id in html?
Hi, I’m new to html programming and wanted to know the difference between a class and an id? EX: #principal{ } .principal{ }
-
0
votes1
answer51
viewsWhy do media queries work like this?
I was creating a responsive menu, and u noticed that if I don’t put the media queries from the smaller to the larger it doesn’t work properly. @media only screen and (min-width:560px) { .menu li {…
-
0
votes3
answers110
viewsVisited in tr table
I have a table that when being clicked a tr, a screen is generated on the page itself according to what was selected, I need a css code (if possible), that when being clicked the tr it is with a…
-
0
votes1
answer34
viewsHow do you get the last div of the same class glued to the margin?
I have 3 <div> and they use the same class, I just want to stick the last margin. I’ve tried to: .classe:last { margin-bottom: 0px; }…
-
0
votes2
answers40
viewsRestore UL size when leaving focus!
I have the code down below: $("ul#menu > li").find("label").hover ( function(e) { e.stopPropagation(); let ul = $(this).parent().find("ul"); ul.css('display', e.type == "mouseenter" ? 'flex' :…
-
0
votes0
answers93
viewsProblem with icon awesome in a select option
I’m trying to add an awesome Unicode icon to an option from my select but it always gets me this symbol @font-face { font-family: "FontAwesome"; font-weight: normal; font-style : normal; src :…
-
0
votes2
answers969
viewsHow to position one element in relation to another easily?
I’m creating kind of an online store, but I’m not getting to stylize my HTML right, I’d like to <div>s empty (I put div in the example just to illustrate, but in fact are images), stay with…
-
0
votes0
answers58
viewsChange color of navbar link according to page position
I would like to know how I do to change the color of each link of my navbar, according to the session I am on the page, if someone can tell me the name of this technique would also appreciate. Ex:…
-
0
votes1
answer62
viewsHow to reduce page size without formatting
Good morning, I’m a beginner in html and css and I was doing a page for college. The page is done and works well in full screen, but if I reduce the size of the page in the browser, it is no longer…
-
0
votes1
answer132
viewsCarousel does not load the second image on the mobile in portrait position
Hello, I have a Carousel on my site that is the basis to show my products, it works well on pc (shows 4 images in sequence) and tablet (shows 2 images in sequence) but on mobile we have a problem,…
-
0
votes1
answer214
viewsgetElementsByClassName works to change css?
I’m trying to make a change in css by clicking on the word but when I use Getelementsbyclassname nothing happens, but with the ID I can do this, however as several elements will have exactly the…
-
0
votes1
answer34
viewsHow do I hide the page scroll bar in css?
iframe#frame-spec { width:400px; height:280px; border: none; overflow: hidden; } iframe#frame-spec::-webkit-scrollbar { display: none; } …
-
0
votes1
answer33
viewsGet USER AGENT and modify
I’m trying to set up a PHP function to check the USER AGENT I should be able to know if you are on a mobile or desktop After this based on this information I will apply a different style to the page…
-
0
votes1
answer71
viewsCSS Gradient Radial
I need to convert an image to css, but I’m not able to generate her background using this radial gradient. Follow picture:…
-
0
votes0
answers65
viewsSite does not display CSS after Publication
After publishing my site, css does not load across the entire page, getting only in HTML. I am using Bootsrap Less. My structure: Bundle: using System.Web; using System.Web.Optimization; namespace…
-
0
votes2
answers51
viewsImage is not centering
Guys, I’ve tried several ways, but the image is not centering. Follow below the code to better understand the problem: .logo2 { color: pink; position: absolute; margin: 0 auto !important; float:…
-
0
votes1
answer181
viewsPrint every HTML page
I made a simple function to print the content of my site by clicking a button, but when clicking the button (Ctrl+p) the images of the site do not appear, only the content... Only appearing if user…
-
0
votes3
answers1803
views -
0
votes3
answers60
viewsHow to make a form centered on a figure
I have a figure and in its interior a form, the big problem is that when I resize the browser the figure is readjusted perfectly, however the form that is inside it comes out of the object. The…
-
0
votes0
answers44
viewsHow to exchange a video link
Well I’m having a certain difficulty in exchanging the links that are in my video, I assembled the player and put the links as is usually done but I set up a panel for exchanging links let’s say so…
-
0
votes1
answer388
viewsStart css animation in div only after opening menu
I am having doubts about starting a CSS animation only after opening the menu in the +OPEN MENU option. The animation will occur in the element <div class="product"></div> Example link…
-
0
votes1
answer32
viewsMy select does not resize to the font size. How to resolve?
I added a select in my form, but when I put the font size of 35px the select does not fit the font size, a cut occurs. See in the image below what happens: I need the font size to be really 35px,…
-
0
votes1
answer2509
viewsHow to change the font size of select options?
I have a select in my form but I can’t change the font size of the options. See image below: How to increase the font size of the list of options? Because I’ve tried font-size and nothing worked.…
-
0
votes0
answers26
viewsPage with parameter not rendering CSS
Hi, I have a problem rendering my page. When I do a route with parameter in the URL the bootstrap css simply does not render, however, if I do a route that does not have any parameter in the url the…
-
0
votes2
answers231
viewsE-mail Marketing e colspan
I am studying HTML to use in email marketing and was looking at this email here: I understood the beginning of the code, but did not understand the application of colspan: <tr> <td>…
-
0
votes1
answer73
viewsHow to keep the layout on the left side fixed, while the content on the right side is scrolled on the page
I’m creating a layout in which the main menus of the site are on the left, and the right is the content of the site, open the whole page to get better to view: <!doctype html> <html…
-
0
votes1
answer39
views@media does not change content
Good I was trying to make the responsive of a website but when I went to change things to mobile just did not change anything and I do not know how to solve. I have a script that makes my carousel…
-
0
votes2
answers113
viewsIs there only display inline and block by default in the elements or others?
I see a lot on the Internet talking so much about just display: inline and display: block, but in tables, for example in the element <table> his display is display: table, I wonder if: There…
-
0
votes2
answers137
viewsAdjust the inline bootstrap form inside the rotary banner and adjust the fields
I have a form that I tried to put in the middle of a revolving banner, but it stayed that way: How I would center in the middle of the banner and the fields get more harmonic within the div?…
cssasked 7 years, 3 months ago user24136 -
0
votes2
answers167
viewsHow to check if several dynamically created input is empty?
I have this Input that is generating via Knockoutjs: <input type="text" class="req" placeholder="" data-bind="value:Request" /> But I have to check if it is empty and if I am applying a…
-
0
votes1
answer73
viewsChange style of repeated classes differently with CSS
I have a "test" class with a stylization and soon after I have another "test" class. What I’d like to know is how to change the style of the other class differently from the first. What limits me to…
-
0
votes1
answer197
viewsSort Both by Publication Date and by Update
Guys I’m setting up an Index and I’m trying to do the following... I will have this 'mini highlight' and at the moment I managed to order it by only DATA, but a few times the news will be updated…
-
0
votes1
answer83
viewsHow can I use CSS styles in windows Forms c#
I have a lot of difficulties in doing the graphical part of the programs, someone who can help me with some simple example, it doesn’t have to be very complex, because this is a final course work.…
-
0
votes1
answer74
viewsIs it possible to add dependencies manually in Vuejs?
I’m starting my first project using the Framework Vue.JS, I know that by Vue UI it is possible to open the Vue CLI allowing us to add plugins and dependencies to the project. I have dependencies…
-
0
votes1
answer289
viewsShow/Hide "a div" by clicking on radio button
How do I, when dialing a radio buttom, release a content from a div? Type this example only using radio buttom! Thank you <label>Mostrar termos:</label> <input type="checkbox"…
-
0
votes2
answers95
viewsBold font CSS Doubt Basica
Hi, I’m trying to paste the font thicker, but I couldn’t get as far as I know the font-Weight code: I would do this. When I use: font-weight: 500; The source becomes normal, more when I use:…
-
0
votes2
answers971
viewsHow to fix content to the right inside a navbar?
I’m developing a website and I need to leave a lead pickup fixed on top, along with the top menu, to the button direct (as shown in the image). .lp-menu{ min-height: 70px; background-image:…
-
0
votes3
answers892
viewsI can’t get one div stuck on the other
I want to put the 3 divs on the same line with width: 33.3333%, but a space is appearing between them. Note in the image that the padding, margin and borda are zero, and I have declared…
-
0
votes1
answer65
viewsHow do CSS’s "mix-blend-mode" property work in Internet Explorer and Edge?
I made a gradient layer that goes over some images in my project with the following CSS code: { background: linear-gradient(45deg, rgba(32, 51, 108, 1), rgba(237, 17, 100, 1)); mix-blend-mode:…
-
0
votes1
answer49
viewsSwitching of Browsers
I made my site with bootstrap, and I’m having some problems, in Mozilla the site is viewed normally, already in Chrome this distorted confirm the images, Somebody’s got a tip on how to fix this??…