Questions tagged as 'css'

1
answer

align icons to: link in a list

How can I vertically align the icons (fontawesome) of a list ul li independent of the height of the li? thanks a { background: red; display:block; width: 30px; height: 60px; text-align: center; vertical-align:middle;...
asked by 21.05.2017 / 21:10
2
answers

How to apply styles to all columns?

If I have: #principales td{ margin: 20px; } <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>JS Bin</title> <...
asked by 07.09.2017 / 18:55
1
answer

I want to change my right and left of a css class from javascript and I can not

My problem is the following one I want to change the right and the left of a css from a javascript but from a resolution 1920 here is my code. var es_safari = navigator.userAgent.toLowerCase().indexOf('safari') > -1; var mediaquery =...
asked by 11.09.2017 / 16:18
1
answer

CSS pseudo-selectors do not work

I'm trying to make two lines with some features, with the class line. When I try to apply a different style to the second line, using the pseudo-selectors does not work. .linea{ position: relative; width: 40%; height: 3px; back...
asked by 02.05.2017 / 02:16
2
answers

Align HTML content to the center with CSS

I have the following styles: /*Estilos para movil*/ [class*="col-"] { width: 100%; } @media only screen and (min-width: 600px) { /* Para tabletas: */ .col-m-1 { width: 8.33%; } .col-m-2 { width: 16.66%...
asked by 22.03.2017 / 00:26
2
answers

Activate drop-down menu when the mouse passes

I am working on an ASP.NET MVC application, in which I have a menu which one of its items has a sub menu which is hidden by applying css HTML <div class="container" style="width:100%; height:100%;"> <div class="menu-wrap">...
asked by 15.03.2017 / 03:38
1
answer

Achieve the height of nav materialize

I have materialize nav-bar <!-- Compiled and minified CSS --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/css/materialize.min.css"> <!-- Compiled and minified JavaScript --> &...
asked by 24.02.2017 / 02:49
3
answers

Positioning of header, footer and aside?

The css code I have is the following header { width: 100%; height: 60px; background-color: #141616; z-index: 0; border-bottom: 1px solid #383838; color: #FFFFFF !important; position: fixe...
asked by 13.02.2017 / 01:39
2
answers

Problem changing a div's background

I have the following code $(".Div2").click(function () { $(this).css("background-color","yellow"); }); It works perfectly for me when I click, it changes to the yellow color, how it could return to the original color when I clicked or...
asked by 12.02.2017 / 01:07
1
answer

Videos as background

I am working on a website where I have to place 3 background videos and apply parallax effect in different sections of the web, in the first section I have put the background video and it is reponsive and I have no problem, the problem it comes...
asked by 19.02.2017 / 23:57