Skip to content

Instantly share code, notes, and snippets.

@juanres
juanres / css flex sample
Created August 29, 2019 02:44
muestra head+contenido sentido columna
header{
height: 10vh;
background: grey;
position: fixed;
top: 0;
left: 0;
right: 0;
}
section{
@juanres
juanres / flex sample html
Created August 29, 2019 02:43
muestra head+contenedores hacia abajo
<!DOCTYPE html>
<html lang="es" dir="ltr">
<head>
<meta charset="utf-8">
<title>Base Flexbox</title>
</head>
<body>
<header>
<nav>
@juanres
juanres / condicional css IE
Created August 28, 2019 13:38
para usar embebed en head
<!--[if IE]>
<style type="text/css">
/************ css for all IE browsers ****************/
.beneficio_desk{
top: 20vh;
}
</style>
<![endif]-->
@juanres
juanres / Divi section import from page
Created March 1, 2018 13:22
import from module taking its ID
<?php
get_header();
echo do_shortcode('[et_pb_section global_module="5306"][/et_pb_section]');
$show_default_title = get_post_meta( get_the_ID(), '_et_pb_show_title', true );
$is_page_builder_used = et_pb_is_pagebuilder_used( get_the_ID() );
?>
If the cube is directly inside the container:
#container:hover > #cube { background-color: yellow; }
If cube is next to (after containers closing tag) the container:
#container:hover + #cube { background-color: yellow; }
If the cube is somewhere inside the container:
@juanres
juanres / Triangulo css izquierda
Created December 3, 2013 20:54
Triangulo css izquierda
.izquierda {
width: 0;
height: 0;
border-top: 20px solid transparent;
border-bottom: 20px solid transparent;
border-right:20px solid blue;
}
@juanres
juanres / Triangulo css derecha
Created December 3, 2013 20:54
Triangulo css derecha
.derecha {
width: 0;
height: 0;
border-top: 20px solid transparent;
border-bottom: 20px solid transparent;
border-left: 20px solid green;
}
@juanres
juanres / Triangulo css abajo
Created December 3, 2013 20:52
Triangulo css abajo
.abajo {
width: 0;
height: 0;
border-left: 20px solid transparent;
border-right: 20px solid transparent;
border-top: 20px solid #f00;
}
@juanres
juanres / Triangulo arriba
Created December 3, 2013 20:52
Triangulo Css hacia arriba
.arriba {
width: 0;
height: 0;
border-left: 20px solid transparent;
border-right: 20px solid transparent;
border-bottom: 20px solid black;
}
@juanres
juanres / gist:6912233
Created October 10, 2013 02:45
CSS: condicional pantalla portatil mediaquerie
/* CONDICIONAL pantalla portatil */
@media only screen and (max-width : 1224px){
}