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)
}
Related
I noticed a strange problem on Latest Chrome Version 58.0.3000.4 dev (64-bit) My website is broken on Latest chrome DEV (Version 58.0.3000.4)[on MacOS] if you have latest chrome please check this URL http://openspeedtest.com/Get-widget.php
As you can see the buttons and animation Not rendering as expected. But working as expected on all other browser.
.example {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-transition: all .5s;
transition: all .5s;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background: -webkit-linear-gradient(top, white, black);
background: linear-gradient(to bottom, white, black);
}#ostui{
background-color: white;
height: 700px;
width: 730px;
}
#min_speed, #max_speed {
display:block;
width:auto;
margin-top:auto;
position:absolute;
top:208px;
z-index:4;
color:#35393c;
font-weight:700
}
#min_speed {
float:left;
left:63px
}
#max_speed {
right:63px;
float:right
}
#speedometer {
width:719px;
height:268px;
overflow:hidden;
margin-bottom: 5px;
margin-top: 60px;
background-color: #E5E6E7;
display:none;
}
#speedometer #inside_central {
top:18px;
left:3px;
position:relative;
width:257px;
height:257px;
margin-left:auto;
margin-right:auto;
text-align:center;
}
#speedometer #surface_plate {
border-bottom-style: solid !important;
border-bottom-width: 10px !important;
border-color: #FFFFFF;
position:relative;
top:-257px;
z-index:2;
margin-left:auto;
margin-right:auto
}
#inside_central #direction_sign {
margin-left:auto;
margin-right:auto;
position:relative;
top:50px;
left:0;
width:40px;
height:43px;
z-index:3;
overflow:hidden
}
#one_ink_visible {
position:absolute;
width:257px;
height:257px;
overflow:hidden;
top:7px;
-webkit-transform:rotate(74deg);
-moz-transform:rotate(74deg);
-o-transform:rotate(74deg);
-ms-transform:rotate(74deg)
}
#speedometer #inside_left, #speedometer #inside_right {
position:relative;
top:80px;
width:200px;
height:222px;
text-align:center
}
#speedometer #inside_left {
left:25px;
float:left
}
#speedometer #inside_right {
left:0;
float:right;
margin-right:20px
}
.side_ink {
background:url('http://get.openspeedtest.com/images/side-blue-ink.png');
position:absolute;
top:-43px;
left:0;
width:200px;
height:222px;
z-index:1
}
#inside_right .side_ink {
display:none
}
#inside_left .side_ink {
display:none
}
img#ink_segments {
left:0;
z-index:1;
position:relative
}
#direction_sign {
display:none
}
#direction_sign img {
left:0;
top:-43px;
position:relative;
z-index:3
}
.digital_speed {
font-family: 'Open Sans', Arial, sans-serif;
font-size:45px;
font-weight:400;
z-index:3;
position:relative
}
#digital_speed_current {
top:105px;
text-align:center;
width:100%;
position:absolute
}
#digital_speed_down, #digital_speed_up {
top:45px;
position:absolute;
width:100%;
text-align:center
}
.speed_caption {
font-family: 'Arial', sans-serif;
font-size:13px;
z-index:3;
position:relative
}
#speed_caption_current {
top:159px;
display:none;
position:absolute;
text-align:center;
width:100%;
font-weight:700
}
#speed_caption_down, #speed_caption_up {
position:absolute;
top:99px;
width:100%;
text-align:center;
display:none;
font-weight:700
}
/************************/
#speedometer_container{
display:block;
}
#speedometer_controller{
width: 719px;
height:100px;
overflow:hidden;
display:block;
}
#progress_bar {
margin-left:auto;
margin-right:auto;
position:relative;
width:606px;
height:73px;
background:url('http://get.openspeedtest.com/images/horizontal-progress-bar.png') no-repeat top center;
display:none;
z-index:4
}
#progress_text, #ping_result {
font-weight:700;
left:170px;
top:35px;
position:relative;
font-size:12px;
height:20px;
text-align:left;
display:inline;
margin-right:20px
}
#progress_bar_indicator {
font-weight:700;
top:16px;
left:521px;
background:#198bd9;
width:14px;
height:14px;
border-radius:50%;
position:absolute
}
#start_button_wrapper {
margin-left:auto;
margin-right: 20px;
height:auto;
left:8px;
text-align:center;
display:none;
position:relative;
z-index:4;
}
input.formatted_button {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #ffffff;
padding: 8px 20px;
background: -webkit-gradient(
linear, left top, left bottom,
from(#28adf0),
to(#117acf));
background: -o-linear-gradient(top, #28adf0, #117acf);
border-radius: 3px;
border: 1px solid #4887c7;
box-shadow:
1px 1px 0px rgba(000,000,000,0.2),
inset 0px 1px 1px rgba(255,255,255,0.2);
text-shadow:
0px 1px 1px rgba(000,000,000,0.3),
0px 1px 0px rgba(255,255,255,0.3);
margin-bottom:10px;
outline:none;
}
input.formatted_button:hover {
border-top-color: #1090e6;
}
input.formatted_button:active {
top:2px;
position:relative;
border-top-color: #1090e6;
background: #117acf;
}
input.formatted_button_bw {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #303030;
padding: 7px 20px;
background: -webkit-gradient(
linear, left top, left bottom,
from(#f7f7f9),
to(#e0e4e8));
background: -o-linear-gradient(top, #f7f7f9, #e0e4e8);
border-radius: 4px;
border: 1px solid #b8b8b8;
box-shadow:
0px 1px 0px rgba(000,000,000,0.5),
inset 0px 0px 1px rgba(255,255,255,0.3);
text-shadow:
0px 1px 1px rgba(255,255,255,1);
}
input.formatted_button_bw:hover {
border-top-color: #e0e4e8;
background: #e0e4e8;
}
input.formatted_button_bw:active {
top:2px;
position:relative;
border-top-color: #e0e4e8;
background: #e0e4e8;
}
#ip_container {
font-family: 'PT Sans',sans-serif;
font-size: 18px;
font-weight: 700;
margin-top: 10px;
}
#ip_address {
font-weight: 300;
}
#chart_container{
width:490px;
height:60px;
margin-left:auto;
margin-right:auto;
overflow:hidden;
margin-top:-17px;
top:17px;
left:-10px;
position:relative;
}
.spinner {
width: 120px;
height: 120px;
margin: 100px auto;
background-color: #44A8FC;
border-radius: 100%;
-webkit-animation: scaleout .5s infinite ease-in-out;
animation: scaleout .5s infinite ease-in-out;
}
#-webkit-keyframes scaleout {
0% { -webkit-transform: scale(0.0) }
100% {
-webkit-transform: scale(1.0);
opacity: 0;
}
}
#keyframes scaleout {
0% {
transform: scale(0.0);
-webkit-transform: scale(0.0);
} 100% {
transform: scale(1.0);
-webkit-transform: scale(1.0);
opacity: 0;
}
}
That was a bug on Latest chrome Dev. I reported the same https://bugs.chromium.org/p/chromium/issues/detail?id=689369
There were many tutorials for this, but they weren't much a help for me.
When I scroll the page down, the content should go under the ´header´, not on top of it.
The footer works as it should.
http://jsfiddle.net/D4c4n/
body {
font-family:helvetica;
margin: auto;
min-height: 100%;
width: 100%;
background-image:url('nainen.jpg');
background-repeat: none;
}
.main {
min-height: 100%;
height:100%;
}
#background {
height: 100%;
width: 100%;
}
.ca-menu li:hover{
background:#fff;
}
.ca-menu li:hover .ca-icon{
color: #afa379;
font-size: 40px;
opacity: 0.1;
animation: moveFromLeft 400ms ease;
}
.ca-menu li:hover .ca-main{
color: #afa379;
animation: moveFromRight 300ms ease;
}
.ca-menu li:hover .ca-sub{
color: #000;
animation: moveFromBottom 500ms ease;
}
#keyframes moveFromLeft{
from {
transform: translateX(-100%);
}
to {
transform: translateX(0%);
}
}
.fl {
top:150px;
width: 100%;
transition: all;
position: absolute;
}
.slidepart {
width:100%;
height:390px;
overflow:hidden;
position:relative;
border:#lightgray solid 2px;
box-shadow:gray 2px 5px 5px;
}
.slidepart img {
position:absolute;
width:100%;
height:450px;
border: black solid 1px;
}
.sl_paginationpart {
display:block;
background:#BFFF8D9;
width:100%;
height:1px;
position:absolute;
right:0px;
bottom:0px;
padding:6px;
border: solid 1px #FFE97D;
transition:all 0.5s ease
}
.sl_paginationpart:hover {
height:17px;
opacity: 0.8;
background:#908967;
}
ul.slpagination {
margin:0px;
padding:0px;
list-style:none;
font-family:helvetica;
right: 0px;
}
ul.slpagination:hover {
margin:0px;
padding:0px;
list-style:none;
font-family:helvetica;
}
ul.slpagination li {
margin:0px;
padding:0px;
list-style:none;
float:left;
height:100%
}
ul.slpagination li a {
text-decoration:none;
}
ul.slpagination li a.prev {
width:14px;
height:15px;
display:block;
margin-top: 2px;
}
ul.slpagination li a.next {
width:14px;
height:15px;
display:block;
margin-top: 2px;
}
ul.slpagination li a.number {
background:#FFE97D;
width:25px;
height:4px;
display:block;
text-align:center;
margin:0px 3px;
font-size:0px;
font-weight:bold;
color:#A3916D;
text-decoration:italic;
font-family: helvetica;
border-radius:3px 3px 3px 3px;
transition: all 0.5s ease;
}
ul.slpagination li a.number:hover {
background:#FFF8D9;
color:gray;
height:18px;
font-size:12px;
}
ul.slpagination li a.select {
background:#B78B59;
color:white;
text-decoration:none;
text-decoration:italic;
font-size:0px;
}
.sl_paginationpart:hover li a.select {
height: 18px;
font-size: 14px;
}
.sl_paginationpart:hover li a.number {
height: 18px;
}
#logo {
opacity: 1;
}
.kielet {
top:0px;
width:100%;
background-color: #333333;
padding:0px;
height: 35px;
color: white;
}
.kielet nav {
text-align: left;
height: 35px;
}
.kielet a {
display: inline;
left: 0px;
}
.icon {
width: 50px;
height: 101%;
right: 0px;
float: right;
margin:0 10px;
margin-top:0px;
margin-bottom:0px;
padding: 0px;
}
.submit {
-moz-box-shadow:inset 0px 1px 0px 0px #dcecfb;
-webkit-box-shadow:inset 0px 1px 0px 0px #dcecfb;
box-shadow:inset 0px 1px 0px 0px #dcecfb;
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #71f78c), color-stop(1, #5dde56) );
background:-moz-linear-gradient( center top, #71f78c 5%, #5dde56 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#71f78c', endColorstr='#5dde56');
background-color:#71f78c;
-webkit-border-top-left-radius:0px;
-moz-border-radius-topleft:0px;
border-top-left-radius:0px;
-webkit-border-top-right-radius:0px;
-moz-border-radius-topright:0px;
border-top-right-radius:0px;
-webkit-border-bottom-right-radius:0px;
-moz-border-radius-bottomright:0px;
border-bottom-right-radius:0px;
-webkit-border-bottom-left-radius:0px;
-moz-border-radius-bottomleft:0px;
border-bottom-left-radius:0px;
text-indent:0px;
border:1px solid #93e084;
display:inline-block;
color:#ffffff;
font-family:Trebuchet MS;
font-size:16px;
font-weight:normal;
font-style:normal;
height:30px;
line-height:30px;
width:60px;
text-decoration:none;
right: 40%;
text-align:center;
text-shadow:1px 1px 0px #528ecc;
}
.submit:hover {
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #5dde56), color-stop(1, #71f78c) );
background:-moz-linear-gradient( center top, #5dde56 5%, #71f78c 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#5dde56', endColorstr='#71f78c');
background-color:#5dde56;
}
.submit:active {
position:relative;
top:1px;
}
.tiedot {
right: 100px;
top: 150px;
height: 250px;
position:absolute;
width: 250px;
border: dotted 1px;
text-align: center;
}
.lomake {
right: 35%;
top: 150px;
position:absolute;
}
.parent {
font-family: Verdana;
height: 30px;
font-size: 20px;
transition: background 0.5s ease;
}
.parent:hover {
background: #C2C3C4;
}
.parent a {
color: black;
text-decoration: none;
cursor: pointer;
}
.show ul
{
/*animation for show*/
transition:max-height 1s;
-webkit-transition:max-height 1s;
max-height: 100%;
}
.navigointi
{
width: 533px;
height: 35px;
top: 0px;
position: absolute;
background-color: #333333;
}
.navigointi ul
{
float:left;
width:100%;
padding:0;
margin:0;
list-style-type:none;
}
.navigointi a
{
float:left;
width:6em;
top: 0px;
text-decoration:none;
color:white;
background: FFE97D;
padding:0.2em 0.6em;
border-right:1px solid white;
height:29px;
transition: all 0.5s ease;
}
.navigointi a:hover
{
color: #B0B0B0;
}
.navigointi li
{
display:inline;
}
#selected {
background-color:white;
color: #645406;
cursor: default;
}
form {
right: 50%;
}
.wrapper{
min-height: 100%;
height:100%;
margin: 0 0 -60px;
}
.push{
height:60px;
}
footer
{
background-color:#333333;
position:fixed;
height:20px;
bottom: 0px;
margin-bottom: 0px;
width:100%;
text-align: right;
}
header
{
top:0px;
width:100%;
background-color: #333333;
padding:0px;
height: 35px;
color: white;
position: fixed;
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<script src="jquery-1.4.2.min.js"></script>
<link rel="shortcut icon" href="clade.png" />
<link rel="stylesheet" type="text/css" media="screen" href="style_v2.css" />
<title>Artotek</title>
<LINK REL="SHORTCUT ICON"
HREF="favicon.ico">
<body>
<div class="wrapper">
<!-- KIELET -->
<header>
<div class="navigointi">
<ul>
<li><a id="selected" onclick="return false" href="#">Etusivu</a></li>
<li>Tietoa meistä</li>
<li>Yhteystiedot</li>
</ul>
</div>
</header>
<div id="footer" style="bottom:0px; right:0px; width:100px; font-size:8px;">
</div>
<div class="main">
<div id="teksti" style="position:absolute; font-family:century gothic; width:100%; top: 40px; font-size: 20px; height:130px; margin-top:0px; text-align:center; ">
<br>
<h3>ARTOTEK</h3>
<hr>
<p>Olemme startup innovatiivisten tuotteiden kehitysyritys<br>
Kysyttävää? Ota yhteyttä!</p>
</div>
<div style="margin-top: 800px;">
<a name="section2">Section 2</a>
<p>blablalblalalalalalal</p>
<p>lddlwdlldwldldwdlwdl</p>
</div>
</div>
</div>
</div>
<!--Twitter
<div class="twitter" style="width:50px; top:0px; margin-top:0px;">
<a class="twitter-timeline" href="https://twitter.com/ArtotekTmi" data-widget-id="381408956653899776">#ArtotekTmi Twitter</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
<img style="position:absolute; bottom:0px; right:0px;"src="nainen.gif"></img>-->
</div>
<div class="push"></div>
<footer>©Claudio Lintunen</footer>
</body>
</html>
You can change the z-index for this:
header
{
z-index: 1;
}
This way the header will go on top of the other elements which have a lower z-index (z-index is 0 by default).
jsFiddle
put z-index to header part
.navigointi
{
width: 533px;
height: 35px;
top: 0px;
position: absolute;
background-color: #333333;
z-index:99999;
}
jsfiddle:http://jsfiddle.net/D4c4n/3/
If you add z-index: 1; to your header rule it will work just fine.
header
{
top:0px;
width:100%;
background-color: #333333;
padding:0px;
height: 35px;
color: white;
position: fixed;
z-index: 1;
}
If z-index: 1 does'nt work try increase the z-index till it does.
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
I have created a nav menu myself for my website, I'm no expert but I think the menu turned out great ... I would like for my the menus to open a little slower then instant, maybe have a .5s transition ... I have tried to implement myself but I just don't seem to be able to figure it out .... I have created a jsfiddle to show my nav bar ... I was hoping to someone could show me how to had a transition to all the drop down menus if its possible ... Thank You
jsfiddle : http://jsfiddle.net/vRdEp/ (its a little broken on here)
my site : www.curious-howto.com
My css:
ul#navitemul {
border-radius: 0px 20px 20px 20px;
margin:0px!important;
width:500px;
}
.belownav {
top:0px;
left:183px;
position:absolute;
z-index:100;
box-shadow: 0 0 10px #000 inset;
border-radius: 5px 0px 0px 5px;
padding:20px!important;
background:#282828!important;
}
.navitem a {
margin-right: 10px;
border: 1px solid #424242!important;
text-overflow:ellipsis;
display:block;
overflow:hidden;
border-radius:5px;
width:200px!important;
padding:0px!important;
float:left;
height:40px;
background:#424242!important;
}
.navitem a:hover {
border:1px solid #585858!important;
background:#000!important;
}
img.fl {
float:left;
}
span.marleft {
letter-spacing:1px;
font-size:12px!important;
text-decoration:none;
color:white!important;
margin-left:15px!important;
line-height:38px;
}
li.marright{
float:left!important;
margin-bottom:10px!important;
margin-right:10px!important;
}
.ontop{
color:white;
font-size:28px!important;
margin-bottom:20px!important
}
ul#loginmenu {
border-radius:0px 0px 30px 30px;
z-index:1000;
left:200px;
width:500px!important;
overflow:auto;
max-height:600px;
left:-100px!important;
}
li.logo {
margin:0px!important;
line-height:10px!important;
border-radius: 30px 0px 0px 0px;
padding:10px 40px 10px 40px!important
}
span#navlogo {
font-size:20px;
}
#menu{
position:relative;
top:10px;
width:80%;
max-width:750px;
min-width:660px;
height:47px;
border-radius: 30px 30px 0px 0px;
background-color:#172322;
margin:0px;
padding:0px;
list-style:none;
color:#fff;
display:inline-block;
float:right;
z-index:1000;
}
#menu a {
color:#fff;
text-decoration:none;
}
#menu > li {
transition:width 2s, height 2s;
-webkit-transition:width 2s, height 2s, -webkit-transform 2s;
/* Safari */padding: 13px 0px;
background:#172322 none repeat scroll 0 0;
cursor:pointer;
float:left;
position:relative;
}
#menu > li a:hover {
color:#B0D730;
}
#menu .logo {
background-color: #7cb7e3;
width:87px;
padding:0px;
}
/* sub-menus*/
#menu ul {
padding:0px;
margin:0px;
display:block;
display:inline;
}
#menu li ul {
position:absolute;
left:-24px;
top:0px;
margin-top:45px;
line-height:16px;
background-color:#172322;
color:#0395CC;
/* for IE */ display:none;
}
#menu li:hover ul {
display:block;
}
#menu li ul li{
display:block;
margin:5px 20px;
padding: 5px 0px;
list-style-type:none;
}
#menu li ul li:first-child {
border-top: none;
}
#menu li ul li a {
display:block;
color:#0395CC;
}
#menu li ul li a:hover {
color:#7FCDFE;
}
/* main submenu */
#menu #main li {
text-align:center;
margin:10px 10px 10px 10px!important
}
#menu #main {
border-radius: 0px 0px 30px 30px;
width:167px;
left:0px;
top:-20px;
padding-top:20px;
background-color:#7cb7e3;
color:#fff;
z-index:999;
}
/* search */
.searchContainer div {
background-color:#fff;
display:inline;
padding:5px;
}
.searchContainer input[type="text"] {
border:none;
}
.searchContainer ul {
vertical-align:middle;
}
The problem is that transitions animate a property when that property changes. For example, if I had a div that was 100px wide, then added a class to it that switched it to be 300px wide, you could set transition: width 3s and it would grow over that 3 second period.
In your case, all that's changing is display:block / display:hidden
To get it to transition, you'll need to change things so that, rather than hiding it with display:hidden, you're hiding it by shrinking it to be really tiny and growing, or changing the opacity, etc.
IM trying to get the div content not to flow past the footer, I want the content div to expand as the page expands, but when the text goes past the footer, it causes the footer to jump upward on the page
html, body {
margin:0; /top, right, bottom, left/
padding:0; /top, right, bottom, left/
height:100%;
}
container {
position:fixed;
top:0;
left:0;
width:100%;
margin: 0 auto -100px;
height: auto;
min-height:100%;
}
content {
position: relative;
padding-bottom:100px;
overflow:auto;
height:100%;
}
Header, #Footer {
position: absolute;
width:100%;
background:url('bglines.png');
background-size:15px 15px;
color:white;
padding:0 auto;
text-align:center;
color:#2FAACE;
}
Footer {
margin-top: 100px;
clear:both;
}
menu {
position:absolute;
list-style-type:none;
background: #808080;
width:100%;
padding: 85px 0px 0px 0px; /* Always on top */
}
ptop {
text-transform:uppercase;
font-family:impact;
font-size:40pt;
margin: 15px auto;
color:#2FAACE;
}
pbottom {
font-family:times;
font-size:14pt;
color:#2FAACE;
}
main {
position: absolute;
text-align:center;
left:50%;
width:90%;
margin-left: -45%;
top:150px;
color:white;
padding-bottom:100px;
}
p {
font-size: 75px;
color:white;
}
mainbg {
background:#CCCCCC;
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";
opacity:0.9;
filter:alpha(opacity=90); /* For IE8 and earlier */
left:50px;
width:95%;
top:150px;
position: absolute;
}
li {
line-height:40px;
margin:0px 0px 0px 0px;
padding:0px 5px 5px 0px;
text-align:center;
float:left;
}
a, a:hover {
display:block;
font-family:Georgia;
width: 75px;
text-decoration:none;
font-size:30px;
}
a { color:white; }
a:Hover {
background:#2FAACE;
border-radius:9px 9px 9px 9px;
color:#FFFFFF; /*TL, TR, BR, BL*/
}
Please add a div with clear:both before footer. It actually clears all floating which fixes the footer to stay at bottom.
<div style="clear:both;"></div>
OR if you have defined class (clear) in your style then
<div class="clear"></div>