Questions tagged as 'css'

3
answers

How to make background that repeats with sprites?

I was creating a button with background: done with a sprite , however, it all goes wrong, I want it to look like this: But it's all bugged, like this: MyCSS:.botao{background:url(http://testetabela.esy.es/botoes.png)00;col...
asked by 04.05.2014 / 05:23
2
answers

Can I change the vertical order of divs by CSS?

I have the following layout of an automatically generated page: I'dliketobringtheSource,totheDate(justbelow).ButIcannotchangearrangementofgeneratedelements.IcanonlychangeatemplatewiththeexternalHTMLelements,adivoutofallthatcontent,CSS.Thispag...
asked by 11.06.2014 / 15:58
3
answers

How to go to a link when clicking a div without using href

I need to redirect the page to a specific link by clicking a div , without using <a href> of HTML. I'm using HTML, CSS and jQuery and PHP. Here's a snippet of code: <div id="btn-oculto2" style="display:none;">...
asked by 01.01.2015 / 15:23
5
answers

How to embed CSS in HTML tags?

I have a CSS file containing the following code. .texto{ Color: Red; } I have the HTML file with these tags : <html> <body> <span class="texto">TEXTO 1<span> <span class="texto">TEXTO 2<span> <sp...
asked by 05.11.2014 / 19:54
2
answers

How to do 3D Text with CSS

Is there any way to get this result with CSS only? Do a kind of 3D effect in text breads with CSS? Type the image below? body { background-color: #880000; } h1 { color: #fff; font-size: 100px; font-family: sans-s...
asked by 04.10.2018 / 20:06
2
answers

How to switch images when clicking on a checkbox?

In my script I'm making a placeholder, but I can not get it to switch images after click in checkbox , and all the time table chairs are misaligned. Type: checked checkbox shows the red chair checkbox unchecked shows the red...
asked by 01.01.2016 / 20:11
2
answers

How to put two divs next to a container?

How do I put two divs, one on the left side and one on the right side of a container with the bootstrap? Being that you would like the side divs to increase in size according to the screen.     
asked by 11.09.2015 / 23:20
3
answers

How to use ellipsis css3?

I'm trying and I'm doing the same explains in w3schools but it's not working. .box { width: 250px; text-overflow: ellipsis; border: 1px solid #000000; } <div class="box"> Lorem ipsum dolor sit amet, consectetur ad...
asked by 28.03.2017 / 00:56
3
answers

How to stylize the "clean" icon of the input type search?

I need a way to style the × icon that is at the end of input[type="search"] . The input type search when focusing on the element, it has an × if it has a value filled in. Example: InoticedthatwhenItypetheinputsearch,this"x" often...
asked by 22.05.2017 / 18:04
2
answers

Check if it's the class

How do I check with JavaScript if it's really that class in CSS? Example: if(é a class) { } or another example, if not the class if(!.minhaClasse) { } Is there any way to do this with pure JavaScript?     
asked by 19.07.2017 / 20:59