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
votes2
answers955
viewsChange the image size according to its URL
good morning! I researched (and even found a js called Holder.js that apparently does what I want, but I couldn’t understand it) a way to do the following: Image URL at 700x700 ->…
-
2
votes2
answers1078
viewsPagination of Divs
I have a div with a ul and within 30 li. Within that li has a img. I want when I have a new one li, in case number 31, it creates a pagination, leaving this new li inside the other div. Someone has…
-
2
votes5
answers25953
views<input type="image" ...> with LINK and HOVER
I can not put an effect on a button, I have 3 images made in photoshop, one that is Normal (Link), another when you pass the mouse (Hover), and one when you click (Actived), however, I can not…
-
2
votes3
answers3156
viewsPosition image to the right and top
With that code, I can keep the image right: <a class="navbar-brand navbar-right"><img src="~/Images/ache.jpg" /></a> But this image is inside a menu bar. I have an image and I…
-
2
votes1
answer9410
viewsActive link with CSS :active
Guys, I usually make a php code inside my class="" to show in bold for example a specific menu that is active. <div class="menu-up"> <ul> <a href="index.php?url=menu"><li…
-
2
votes2
answers11265
viewsHow to edit the CSS of an iframe?
I need to put a iFrame on my website using the following code: <iframe allowtransparency="true" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"…
cssasked 10 years, 3 months ago Alexandre Lopes 2,769 -
2
votes2
answers22863
viewsDiv’s with input and label on the same line
My situation: I have a form in which the fields are arranged vertically, and with the label aligned to the right and left, as shown in the image below: I wish to leave at least 2 fields per line for…
-
2
votes2
answers38
viewsCan I have different Transitions on the same tag?
Hello folks would like to know if I can have more than one Transition on the same tag? Why do I implement Transitions for the properties but it doesn’t work? *Or this is because I haven’t set the…
-
2
votes4
answers549
viewsElement does not take the parent background
I have a background red colored, that I formatted him in the body, and I have a background white color content. Tag <h2> with the following text Whats language do you want is inside, and is…
cssasked 10 years, 3 months ago Anderson Menezes 81 -
2
votes1
answer405
viewsBox in the middle of the page according to the resolution
I’m trying to position a box in the middle of the screen and regardless of the resolution the text inside it does not leave the box... Well, I can do two things: position it in the middle, but when…
-
2
votes1
answer179
viewsSELECT display difference between browsers
I have the following code HTML that marks a SELECT: <select name="filtro"> <option value="">Mais visualizados</option> <option value="">Menos visualizados</option>…
-
2
votes1
answer93
viewsIncompatibility of Javascript Code
I’m using a script to switch a block with Nav Tabs, the first part of the code works normally, but the part where I request the border-color and play to the other field is only working in Chrome,…
-
2
votes3
answers248
viewsDisplay images from right to left
I am currently having a problem with my code because I need the images to be displayed on the screen but that they come from right to left. The default is we put the codes <img> and they are…
-
2
votes2
answers2112
viewsFixing Elements in the DIV
I’m building an HTML page with some Divs, and inside one of them there is a input and a button. But when I zoom out, the Ivs stay aligned the right way, but the button and the input come out of the…
-
2
votes2
answers1113
viewsTooltip or Hint in rowEditor in Primefaces
I have a problem, I wanted to add a tooltip or hint by hovering the mouse over the edit, confirm and cancel icon roweditorand celleditor of Primefaces. I’ve researched and tried using css but it…
-
2
votes1
answer94
viewsCorrect declaration in menu listing CSS
I have a menu listing and would like to know the correct way to declare in HTML+CSS. The HTML is like this: <ul class="menu"> <li>Home</li> <li>Empresa</li>…
cssasked 10 years, 3 months ago Felipe Viero Goulart 3,693 -
2
votes1
answer601
viewsproblem with CSS with Primefaces
I’m trying to get the edges of the field Modality, being that I can’t, I’m thinking a pesteira that I’m wrong. <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD…
-
2
votes1
answer964
viewsView engine alternatives for nodejs?
Alternatives that are not Jade and similar, I try to know alternatives that can write the complete syntax (HTML and CSS)?
-
2
votes2
answers71
viewsHow to apply Opacity to IE8
I have a line that applies an opacity in a Background, with this CSS: .teste{background-color: rgba(27,18,9,0.9);} We all know that IE8 does not accept opacity, there is some hack for this?…
cssasked 10 years, 2 months ago Felipe Viero Goulart 3,693 -
2
votes1
answer354
viewsCreate a web form generator
I need to create a web form generator, ie create the form, fields, validations, CSS so that this structure goes to a data repository and when consulting the structure mount on the screen the form.…
-
2
votes1
answer116
viewsHow to inactivate the empty area of a div?
I have a div on add mouse events but wanted the mouse hit only to work where content existed and ignore the po ex margins. Follow the image( the yellow area is the area I want to 'inactivate' since…
-
2
votes2
answers1218
viewsIncrease Size Field Balls for Password
i want to increase the size of the "balls" of a password input, I thought input { font-size:140% /*exemplo*/ } for example. However, only the bar that keeps blinking at the time of typing that…
-
2
votes1
answer105
viewsAffix does not stop correctly at the footer
I’m trying to create an Affix with Bootstrap but I’m having trouble getting it to stop properly in the footer. He bends, and the class .affix-bottom is not applied correctly. When step offset bottom…
-
2
votes1
answer435
viewsPlace line-height of same font-size size
When I apply the size of a font through the font-size, I always wonder if I should use line-height also. For the font and line have the same size. Yeah, let’s face it, it gets boring to hit margin…
cssasked 10 years, 2 months ago Felipe Viero Goulart 3,693 -
2
votes1
answer970
viewsSetting a margin in a background image
Consider the following html code: http://jsfiddle.net/qt7dsx7b/ In the fiddle a div was defined with an image located in the upper right corner. It turns out I would like to add a margin between the…
-
2
votes1
answer67
viewsImage breaks the title
I have an image and underneath it I have a title, next I have three block. Follow the image: But when I add just one line of title, it breaks, the image ends up descending. I wanted to make the…
-
2
votes2
answers340
viewsApply jQuery effect to the current HTML element?
I have the following code that when I put it to run, it gives display:None and display:block on all elements and I would like you to apply this effect only on the current element: //jQuery $(…
-
2
votes2
answers1400
viewsAdjust horizontal and vertical orientation on Bootstrap
My horizontal page is the way I want it: But if you leave the vertical cell phone she’s getting like this: How to make it vertical as follows? Follows my code: <div class="row"> <div…
-
2
votes1
answer7046
viewsHow to execute a function when the mouse is over a given element?
How to create a generic javascript function that runs only on the element the mouse is currently on top of?
-
2
votes2
answers12400
viewsModal window with database contents
I even know the PHP and Javascript, the problem is that I do not know how to create the modal dynamically for each click on a link, bring specific information from that link. If you click on user 1,…
-
2
votes2
answers841
viewsProblem with jQuery open/close Divs
I have a jQuery that I made to open and close a div by clicking on the corresponding question. The problem is that only the first div is opening closing, even though I click on the 3rd or 5th…
-
2
votes1
answer9637
viewsBootstrap classes for creating columns with space
I want to understand the classes of Bootstrap, when using the span and offset, and how to give a space between the columns?
-
2
votes1
answer1852
viewsModal bootstrap does not load Google Maps v3 correctly
People I have the following problem, when loading Google Maps v3 in a Modal with the Bootstrap Framework the map is not displayed correctly. Follows the code: <!DOCTYPE html> <html>…
-
2
votes2
answers1770
viewsrandom background-color on div without the same color repeating twice consecutively
Well I want to create a sequence of DIV, only that I want each DIV have in your background-color a previously settled random color, type black, yellow and green, but I do not want these colors to…
-
2
votes1
answer3504
viewsDisplay block with Onclick
Hello, I do not know mecher a lot with javascript and needed help, I would like to make a menu that when clicked change the display of a display div:None to display:block. My menu <div…
-
2
votes1
answer45
viewsFix for Nth-Child(n)
Is there any fix for the :nth-child(n) CSS3? to run on IE8? Because, I have a CSS file that I used this selector, it does not only run on IE8
-
2
votes1
answer55
viewsBackground com Perdas
I am working with bootstrap and I have a high definition image that will be used as the background of an area. What happens is I have two problems: 1º My background has to adapt with losses to…
-
2
votes1
answer64
viewsStyle not propagate for parents
I have several elements inside each other and when I hover the mouse with the Hover it adds an edge to identify the element, however, as all have the same class, all items grab the edge. I want only…
-
2
votes1
answer1334
viewsfloat on some element, and div does not track content
I’m trying to float an element to the right, and this element is inside a div no set size. The problem is that when I float the element p to div does not follow the content. Follow the HTML code:…
-
2
votes2
answers69
viewsProblem with the font property
I’m using several properties in one. For example, instead of me using font-family, font-size, I’m only using font, as below: .topoMenu li{ font: 20px 'Ubuntu', sans-serif, #000, 300; } The last is…
cssasked 10 years ago Felipe Viero Goulart 3,693 -
2
votes3
answers7373
viewsHow to Rotate an Image in the Background?
How I’m sending in Image in sequence: I want to make this globe do a rotation, it’s a perfect circle representing a world globe. After figuring out how to rotate the background with CSS or not. I…
-
2
votes1
answer252
viewsReturn element values without a certain class
I have a list of images, and I need to return a value of these images to then assign some commands. The problem is that in some <li> there will be a class called off and needs to be…
-
2
votes4
answers2562
viewsDefinition of "margin-top" in percentage of a "div" works strangely
I own a page .xhtml and the first element to be placed is a div(content) and I set for her a higher margin(margin-top) of 30%. Supposedly, from what I understand, this percentage should be taken…
-
2
votes1
answer334
viewslast item of the <li> list is not down even if you have space
I’m making a very simple site in HTML5 and pure CSS So I created an inline-block list of 4 items and each item is a large square whose sizes have to align to the header and such. The problem is that…
-
2
votes2
answers3622
viewsMultiple Divs with Same Responsive Height
I have four five Ivs, one of which is a container for the other four. Structure: <div id="divPai" style="width:100%"> <div id="divInfUser" style="width:25%; height: 30%; background-color:…
-
2
votes3
answers108
viewsVertical-align does not align <li>’s
Guys, I have a problem using vertical align. Mine <li> from the initial menu is 80px high and set to be aligned in half. Only it does not work, Ué. http://jsfiddle.net/rhbogwx7/…
-
2
votes2
answers2403
viewsPosition a section of the layout below a FIXED header
-> I have a layout whose header is fixed at the top. -> Only that the Section just below is below it and does not follow the same flow(normal) In this case what is the best way to make the…
-
2
votes1
answer585
viewsEmail Subscription in Gmail
I created an email signature in HTML, in Thunderbird it works, but in Gmail she Buga, does not seem to interpret the css. <html lang="pt-br"> <head> <meta charset="UTF-8">…
-
2
votes2
answers193
viewsWhen to use Em or %?
I’m studying responsive layout and already know that to create a flexible part it is necessary to use relative measure like Em and %. But I still can’t understand what the real difference between…
-
2
votes1
answer473
viewsI can’t solve a goal using ":Hover". What to do?
I’m doing an institutional website and it’s a kind of web-design agency, only it’s more to learn. Then at HOME I made several little blocks with links to the service pages. And in each block my…