How can I create Input field over full screen, image slideshow
Tags: html5,image,css3,html,background
Problem :
I made the background of my page into a slideshow that cycles a series of images but I want to be able to display fields on top. How do I stop the fields from going behind the images?
<!doctype>
<html>
<header>
<meta charset="utf-8">
<title>Playcation 2013</title>
<script src="scripts/jquery.js"></script>
<script type="text/javascript" src="scripts/modernizer.js"></script>
<link rel="stylesheet" type="text/css" href="styles/index.css">
</header>
<body id="page">
<input type="submit" value="Send">
<ul class="cb-slideshow">
<li><span>Image 01</span><div></div></li>
<li><span>Image 02</span><div></div></li>
<li><span>Image 03</span><div></div></li>
<li><span>Image 04</span><div></h3></div></li>
</ul>
</body>
CSS
.cb-slideshow,
.cb-slideshow:after {
position: fixed;
width: 100%;
height: 100%;
top: 0px;
left: 0px;
z-index: 0;
}
.cb-slideshow:after {
content: '';
background: transparent url(../images/pattern.png) repeat top left;
}
.cb-slideshow li span {
width: 100%;
height: 100%;
position: absolute;
top: 0px;
left: 0px;
color: transparent;
background-size: cover;
background-position: 50% 50%;
background-repeat: none;
opacity: 0;
z-index: 0;
-webkit-backface-visibility: hidden;
-webkit-animation: imageAnimation 36s linear infinite 0s;
-moz-animation: imageAnimation 36s linear infinite 0s;
-o-animation: imageAnimation 36s linear infinite 0s;
-ms-animation: imageAnimation 36s linear infinite 0s;
animation: imageAnimation 36s linear infinite 0s;
}
.cb-slideshow li div {
z-index: 1000;
position: absolute;
bottom: 30px;
left: 0px;
width: 100%;
text-align: center;
}
Solution :
changing z-index to a negative value did it :)
CSS Howto..
A basic example is this: say some of your content is in a<div id="appearble_text"> that is at 70% of the total height of the page. <div id="container"> Initially you will...
EDIT Changed the code to make it responsive If i was you, I would not place the icon for the link as a background image. I would place the icon...
DEMO: http://jsbin.com/yowis/2/edit <div class="panel-heading clearfix"> This will clear the float issue. That's what the issue is. If you want both the text and the image: <div class="panel-heading clearfix"> and...
It's not really clear what you are asking from this question alone but from the details of the other question it still seems as though flexbox is the solution as...
See here: http://blog.jquery.com/2012/08/09/jquery-1-8-released/ all you need to do is use linear-gradient and jQuery will automatically polyfill the rest. Don't forget to install CSS Pie for gradient support in older IE's....
If you genuinely understand html and css, these sorts of things literally fall together in about five minutes with notepad. They're boxes... ...After I said this, I had to see...
The width you're using is too wide. Try to make the width 750px for example. You'll see that it works fine! Keep in mind that the padding will be added...
I was stuck with similar issue and found that you can use url-loader to resolve "url()" statements in your CSS as any other require or import statements. To install it...
I haven't personally used it, but Hyphenator looks promising. Also see related (possibly duplicate) questions: word wrap in css / js Who has solved the long-word-breaks-my-div problem? (hint: not stackoverflow)...
Clear your browser cache. That should fix the issue. You can do it automatically if you use ctrl+F5 in your browser.
You mean somethign like this: var ss = "#menu li:hover>div"; $("div#menu li:parent").hover( function() { $(ss).show(); //this is the mousein }, function() { $(ss).hide(); //this is the mouseout } ); Remember...
This page has some examples for styling on common devices using CSS media queries Edit: A small tip on how to emulate devices for testing in Chrome (This has saved...
You certainly can use toggle() while hiding the other ones. Try something like this: $(".title").click(function() { $('.post').not($(this).parent()).hide(); $(this).toggle(); $('html, body').animate({scrollLeft: $(this).parent().offset().left},500); }); Update: changed .not(this) to .not($(this).parent()) as .title is...
I assume you already reduced the margin-bottom of the headline and the margin-top of your topmenu to 0 and now you need a way of bringing the topmenu up a...
Its easier other way around. Make <a> tag behave as <div>. Just use <a style="display: block;">. If you can't do that, you can also use javascript: <div onclick="location.href = 'www.yoursite.com';">...
If you want to achieve this result http://jsfiddle.net/paulalexandru/MSfPs/ all you have to do is to : Adjust your css like this: p.info { position: absolute; width: 100%; z-index: 10; top:...
You're using a p for your .headbar, which has margin-bottom. Either don't use a p or get rid of the margin-bottom. HTML: <div class="headbar">CherryPlaysRoblox</div> See: https://jsfiddle.net/y1tytq8u/...
Applying a class like .resize below to your images should do what you want... .resize { max-width: 100px; max-height: 100px; } Example: http://jsfiddle.net/rU5qK/...
The only way I can think of is using javascript to dynamically add an active class to the parent link. $(function(){ $('#nav li:has(a.active) > a').addClass('active'); }); #nav { background-color:#F36F25; margin:0...
You need to Use trigger(): $("#ex4").trigger("click"); ...
1) You can add a class for that purpose which assigns all the properties. 2) If you try it your way then, Javascript will reassign the property 3 times and...
Syntax Error on border: The border won't take individual width. Please declare this way: border: 1px solid #155678; border-width: 1px 1px 5px 1px; ...
You can import the CSS file like stara_wiedzma said. However you can't import bootstrap's .btn class for input[Type=button], input[Type=submit], input[Type=reset] globally with CSS I think you are looking for something...
The white line is defined by the bootstrap css. So, You need to overwrite it's css. Like this: .navbar-default{ border:none; } ...
Although Sarfraz and Anthony's answers would work there are a couple of points to note. 1) To hide/show you are better just using the hide() and show() mothods available on...
50% opacity IE: filter: alpha(opacity = 50); 50% opacity other browsers: opacity: .5; ...
https://jsfiddle.net/rL89L4uo/2/ .leftlist{ list-style-type: none; } .leftlist li{ padding-left:44px; border-bottom: 1px #621a4b solid; color: #621a4b; position:relative; text-transform: uppercase; margin-bottom: 25px; } .leftlist li:before{ content: ""; background: #621a4b; position: absolute; left: 0px;...
You have very little control over a browser's printing methods. At most you can SUGGEST, but if the browser's print settings have "don't print background images", there's nothing you can...
Use display:inline-block with text-align:center on the parent
This is obtained from padding 10px 15px;. So to reduce the width reduce 15px to a less px value. To reduce the height reduce 10px to a less px value....