firefox:
chrome:
does anyone know why this is happening in Firefox? it's driving me nuts
here is the css:
#gallery_grid .gallery_grid_item,#related_topics .gallery_grid_item,#popular_galleries .gallery_grid_item {
position:relative;
overflow:hidden;
display:block;
text-decoration:none;
}
#gallery_grid .gallery_grid_item {
width:288px;
height:260px;
box-shadow:0 1px 3px rgba(34,25,25,0.4);
-webkit-box-shadow:0 1px 3px rgba(34,25,25,0.4);
-moz-box-shadow:0 1px 3px rgba(34,25,25,0.4);
transition:margin .1s;
-moz-transition:margin .1s;
-webkit-transition:margin .1s;
-o-transition:margin .1s;
margin:15px;
}
#gallery_grid .gallery_grid_item:hover {
margin:13px 15px 17px;
}
#gallery_grid .gallery_grid_image_wrapper {
width:100%;
height:190px;
overflow:hidden;
}
#gallery_grid .gallery_grid_image {
min-height:100%;
}
#popular_galleries .gallery_grid_item,#gallery_grid .gallery_grid_item {
border:1px solid #999;
}
#related_topics .gallery_grid_item {
border:0!important;
width:242px;
height:140px;
overflow:hidden;
background:#181818;
margin:0;
}
#popular_galleries .gallery_grid_item {
width:200px;
height:140px;
letter-spacing:-.05em;
background:#181818;
margin:0 0 15px;
}
#popular_galleries.upsell .gallery_grid_item {
height:200px;
}
#related_topics .gallery_grid_item:nth-child(even) {
border:1px solid #777!important;
border-width:0 1px;
}
#gallery_grid .gallery_grid_item:hover,#related_topics .gallery_grid_item:hover,#popular_galleries .gallery_grid_item:hover {
border:1px solid #86d3ff;
}
#gallery_grid .gallery_grid_image,#related_topics .gallery_grid_image,#popular_galleries .gallery_grid_image,#related_topics .gallery_list_image {
width:100%;
overflow:hidden;
opacity:.9;
filter:alpha(opacity=90);
transition:opacity .1s;
-moz-transition:opacity .1s;
-webkit-transition:opacity .1s;
-o-transition:opacity .1s;
text-align:center;
display:block;
margin:0 auto;
}
#gallery_grid .gallery_grid_item:hover .gallery_grid_image,#related_topics .gallery_grid_item:hover .gallery_grid_image,#popular_galleries .gallery_grid_item:hover .gallery_grid_image,#related_topics .gallery_list_item:hover .gallery_list_image {
opacity:1;
filter:alpha(opacity=100);
}
#popular_galleries .gallery_grid_info,#related_topics .gallery_grid_info {
width:100%;
position:absolute;
bottom:0;
font-weight:500;
}
#gallery_grid .gallery_grid_info {
height:62px;
}
#related_topics .gallery_grid_info {
height:54px;
}
#popular_galleries .gallery_grid_info {
height:58px;
}
#related_topics.grid .gallery_title,#popular_galleries .gallery_title {
color:#fff;
text-shadow:1px 0 1px #000;
font-size:15px;
line-height:18px;
}
#gallery_grid .gallery_title {
font-size:16px;
line-height:21px;
color:#000;
text-shadow:none;
font-weight:600;
border-top:2px solid #00a3ff;
padding:10px 15px 0;
}
#gallery_grid .gallery_title:hover {
text-decoration:underline;
}
#popular_galleries .gallery_title {
height:39px;
overflow:hidden;
}
.trans_bg {
width:100%;
height:100%;
background:#000;
opacity:.5;
filter:alpha(opacity=50);
}
.content_over_transparent {
position:absolute;
top:0;
width:100%;
height:100%;
overflow:auto;
box-sizing:border-box;
-moz-box-sizing:border-box;
}
#gallery_grid .content_over_transparent,#related_topics .content_over_transparent {
padding:10px 15px 0;
}
#popular_galleries .content_over_transparent {
padding:10px 10px 0;
}
It's "content_over_transparent". Appreciate any help, thanks!
Edit:
Here is the grid item HTML (adding more content as it saying it's mostly code):
<a class="gallery_grid_item" href="#">
<img class="gallery_grid_image" src="http://d1qfo1bk8s78mq.cloudfront.net/uimg/5f9aa039ecf554f73312d912e22c516e.x355" />
<div class="gallery_grid_info">
<div class="trans_bg"></div>
<div class="content_over_transparent">
<p class="gallery_title">Finding your Perfect Red</p>
</div>
</div>
</a>
Add overflow: hidden; in .content_over_transparent, and it displays well both on FF and Chrome :
.content_over_transparent {
position:absolute;
top:0;
width:100%;
height:100%;
overflow:auto; /* Delete that */
box-sizing:border-box;
-moz-box-sizing:border-box;
overflow: hidden; /* Add that */
}
By the way, in your question you forgot to wrap your HTML code in a #popular_galleries.
Here's the fiddle : Fiddle
Related
I've been trying to learn flexbox and I messed around with my codepen on mobile and something happened, I can't pin-point the problem but it keeps giving me an error and I can not for the life of me spot it! Everything seems fine.
The code isn't amazing, I'm not great at coding yet, it's not DRY, it's messy, not very readable and whatever else but it was working. The page was working even with the error. Now it isn't doing anything at all, won't even load.
There is an error in the CSS editor and I can not fix it!
Please help me, it's really annoying me, I've been looking through it for hours changing things.
Here is the codepen: http://codepen.io/joecox91/pen/GrJXQX
Sorry I can't remember how to embed the codepen into the question!
#import url('https://fonts.googleapis.com/css?family=Roboto+Mono:300,400');
* {
padding:0;
margin:0;
text-decoration:none;
box-sizing:border-box;
}
body, html {
padding:0;
margin:0;
width:100%;
height:100%;
}
header {
background:#ffffff;
border-bottom:1px solid #cccccc;
}
/* flex-flow: flex-direction flex-wrap */
.container {
display:-webkit-flex;
display:flex;
justify-content:center;
flex-flow: row wrap;
}
/* flex:flex-grow flex-shrink flex-basis */
.container section {
height:auto;
flex-grow:1;
padding:20px 0;
flex-shrink:1;
flex-wrap:wrap;
}
.two {
align-content:space-around;
margin:40px 20px;
font-family: 'Roboto Mono', monospace;
}
#content {
padding:20px;
width:60%;
}
#sidebar {
background:black;
width:20%;
}
// .container section:nth-child(2n) {
// background:black;
// }
#header {
display: flex;
height:100%;
align-items:center;
justify-content: center;
flex-flow:column wrap;
font-family:helvetica;
h1 {
font-size:2em;
letter-spacing:1.5px;
}
h2 {
font-size:1.2em;
}
}
#nav {
display:flex;
justify-content:center;
align-items:center;
a {
padding:20px;
color:#aaaaaa;
font-family:helvetica;
font-size:14px;
margin-right:1px;
text-transform:uppercase;
border-bottom:2px solid white;
transition:0.2s ease-out;
&.active {
border-bottom:2px solid black;
color:black;
}
&:last-child {
margin-right:0;
margin-left:20px;
border:1px solid #aaaaaa;
border-radius:5px;
&.active {
border:1px solid black;
}
}
&:hover {
color:black;
transition:0.2s ease-out;
&:last-child {
border:1px solid black;
}
}
}
}
.spin1 {
position:relative;
animation:menutate 1.5s infinite;
animation-timing-function: linear;
top:-1px;
left:10px;
width:1px;
border-top:5px solid rgba(0,0,0,0);
border-right:5px solid white;
border-left:5px solid white;
border-bottom:5px solid rgba(0,0,0,0);
background:black;
}
#mobile-menu {
display:none;
}
#mobile-header {
}
#keyframes menutate {
0% {
transform:rotate(0);
}
100% {
transform:rotate(360deg);
}
}
#navi {
display:none;
}
#media screen and (max-width:720px) {
.container,
.two, {
flex-flow:column wrap;
}
#content {
width:100%;
}
#sidebar {
width:100%;
}
#navi {
position:absolute;
display:block;
height:100%;
top:0;
left:0;
background:deepskyblue;
width:80%;
transform:translate(-100%);
z-index:10000;
}
#navi.extend {
box-shadow:0px 0px 10px 10px rgba(0,0,0,0.4);
}
#header {
justify-content:flex-end;
align-items:flex-end;
padding-right:20px;
h1 {
padding:0;
margin:0;
}
}
#nav {
display:none;
}
.mobile-hide {
display:none;
}
body {
position:relative;
transform:translate(0);
transition:0.3s ease-out;
}
body.extend {
transform:translateX(80%);
transition:0.3s ease-out;
}
#mobile-menu {
position:fixed;
top:22px;
left:20px;
display:block;
height:50px;
overflow:none;
width:50px;
padding:8px;
z-index:500000;
transition:0.2s ease;
filter: opacity(1);
&.extend {
transform:translateX(-180%);
transition:0.4s ease;
}
&:hover {
cursor:pointer;
transition:0.5s ease;
filter:opacity(0.6);
}
span {
position:absolute;
height:4px;
background:black;
width:40px;
text-align:center;
transition:0.5s ease;
&.menu-animate {
transition:0.5s ease;
}
&:hover {
cursor:pointer;
}
&:last-child {
border:none;
font-size:12px;
background:none;
height:auto;
width:40px;
top:38px;
text-align:center;
}
&:nth-child(1) {
top:8px;
&.menu-animate {
top:13px;
transform:rotate(45deg);
}
}
&:nth-child(2) {
top:18px;
&.menu-animate {
top:13px;
transform:rotate(-45deg);
}
}
&:nth-child(3) {
top:28px;
&.menu-animate {
top:13px;
filter:opacity(0);
}
}
}
}
}
There is the SASS, or half SASS. The problem I'm getting is:
Invalid CSS after "... position:fixed": expected "{", was ";"
This makes no sense to me! Why would it be expecting an opening curly bracket anywhere? After position:fixed... What is going on?
Send help!
Thank you
The issue is that you have some strange spacing characters on few lines of your SCSS - this is tripping up Sass. If you replace those with proper spaces things seem to work:
#import url('https://fonts.googleapis.com/css?family=Roboto+Mono:300,400');
* {
padding:0;
margin:0;
text-decoration:none;
box-sizing:border-box;
}
body, html {
padding:0;
margin:0;
width:100%;
height:100%;
}
header {
background:#ffffff;
border-bottom:1px solid #cccccc;
}
/* flex-flow: flex-direction flex-wrap */
.container {
display:-webkit-flex;
display:flex;
justify-content:center;
flex-flow: row wrap;
}
/* flex:flex-grow flex-shrink flex-basis */
.container section {
height:auto;
flex-grow:1;
padding:20px 0;
flex-shrink:1;
flex-wrap:wrap;
}
.two {
align-content:space-around;
margin:40px 20px;
font-family: 'Roboto Mono', monospace;
}
#content {
padding:20px;
width:60%;
}
#sidebar {
background:black;
width:20%;
}
// .container section:nth-child(2n) {
// background:black;
// }
#header {
display: flex;
height:100%;
align-items:center;
justify-content: center;
flex-flow:column wrap;
font-family:helvetica;
h1 {
font-size:2em;
letter-spacing:1.5px;
}
h2 {
font-size:1.2em;
}
}
#nav {
display:flex;
justify-content:center;
align-items:center;
a {
padding:20px;
color:#aaaaaa;
font-family:helvetica;
font-size:14px;
margin-right:1px;
text-transform:uppercase;
border-bottom:2px solid white;
transition:0.2s ease-out;
&.active {
border-bottom:2px solid black;
color:black;
}
&:last-child {
margin-right:0;
margin-left:20px;
border:1px solid #aaaaaa;
border-radius:5px;
&.active {
border:1px solid black;
}
}
&:hover {
color:black;
transition:0.2s ease-out;
&:last-child {
border:1px solid black;
}
}
}
}
.spin1 {
position:relative;
animation:menutate 1.5s infinite;
animation-timing-function: linear;
top:-1px;
left:10px;
width:1px;
border-top:5px solid rgba(0,0,0,0);
border-right:5px solid white;
border-left:5px solid white;
border-bottom:5px solid rgba(0,0,0,0);
background:black;
}
#mobile-menu {
display:none;
}
#mobile-header {
}
#keyframes menutate {
0% {
transform:rotate(0);
}
100% {
transform:rotate(360deg);
}
}
#navi {
display:none;
}
#media screen and (max-width:720px) {
.container,
.two, {
flex-flow:column wrap;
}
#content {
width:100%;
}
#sidebar {
width:100%;
}
#navi {
position:absolute;
display:block;
height:100%;
top:0;
left:0;
background:deepskyblue;
width:80%;
transform:translate(-100%);
z-index:10000;
}
#navi.extend {
box-shadow:0px 0px 10px 10px rgba(0,0,0,0.4);
}
#header {
justify-content:flex-end;
align-items:flex-end;
padding-right:20px;
h1 {
padding:0;
margin:0;
}
}
#nav {
display:none;
}
.mobile-hide {
display:none;
}
body {
position:relative;
transform:translate(0);
transition:0.3s ease-out;
}
body.extend {
transform:translateX(80%);
transition:0.3s ease-out;
}
#mobile-menu {
position:fixed;
top:22px;
left:20px;
display:block;
height:50px;
overflow:none;
width:50px;
padding:8px;
z-index:500000;
transition:0.2s ease;
filter: opacity(1);
&.extend {
transform:translateX(-180%);
transition:0.4s ease;
}
&:hover {
cursor:pointer;
transition:0.5s ease;
filter:opacity(0.6);
}
span {
position:absolute;
height:4px;
background:black;
width:40px;
text-align:center;
transition:0.5s ease;
&.menu-animate {
transition:0.5s ease;
}
&:hover {
cursor:pointer;
}
&:last-child {
border:none;
font-size:12px;
background:none;
height:auto;
width:40px;
top:38px;
text-align:center;
}
&:nth-child(1) {
top:8px;
&.menu-animate {
top:13px;
transform:rotate(45deg);
}
}
&:nth-child(2) {
top:18px;
&.menu-animate {
top:13px;
transform:rotate(-45deg);
}
}
&:nth-child(3) {
top:28px;
&.menu-animate {
top:13px;
filter:opacity(0);
}
}
}
}
}
Here's the Codepen with the fix.
I recommend using an editor with "Show Invisibles" turned on so you can easily see issues like this.
I am making a fancy CSS theme for my tumblr. But my vertical scrollbar has vanished, and pressing "page down" has no effect. It is like the lower half of my page no longer exists, or the page is forced to be the size my browser window is. Indeed - if I resize my browser window, suddenly I see that amount of content and can't scroll down to see the stuff I could see a moment ago.
I have read some things on the internet already to solve this problem, such as adding "overflow:auto" or "overflow:scroll", but either I have have added them in the wrong place or they do not solve the problem I have. I have also tried manually adding a scrollbar in the html {} tag. If I do that, the scrollbar reappears - but it doesn't actually work. It appears all blocked in gray, as if you are already viewing the whole page, while displaying my content cut-off.
Very frustrated as the page is, apart from this, done. Any obvious ideas?
<!--CSS customization here. -->
<style type="text/css">
html {overflow-y: scroll;}
#text {
margin-bottom:50px;
margin-top:100px;
margin-top:5px;
text-transform:uppercase;
font-size:1em;
font-famiy:serif;
letter-spacing:2px;
text-align:center;}
/*main structure*/
blockquote {
padding:5px 0 5px 30px;
border-left:1px solid #eee;
margin:10px 30px;
overflow: auto;
}
body {
background-repeat:repeat-y;
background-size: cover;
font-family:serif;
font-weight:100;
font-size:1em;
text-align:left;
margin:0;
line-height:18px;
overflow:auto;
}
a {
color:black;
text-decoration:none;
-webkit-transition:all 0.2s;
-moz-transition:all 0.2s;
-ms-transition:all 0.2s;
-o-transition:all 0.2s;
transition:all 0.2s; }
a:hover {
color:#45b69d;
}
img{
border:1px solid #fff;
border-radius:6px;
}
p {
margin-top:5px;
margin-bottom:5px}
#divider{
top:25px;
left:305px;
position:fixed;
width:420px;
position:absolute;
}
#dividerr{
bottom:20px;
left:37px;
width:420px;
position:fixed;
}
/*container*/
#con {
width:80%;
margin:0 10%;
position:fixed;
overflow:auto;
}
/*posts*/
.posts {
width:45%;
height:300px;
padding:4px;
background:white;
float:left;
margin:20px 20px;
border:1px solid #ffcec7;
border-radius:6px;
z-index:3;
}
#image {
position:absolute;
padding-top:8px;
padding-left:5px;
margin-right:5px;
}
#image img {
width:190px;
border:1px solid #fff;
border-radius:6px;
margin-right:8px;
}
.info {
margin-left:205px;
width:65%;
text-transform:none;
}
.tit {
font-weight:bold;
text-align:right;
font-family:georgia;
color:#ffa79b;
font-size:1.5em;
letter-spacing:1px;
text-transform:uppercase;
}
.lank {
border-bottom:1px dashed #ffcec7;
margin-bottom:5px;
padding-bottom:5px;}
.about ul {margin-left:-10px}
.quest {
font-size:1.25em;
font-family:Helvetica;
font-variant:small-caps;
}
.answ {
margin-top:10px;
margin-left:40px;
font-family:Georgia;
}
.grave {
text-align:center;
font-weight:bold;
margin-top:10px;
font-family:georgia;
font-size:1.5em;
letter-spacing:1px;
font-style:italic;
color:#cdba96;
}
.credit {
width:45%;
height:auto;
padding:4px;
background:white;
float:left;
margin:20px 20px;
border:1px solid #ffcec7;
border-radius:6px;
z-index:3;
}
/*header*/
.headertext {
color:beige;
font-size:6em;
letter-spacing:1em;
text-align:center;
font-family:Helvetica,sans-serif;
line-height: 80%;
height: auto;
}
.l {
background:#fff;
margin-top:20px;
margin-left:auto;
margin-right:auto;
padding:2px;
text-align:center;
font-family:inconsolata;
text-transform:uppercase;
border:1px solid #ffcec7;
border-radius:6px;
}
#title {
width:50%
font-size:14px;
margin:auto 0;
text-align:center;
letter-spacing:1px;
text-transform:uppercase;
color:#ffcec7;
background:#f8f8f8;
padding:15px;
border-bottom:1px solid #eee;}
.links {
color:#ffa79b;
font-family:georgia;
padding-top:10px;
text-align:center;
padding-bottom:5px;
border-bottom:1px dashed #ffcec7;
}
.links a {
margin:10px 5px;
padding:2px 5px;
border:none;
}
.links a:hover {
background:#f8f8f8;
border-radius:6px;
}
.desc {
text-transform:none;
margin:10px 25px;
font-family:Georgia;
}
Alrighty, so I managed to fix the thing by taking one element at a time. The problem was in
container {position:fixed;}
but I'm not sure why. I was using the position:fixed to center my background. Leaving this in case it helps someone in future.
I have a small problem on a web page (http://goldschmiede-h-j-baier.de/dev/index.php?id=10) everything is displayed correctly, the footer is pushed upwards with z-index. but safari does the z-index does not and I do not know why. the footer is always placed behind the main container ...
/*Website*/
html,body {
background:#000;
font-family:"Trebuchet MS",Helvetica,Jamrul,sans-serif;
color:#fff;
overflow:hidden;
border-left: 5px solid;
border-right: 5px solid;
}
.maincontainer {
overflow:auto;
height:100%;
width: 100%;
}
#footer {
height:64px;
position:fixed;
bottom:30px;
z-index:200;
}
#navigation {
position:fixed;
left:30%;
}
#logo {
background:url(../images/logo-baier.png);
width:217px;
height:75px;
position:fixed;
bottom:30px;
z-index:202;
left:10%;
}
#social {
position:fixed;
right:0;
top:30px;
z-index:302;
}
/*Slider*/
#slides {
position:relative;
}
.slides {
background:#000;
/*margin-top:10px;*/
border-bottom: 10px solid #fff;
border-top: 10px solid #fff;
}
#slides .slides-container {
display:none;
}
#slides .scrollable {
*zoom:1;
position:relative;
top:0;
left:0;
overflow-y:auto;
-webkit-overflow-scrolling:touch;
height:100%;
}
#slides .scrollable:after {
content:"";
display:table;
clear:both;
}
.slides-navigation {
margin:0 auto;
position:absolute;
z-index:3;
top:56%;
width:100%;
}
.slides-navigation a {
position:absolute;
display:block;
}
.slides-navigation a.prev {
left:0px;
}
.slides-navigation a.next {
right:0px;
}
.slides-pagination {
position:absolute;
z-index:3;
bottom:0;
text-align:center;
width:100%;
}
.slides-pagination a {
border:2px solid #222;
border-radius:15px;
width:10px;
height:10px;
display:-moz-inline-stack;
display:inline-block;
vertical-align:middle;
*vertical-align:auto;
zoom:1;
*display:inline;
background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGP6zwAAAgcBApocMXEAAAAASUVORK5CYII=");
margin:2px;
overflow:hidden;
text-indent:-100%;
}
.slides-pagination a.current {
background:#222;
}
.next {
width:35px;
height:55px;
background-image:url("../images/str.png");
background-position:42px -44px;
}
.prev {
width:35px;
height:55px;
background-image:url("../images/str.png");
background-position:-7px -44px;
}
.slides-pagination {
display:none;
}
.bottom {
position:absolute;
z-index:3000;
bottom:90px;
width:100%;
right:-60%;
}
.bottom a {
width:51px;
height:32px;
background-image:url("../images/str.png");
background-position:0px 0px;
display:inline-block;
}
.top {
position:absolute;
z-index:3000;
top:0;
text-align:center;
width:100%;
margin-top: 10px;
}
.top a {
width:51px;
height:32px;
background-image:url("../images/str.png");
background-position:-68px 0px;
display:inline-block;
}
I want to create a stylized border with CSS3 like the below image. But, I don't know how? Here is the image:
Like this: http://nicolasgallagher.com/pure-css-speech-bubbles/
.triangle-isosceles {
position:relative;
padding:15px;
margin:1em 0 3em;
color:#000;
background:#f3961c;
/* css3 */
-moz-border-radius:10px;
-webkit-border-radius:10px;
border-radius:10px;
background:-moz-linear-gradient(top, #f9d835, #f3961c);
background:linear-gradient(top, #f9d835, #f3961c);
}
/* creates triangle */
.triangle-isosceles:after {
content:"";
display:block; /* reduce the damage in FF3.0 */
position:absolute;
bottom:-15px;
left:50px;
width:0;
border-width:15px 15px 0;
border-style:solid;
border-color:#f3961c transparent;
}
<style type="text/css">
.comments .comment{
width:10%;
margin-bottom:20px;
}
.comments .comment p{
margin:0 0 10px 0;
}
.bubble{
position:relative;
background-color:#CCC;
padding:20px;
color:#009;
border-radius:3px;
margin-left:20px;
}
.bubble::after{
content:"";
display:block;
position:absolute;
left:-15px;
top:15px;
width:0px;
height:0px;
border-top:8px solid transparent;
border-bottom:8px solid transparent;
border-right:15px solid #CCC;
}
</style>
<div class="comments">
<div class="comment bubble">
<p>This is comment</p>
</div>
</div>
you can use CSS3 box_round:
.box_round {
-webkit-border-radius: 5px;
border-radius: 5px;
}
try this site :)
I am using the nivoSlider on a page.
I adapted a Theme to my needs, but i would now like to have the Prev and Next buttons next to the image (Prev on the left side, and Next on the right site), instead of on top of the image.
You can see the test page here:
http://dccf.site88.net/test/dccf.php
here is the html:
<div class="slider-wrapper theme-default">
<div id="slider" class="nivoSlider">
<img src="_imgs/photos/fashion3.jpg" alt="Doncare Care Child Foundation" />
<img src="_imgs/photos/fashion4.jpg" alt="Doncare Care Child Foundation" />
<img src="_imgs/photos/fashion7.jpg" alt="Doncare Care Child Foundation" />
<img src="_imgs/photos/fashion9.jpg" alt="Doncare Care Child Foundation" />
<img src="_imgs/photos/GardenWork1.jpg" alt="Doncare Care Child Foundation" />
<img src="_imgs/photos/GardenWork2.jpg" alt="Doncare Care Child Foundation" />
<img src="_imgs/photos/GardenWork3.jpg" alt="Doncare Care Child Foundation" />
<img src="_imgs/photos/GardenWork4.jpg" alt="Doncare Care Child Foundation" />
</div><!-- enf of #slider -->
</div><!-- end of .sliderWrapper -->
and the CSS (from the base template):
.nivoSlider {
position:relative;
width:600px;
height:auto;
overflow: hidden;
margin:auto;
margin-top:1em;
}
.nivoSlider img {
position:absolute;
top:0px;
max-width: 600px;
max-height:420px;
}
.nivo-main-image {
display: block !important;
position: relative !important;
width: 600px !important;
height:420px !important;
margin:auto;
}
/* If an image is wrapped in a link */
.nivoSlider a.nivo-imageLink {
position:absolute;
top:0px;
width:100%;
height:100%;
border:0;
padding:0;
margin:auto;
z-index:6;
display:none;
}
/* The slices and boxes in the Slider */
.nivo-slice {
display:block;
position:absolute;
z-index:5;
height:100%;
top:0;
margin:auto;
}
.nivo-box {
display:block;
position:absolute;
z-index:5;
overflow:hidden;
margin:auto;
}
.nivo-box img {
display:block;
margin:auto;
}
/* Caption styles */
.nivo-caption {
position:absolute;
left:0px;
bottom:0px;
background:#000;
color:#fff;
width:100%;
z-index:8;
padding: 5px 10px;
opacity: 0.8;
overflow: hidden;
display: none;
-moz-opacity: 0.8;
filter:alpha(opacity=8);
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
-moz-box-sizing: border-box; /* Firefox, other Gecko */
box-sizing: border-box; /* Opera/IE 8+ */
}
.nivo-caption p {
padding:5px;
margin:0;
}
.nivo-caption a {
display:inline !important;
}
.nivo-html-caption {
display:none;
}
/* Direction nav styles (e.g. Next & Prev) */
.nivo-directionNav a {
position:fixed;
top:50%;
z-index:9;
cursor:pointer;
}
.nivo-prevNav {
left:0px;
}
.nivo-nextNav {
right:0px;
}
/* Control nav styles (e.g. 1,2,3...) */
.nivo-controlNav {
text-align:center;
padding: 15px 0;
}
.nivo-controlNav a {
cursor:pointer;
}
.nivo-controlNav a.active {
font-weight:bold;
}
and the Theme CSS:
.theme-default .nivoSlider {
position:relative;
background:#fff url(loading.gif) no-repeat 50% 50%;
margin-bottom:10px;
-webkit-box-shadow: 0px 1px 5px 0px #4a4a4a;
-moz-box-shadow: 0px 1px 5px 0px #4a4a4a;
box-shadow: 0px 1px 5px 0px #4a4a4a;
}
.theme-default .nivoSlider img {
position:absolute;
display:none;
margin:auto;
}
.theme-default .nivoSlider a {
border:0;
display:block;
margin:auto;
}
.theme-default .nivo-controlNav {
text-align: center;
padding:0;
}
.theme-default .nivo-controlNav a {
display:inline-block;
width:10px;
height:10px;
background:url(bullets.png) no-repeat;
text-indent:-9999px;
border:0;
margin: 0 2px;
margin-bottom:1em;
}
.theme-default .nivo-controlNav a.active {
background-position:0 -10px;
}
.theme-default .nivo-directionNav a {
display:block;
width:30px;
height:30px;
background:url(arrows6.png) no-repeat 0px 0;
text-indent:-9999px;
border:0;
opacity: 1;
/* -webkit-transition: all 200ms ease-in-out;
-moz-transition: all 200ms ease-in-out;
-o-transition: all 200ms ease-in-out;
transition: all 200ms ease-in-out;
}*/}
.theme-default a.nivo-nextNav {
position:absolute;
background-position:-30px 0;
right:2px;
z-index:9999;
}
.theme-default a.nivo-nextNav:hover {
background:url(arrows6.png) no-repeat -30px -30px;
right:2px;
}.theme-default a.nivo-nextNav:active {
background:url(arrows6.png) no-repeat -30px -60px;
right:2px;
}
.theme-default a.nivo-prevNav {
position:absolute;
left:2px;
}
.theme-default a.nivo-prevNav:hover {
background:url(arrows6.png) no-repeat 0px -30px;
left:2px;
}
.theme-default a.nivo-prevNav:active {
background:url(arrows6.png) no-repeat 0px -60px;
left:2px;
}
.theme-default .nivo-caption {
font-family: Helvetica, Arial, sans-serif;
}
.theme-default .nivo-caption a {
color:#fff;
border-bottom:1px dotted #fff;
}
.theme-default .nivo-caption a:hover {
color:#fff;
}
.theme-default .nivo-controlNav.nivo-thumbs-enabled {
width: 100%;
}
.theme-default .nivo-controlNav.nivo-thumbs-enabled a {
width: auto;
height: auto;
background: none;
margin-bottom: 5px;
}
.theme-default .nivo-controlNav.nivo-thumbs-enabled img {
display: block;
width: 120px;
height: auto;
}
Thank you for your time and help!
.nivoSlider - in this class you have to remove overflow:hidden, and then you have to change the left and right of your buttons:
.nivoSlider{
overflow:hidden; (remove it)
}
And then:
.theme-default a.nivo-prevNav{
left: -35px; (about)
}
.theme-default a.nivo-prevNav:hover{
left: -35px; (about)
}
.theme-default a.nivo-nextNav{
right: -35px; (about)
}
.theme-default a.nivo-nextNav:hover{
right: -35px; (about)
}