10/09/2015, 02:19
|
| | Fecha de Ingreso: mayo-2015
Mensajes: 92
Antigüedad: 9 años, 7 meses Puntos: 1 | |
Respuesta: centrar contenido y este es el código CSS
Código:
body, p, footer {
margin: 0 auto;
height: auto;
}
body {
width: 100%;
height: auto;
}
header {
width: 100%;
background-image: url(../img/candranc.jpg);
background-size: cover;
}
header div.logo {
width: 17%;
margin: 0 auto;
}
header img {
width: 100%;
height: auto;
}
header div.logo img {
width: 100%;
}
.barra {
width: 100%;
font-family: 'Calligraffitti', sans-serif;
margin: 0 auto;
border-top: 1px solid #00fa9a;
overflow: hidden;
height: 35px;
background-color: rgba(002, 002, 002, 0.5);
}
.btn {
font-size: 1em;
padding: 0;
float: left;
list-style: none;
position: relative;
left: 50%;
}
.btn-bar {
text-align: center;
float: left;
margin-left: 2.5em;
position: relative;
right: 50%;
height: 0.5em;
font-size: 1.1em;
}
.btn-bar a {
color: #00fa9a;
text-decoration: none;
}
.btn-bar a:hover {
color: white;
text-decoration: none;
}
.btn-bar a:active {
color: white;
text-decoration: none;
}
.btn-bar a:current {
color: white;
text-decoration: none;
}
h1 {
font-size: 1.5em;
color: #444;
text-align: center;
font-family: 'Calligraffitti', sans-serif;
}
h2 {
font-family: 'Calligraffitti', sans-serif;
font-size: 1em;
color: #444;
text-align: center;
}
article {
margin: 0 auto;
/* padding: 1em; */
/* display: inline-block; */
height: auto;
/* float: left; */
width: 100%;
}
article h2 {
font-weight: bold;
font-size: 4em;
text-align: center;
}
p.descripcion {
width: 70%;
text-align: justify;
margin-top: 1.5em;
}
article p {
margin: 0 auto;
font-size: 1.2em;
font-style: oblique;
color: #999;
font-family: "Courier New", monospace;
}
.boton {
border: 0;
width: 80%;
font-size: 2em;
background-image: url(../img/icono1.png);
background-repeat: no-repeat;
border-radius: 100%;
height: 4em;
background-position: center;
}
boton .botonaco a {
background-color: white;
}
.container h2 {
color: #00fa9a;
display: block;
width: 100%;
font-size: 4em;
font-weight: bold;
clear: left;
margin-top: 1em;
}
.row {
width: 100%;
margin: 0 auto;
margin-right: -15px;
margin-left: -15px;
margin-bottom: 3em;
}
.col-lg-12 {
width: 100%;
clear: left;
padding: 0;
}
.col-lg-4 {
margin: 0 auto;
margin-left: 2em;
float: left;
width: 18%;
}
.col-md-5 h2 {
font-size: 1.7em;
color: #333;
}
.col-md-5 li {
list-style: none;
margin-top: 1em;
}
.columnas p {
width: 30%;
border-radius: 100%;
}
.col-xs-3 {
width: 40%;
display: inline-block;
background-color: yellow;
}
.col-lg-3 {
width: 100%;
}
.col-lg-3 h2 {
color: #444;
font-size: 1.3em;
font-weight: normal;
float: left;
}
.table-responsive {
width: 70%;
margin: 0 auto;
margin-top: 1em;
border-radius: .3em;
background-color: #00fa9a;
color: white;
font-weight: bold;
font-size: 1.2em;
}
#skills {
margin-top: 4em;
background-color: white;
}
footer {
background-color: rgba(002, 002, 002, 0.8);
margin-top: 1em;
color: white;
font-family: sans-serif;
clear: both;
text-align: center;
background-size: cover;
padding: 0.3em;
padding-left: 1em;
}
footer a {
color: white;
text-decoration: underline;
}
footer a:hover {
color: white;
}
.go-top {
position: fixed;
bottom: 2em;
right: 2em;
text-decoration: none;
color: #fff;
font-size: 12px;
padding: 1em;
display: none;
}
.p-body {
margin-top: 3em;
font-family: 'Voltaire', sans-serif;
font-size: 1.2em;
text-align: justify;
width: 85%;
margin: 3em auto;
}
.p-body-img {
margin-right: 2em;
float: left;
margin-bottom: 4em;
}
.timeline-cursos {
clear: both;
}
/* estilos timeline */
.img-icon {
width: 100%;
text-align: center;
}
.timeline-image {
width: 80%;
margin-top: 5em;
margin-left: 7em;
margin-bottom: 3em;
}
.timeline-panel {
float: left;
width: 100%;
margin: 0 0 0 2em;
}
.timeline-heading {
margin-left: 2.2em;
}
.timeline-heading h4 {
color: #00fa9a;
font-size: 1.4em;
font-weight: bold;
text-align: center;
font-family: 'Voltaire', sans-serif;
}
h4{
margin: .5em auto;
font-family: 'Paytone One', sans-serif;
}
h2.subheading {
color: #00f49b;
font-size: 2em;
}
h4.subheading {
color: #444;
font-size: 1em;
font-family: 'Voltaire', sans-serif;
}
h5.subheading {
color: #7D7C7C;
font-size: 1em;
margin-bottom: .5em;
text-align: center;
font-family: 'Voltaire', sans-serif;
margin-top: 0;
}
p.text-list {
text-align: center;
margin-bottom: 3em;
font-family: 'Voltaire', sans-serif;
}
.footer-section {
width: 100%;
margin: 0 auto;
}
.footer-section a {
width: 100%;
margin: 0 auto;
}
section.img_publi {
margin-left: 4em;
}
section.img_cart {
margin-left: 4em;
}
section.img_corp {
margin-left: 4em;
}
section#contact {
background-color: #222;
background-image: url(../img/map-image.png);
background-position: center;
background-repeat: no-repeat;
}
.btn-xl {
border-color: mediumspringgreen;
border-radius: 3px;
text-transform: uppercase;
font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 20px;
font-weight: 700;
color: #fff;
background-color: mediumspringgreen;
margin-bottom: 3em;
width: 10%;
}
@media screen and (min-width: 240px) and (max-width:480px) {
.p-body-img{
margin: 0 auto;
display: block;
float: none;
width: 50%;
}
.p-body{
margin: 0 2.4em;
font-size: 1em;
}
/*
h5.subheading{
width: 100%;
margin: 0 auto;
margin-left: 2em;
} */
.col-xs-4{
width: 100%;
margin: 0 auto;
}
.timeline-image {
width: 100%;
padding: 0;
margin: 0 0 0 1em;
text-align: center;
clear: both;
}
.img-icon{
width: 80%;
padding: 0;
margin: 0 auto;
text-align: center;
}
.timeline-heading {
margin: 0 auto;
width:100%;
}
section {
margin: 0 auto;
}
/*
.text-list{
margin-left: 3em;
}
*/
.col-lg-3<img{
width: 25%;
background-color: coral
}/*
|