Questions tagged as 'css'

2
answers

Apply properties to an element only if it belongs to a class

I want to apply css to these elements ul { list-style-type: none; margin: 0; padding: 0; width: 200px; background-color: #f1f1f1; } li a { display: block; color: #000; padding: 8px 16px; text-decoration: no...
asked by 01.04.2018 / 14:18
2
answers

How to position a button anywhere on the screen, in html

I'm trying to position a button type button in the center of the screen. For this, I put it in a div , and applied to that div a css that arrows its position in the window. However, the button continues to appear in the left corne...
asked by 11.04.2018 / 22:11
2
answers

How to create a menu of tabs like Stack Overflow

I would like to know how I can do to have two links as tabs, for example: <a href="#">Abrir Elemento 01</a> <a href="#">Abrir Elemento 02</a> and clicking on one of these links opens a div with the content co...
asked by 07.10.2017 / 05:04
2
answers

Creation of columns in the foundation

I am doing an online foundation framework course but I am not able to do column creation, just the lines, I have already tried two ways: <div class="row"> <div class="small-1 medium-1 large-1 columns red"> 1 coluna </div&...
asked by 30.01.2018 / 19:02
1
answer

There is no CSS effect

I'm developing a web application and I would like the mouse to move the icons to change color and not show that line underneath the icons but houver does not work. HTML <div class="header-fixed"> <div class="container">...
asked by 16.10.2017 / 01:53
1
answer

Always pick up the second li

I have some columns, made with ul li <ul> <li>1</li> <li>2</li> <li>1</li> <li>2</li> <li>1</li> <li>2</li> <li>1</li> <li>...
asked by 27.09.2017 / 22:16
1
answer

How to position the form in the center of a DIV?

body{ background: #EFEFEF; font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, "sans-serif; } .create-box{ background: #DF5B5D; border: 10px dashed #FEFEFE; max-width: 550px; min-height: 8...
asked by 06.03.2018 / 22:54
2
answers

How to test site in different sized screens

I'm creating a website, but it's still only on my machine in localhost, how do I test on different screen sizes, for example on smartphone screens, androids, SOS, but, firefox, chorme ... I want this site to be compatible with all the screens, I...
asked by 08.03.2018 / 00:37
2
answers

CSS and JScript - Resize image onClick

Good afternoon !! Home I'm trying to run the following code however I'm not aware how to resize the image to the size of the div, so it cuts the image and takes only the center :( Can you help me?? function clickImagem(src) { $('#con...
asked by 26.09.2017 / 19:13
2
answers

Save after hiding a div

I use a Jquery code to hide a div, and I would like that when I click the close button it will save and prevent it from being displayed again to the user when the page is reloaded. $(document).ready(function() { $(".info-game--remove")...
asked by 21.11.2017 / 16:50