Ir para conteúdo

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

lezão

Slide com width 100%

Recommended Posts

Ola galera, boa tarde!

Estou precisando de uma ajudinha aqui, já procurei na net por todo canto e naun consegui realizar o que estou precisando!

Tenho um slide q ele apenas fica no centro da pagina, eu gostaria q ele ficasse com a largura 100% de um canto no outro, tenho uma imagem que tem a resolução 1000px por 400px.

Alguém poderia me dar uma luz divina????

vejam o Css do slide

/* http://www.menucool.com */

#sliderFrame 
{
    position:relative;
    width:100%;
    margin: 0 auto; /*center-aligned*/
}
  
#slider, #slider div.sliderInner { 
    width:100%;height:400px;/* Must be the same size as the slider images */
-webkit-border-bottom-right-radius: 0px;
-webkit-border-bottom-left-radius: 0px;
-moz-border-radius-bottomright: 0px;
-moz-border-radius-bottomleft: 0px;
border-bottom-right-radius: 0px;
border-bottom-left-radius: 0px;
}

/* make video and audio to have rounded corners */
#slider iframe, #slider div.video, #slider audio { border-radius:0px #999999; }

#slider {
    background:#fff url(../imagens/loading.gif) no-repeat 50% 50%;
    position:relative;
	transform: translate3d(0,0,0);
    box-shadow: 0 0 5px 2px rgba(0,0,0,0.6);
}

/* image wrapper */
#slider a.imgLink, #slider div.video
{
	z-index:2;
	cursor:pointer;
	position:absolute;
	top:0px;left:0px;border:120;padding:0;margin:0;
	width:100%;height:100%;
}
#slider .video {
	background:transparent url(../imagens/video.png) no-repeat 50% 50%;
}

/* Caption styles */
#slider div.mc-caption-bg, #slider div.mc-caption-bg2 {
	position:absolute;
	width:100%;
	height:auto;
	padding:10px 0;/* 10px will increase the height.*/
	left:0px; /*if the caption needs to be aligned from right, specify by right instead of left. i.e. right:20px;*/
	bottom:0px;/*if the caption needs to be aligned from top, specify by top instead of bottom. i.e. top:150px;*/
	z-index:3;
	overflow:hidden;
	font-size: 0;
	border-radius: 0 0 6px 6px;/*round caption bottom corners */
}
#slider div.mc-caption-bg {
    /* NOTE: Its opacity is to be set through the sliderOptions.captionOpacity setting in the js-image-slider.js file.*/
	background:Black;/* or any other colors such as White, or: background:none; */
}
#slider div.mc-caption-bg2 {
    background:none;
}
#slider div.mc-caption {
	font: bold 14px/20px Arial;
	color:#EEE;
	z-index:4;
	text-align:center;
    background:none;
}
#slider div.mc-caption a {
	color:#FB0;
}
#slider div.mc-caption a:hover {
	color:#DA0;
}


/* ------ built-in navigation bullets wrapper ------*/
/* Note: check themes\2\js-image-slider.css to see how to hide nav bullets */
#slider div.navBulletsWrapper  {
	top:320px;/* Its position is relative to the #slider */
	text-align:center;
	background:none;
	position:relative;
	z-index:5;
}

/* each bullet */
#slider div.navBulletsWrapper div 
{
    width:11px; height:11px;
    font-size:0;color:White;/*hide the index number in the bullet element*/
    background:transparent url(imagens/bullet.png) no-repeat 0 0;
    display:inline-block; *display:inline; zoom:1;
    overflow:hidden;cursor:pointer;
    margin:0 6px;/* set distance between each bullet*/
}

#slider div.navBulletsWrapper div.active {background-position:0 -11px;}

/* --------- Others ------- */

#slider div.loading 
{
    width:100%; height:100%;
    background:transparent url(../imagens/loading.gif) no-repeat 50% 50%;
    filter: alpha(opacity=60);
    opacity:0.6;
    position:absolute;
    left:0;
    top:0; 
    z-index:9;
}

#slider img, #slider>b, #slider a>b {
	position:absolute; border:none; display:none;
}

#slider div.sliderInner {
	overflow:hidden; 
	-webkit-transform: rotate(0.000001deg);/* fixed the Chrome not crop border-radius bug*/
	position:absolute; top:0; left:0;
}

#slider>a, #slider video, #slider audio {display:none;}

veja nesse endereço abaixo as diferencias de com efeito e sem efeito.

a sem efeito se encaixa perfeitamente na tela, a com efeito naun se encaixa na tela...

http://websowzzadesign.com.br/TANAREDE/slider.asp

Compartilhar este post


Link para o post
Compartilhar em outros sites

Olá lezão

Para obter o efeito que você quer é necessário usar um plugin responsivo.
Você está usando um plugin para largura fixa de 980px.
Visite a página do seu plugin [1], escolha um responsivo e substitua o atual.

[1] - http://www.menucool.com/javascript-image-slider

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.