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
answer498
viewsScrolling style effect of the Instagram app
I would like to use the "scrolling" effect that instagram uses in your app, switching to camera and time-line. However I do not know the name of this effect, could tell me what it is, or give…
-
0
votes1
answer71
viewsHow to break line between php tags with css
I need to break lines between tags php using the css of figcaption, since in the html5 the tag <br> is obsolete. My code: <figcaption> <?php echo $tiporesultado; ?> <?php echo…
-
0
votes1
answer399
viewsLayout with 3 CSS columns
Does anyone know where I can find material where I can take a look at how to make this color effect on photos and how to split it into 3 columns with text on the background image?…
-
0
votes1
answer30
viewsI can’t get an element to wrap in a responsive layout
Good afternoon, I’m trying to make a layout responsive but I can’t get the product description to go under the image when the available space is too small. I tried with display:flex and float but…
-
0
votes1
answer214
viewsDo not repeat any printing page
Ola, I’m having a problem. I don’t want to print the table header (thead) on each printout sheet and currently every time I print the table and it doesn’t fit on the sheet the table header repeats.…
-
0
votes2
answers3282
viewsFix menu with bootstrap after scrolling down
I’m using bootstrap in my code Has a class in the nav of bootstrap fixing the nav in the top navbar-Fixed-top But I want the nav just stay fixed when the scroll goes through it. How do I do that? An…
-
0
votes1
answer284
viewsHow to make machine translations?
I have a page HTMLand would like to have it at various tongues However nay wanted to make a page for each tongue and edit out in HTML. There is a some way I make a external document, a JSON, I don’t…
-
0
votes1
answer43
viewsProblem with Hover
I’m starting my studies in html/css so I downloaded a layout to try to develop. I’m in a part of the site that is like a photo gallery, I managed to do exactly what I wanted, however, I had a…
-
0
votes1
answer282
viewsHow to make one page transparent above another? com php
I would like you to help me get a transparent screen above another... like, when he clicks on the button this new screen will appear and will leave the background transparent, but still with the…
-
0
votes1
answer44
viewsElement with margin-left -100% still rendered?
Elements with margin-left -100% continue to be rendered or the browser understands that they are outside the "vision area" and stop using computer resources? And when they’re with opacity: 0 and/or…
-
0
votes2
answers832
viewsLeave div and fixed elements
I have div that opens to the side by clicking the button: If I let the div with "Change City" with fixed height will solve, but the letters keep moving. Would it have some way that the elements…
-
0
votes0
answers415
viewsLoad random image in background-image using css
It is possible using css only, load random images into the background-image property of any element? For example I have a Section <section id="slide"> </section> And I have a folder…
-
0
votes2
answers471
viewsHow to create a mobile menu button with this effect? (preferably without js)
I was trying to set up a mobile site with a menu just like this http://deliveryextra-dev.viewit.com.br/ just changing the colors. until I had abandoned the project, I don’t have it now, so I will…
-
0
votes2
answers53
viewsProblem in product layout in Grid
I have the website MK Graphics where in the part of product category, specifically in Banners and also in Promotions the disposal of the products in Grid is with problem, one or another product…
-
0
votes2
answers229
viewsJS and HTML DIV - TAB KEY
Good, I want to make a kind of Scoreboard as seen in the games, but for Website... If the person Click TAB, a specific tab or div#appears... How do I do that?
-
0
votes1
answer1360
viewsHow to align a div with inline-block display?
I have a news feed that consists of two Divs inline-block. 1° - The first contains the headline and image of the news (left). 2° - The other the content of the news (right). I wish that even the…
-
0
votes2
answers946
viewsMake border-bottom stand on the same width as text
I have the following code footer ul li h3 { font: 700 15px/40px 'Roboto', sans-serif; border-bottom: 1px solid #4da494; text-transform: uppercase; color: #4da494; margin: 25px 0; width: 50%; cursor:…
cssasked 7 years, 4 months ago Felipe Viero Goulart 3,693 -
0
votes2
answers50
viewsHow to make a script that generates a random background color on the site?
Here’s my code, I don’t know what’s wrong: var x = Math.random(); if (x < 0.5) { document.getElementsByTagName('body').style.backgroundColor = "lightgrey"; } else {…
-
0
votes1
answer1349
viewsChange bootstrap btn class Hover
Hello. I have a menu with bootstrap, but a certain item is with the btn-Success class. The problem is when I hover over this item, the background turns white. As I would for the background to remain…
cssasked 7 years, 4 months ago user24136 -
0
votes1
answer30
viewsUsing active menu as input "radio"
I’m using a horizontal menu of boostrap, its structure is basically like this: <ul class="nav nav-pills"> ... <li data-type="news" id="5" role="presentation"><a…
-
0
votes3
answers52
viewsPositioning of a thumbnail
I have a site (using Wordpress) with several thumbnails, these Thumbs are centered vertically and horizontally as the image shows: How to make Thumbs show the top of the image and cut the bottom if…
-
0
votes1
answer34
viewsHow to apply the Hover effect to an element immediately before?
I have the following structure: <div> <img src="#"> <button>Teste</button> </div> <div> <img src="#"> <button>Teste</button> </div> I need…
-
0
votes1
answer87
viewsHow to create this effect/animation
I want to use this circuit board effect as animation (starting from the sides and drawing until they are in the center) on my website. But I can’t do it at all. Is there any way to do this using CSS…
-
0
votes1
answer297
viewsCenter Absolute sub menu with css
Good afternoon. I would like to know how to center my sub menu regarding the main menu. The sub menu entries are dynamic, so I can’t give a margin-left : -px because I don’t know how long my…
-
0
votes1
answer58
viewsThe site does not adapt to the mobile version
I made a site that has some images side by side, horizontally. What happens is that in the mobile version these images should be below each other and with the text below each, but these images are…
-
0
votes0
answers150
viewsHow to fix a div on the Y-axis using javascript?
I am trying to leave a div fixed on VERTICAL, and when moving the scrollbar, the rest of the contents of that same div would normally look like, I used the position Fixed, but the rest of the…
-
0
votes0
answers74
viewsHow to work effects on parts of an image?
I want to map an image, dividing it into 'n' equal parts, and apply "zoom" effects as I move the mouse over each part. A practical example would be to divide a 100x100 image into 4 equal parts of…
-
0
votes1
answer966
views -
0
votes1
answer171
viewsImage Responsive HTML
Someone can help me! I’m not being able to make the images responsive via CSS and also in bootstrap. I’m using banner-rotator-2.source with jquery, where I tried to define class="img-Responsive";…
-
0
votes1
answer161
viewsCapture document width with scroll bar
Good afternoon, I’m making a responsive site where I use CSS with media="screen" and jQuery. Problem: However Javascript and CSS do not recognize the same document width value when the page has some…
-
0
votes0
answers28
viewsHow to overlay image with a transparent background?
I have an image in an img and I want to put a black background on it, for the image to be dark, I will use this in a :Hover, I already put a div on it with black background. background-color:…
-
0
votes2
answers51
viewsProblem with fadeOut from jQuery!
Guys, I’m having a little problem here and I’ve tried to solve it in a lot of ways but nothing... I am trying to make a PRELOADER that will appear before loading the page the problem is that even…
-
0
votes2
answers584
viewsimage of banner stand on the right side
How do I get the image to be on the right side of the div? See below: The code I’m trying here is this: <div class="img img-responsive" style="background-color: #1F356A;" align="right">…
cssasked 7 years, 4 months ago user24136 -
0
votes1
answer1967
viewsSize and position of div
Hello everyone I’m trying for a div next to another div as you can see below, I’m not sure what I’m doing wrong here’s the code: .div { background-color: #cecece; margin-right: 700px;…
-
0
votes1
answer220
viewscurrent page effect css and jquery?
I have a menu like this: | HOME | NEWS | ABOUT | OTHERS | that menu has background white, but I want to do the following, if I’m on the news page I want the background stay blue, like that wp theme?…
-
0
votes4
answers130
viewsHow to apply a rule to a specific element?
I need to leave an image Blur, I’m applying the CSS this way: <style> img { -webkit-filter:blur(5px); filter: blur(5px); } </style> But when I add this property it passes to all images…
cssasked 7 years, 4 months ago who who who who 653 -
0
votes1
answer66
viewsHow to predict menu size to not break
I have a menu that is manageable. The client has placed many items on li With this the menu threw some items down, superimposing the banner that is below. Is there any way I can predict the menu…
cssasked 7 years, 3 months ago Felipe Viero Goulart 3,693 -
0
votes1
answer28
viewsalignment between div
Guys I rode a container and a flap system using css, but I’m having trouble putting the flaps inside the container. My problem is that the container does not follow the size of the tabs, someone…
-
0
votes1
answer544
viewshow to leave the video without the transparent background?
I’m using a transparentbox with youtube videos inside it, how do I leave the videos without the transparent background? my website…
-
0
votes1
answer25
viewsArquivos Statics
Does anyone know how to use the files statics to improve site performance and speed? Like the great ecoomerces use: static1.netshoes.net/resources/lind/netshoes/lindd.min.js…
-
0
votes0
answers35
viewsImage deforms when changing page
Hello, I made a first index.html file in which you have a footer with some information and small images. Then I created other secondary pages with the same footer ( exactly the same ) only the…
-
0
votes2
answers1286
viewsHow to get the value of an attribute in Jquery?
Here’s what I need to do: when a person clicks on an image, the display attribute of a 'ul' is changed to block, and then, when that person clicks again, the attribute value is 'None'. I wanted to…
-
0
votes1
answer34
viewsHelp with Div handling
Good afternoon. I need help handling a Div. In theory, I only have to pass a 'curved' div over another, but not just a circle, but something softer, as in the print below: https://ibb.co/nzGLPk How…
-
0
votes1
answer211
viewsDiv Centralizada
This div of mine is not in the middle of the screen, this wrong CSS style ? <div style="position:absolute;margin:auto;"> <img src="assets/img/PHP.png"/> </div>…
-
0
votes1
answer2731
viewsI can’t center the image!
How I center a image within a DIV? (html)
-
0
votes1
answer125
viewsHow to hide two Divs inside each other with Javascript?
I am facing a problem when trying to hide two divs, ie one inside the other. I can only hide one div the other is visible. Follow what I’m using: Java Script: <script type="text/javascript">…
-
0
votes1
answer171
viewsHow do I get my images to fill any canvas in css
I’m not able to fill the entire css screen with my images. body { padding:0; margin:0; } *{ list-style:none; } /* Fazendo reset */ a{ text-decoration:none; } /* Links sem efeitos */ /*…
cssasked 8 years, 3 months ago Mauro Santos 672 -
0
votes1
answer492
viewsSpacing between Background
Good afternoon. I wonder if it is possible to give a spacing between 'Background-repeat'. I mean, I am with something like this: Image with example My CSS is like this: background-image:…
-
0
votes3
answers5589
viewsGrab child element in css
I have the following html structure: <div class="box1"> <p>texto</p> <p>texto</p> <p><img src="imagem1.jpg"></p> <p>texto</p> </div>…
-
0
votes1
answer248
viewsHow to change the face of the site when accessed by mobile?
Situation: I have a website with designer for large screens, I created a template for mobile, like an app. That’s why I want this template to be shown only when accessed by mobile, instead show the…