Can any one tell me how to make a web page disable using CSS.It means user will not be able to click on the any content of the web page one screen type of things will be there and user will only able to see the content bellow the screen.
Not sure but if you mean user should only see content and be not able to click anywhere, you can create an overlay with CSS:
#overlay {
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:#fff;
opacity: 0.1;
filter: alpha(opacity=10);
}
This CSS will apply the overlay on entire screen, however if you want to do this to a certain part of the page then you need to adjust the values for these properties:
top:0;
left:0;
width:100%;
height:100%;
Related
I'm trying to create Multiple slideable side-panels, hidden outside right side of the screen.
Here the prototype (in which I transated them "almost" outside the right side for better understanding behaviour).
Relevat part of code is:
.container {
display:flex;
flex-direction:column;
position:absolute;
top:0;
right:0;
width:200px;
height:100%;
transform:translateX(150px); /*Should be 170px to place outside view*/
}
.side-panel {
display:flex;
}
.side-panel.open {
transform:translateX(-170px);
}
.content {
position:absolute;
top:0;
right:0;
width:calc(100% - 34px);
height:100%;
}
As you can see, there 3 side.panels, each one openable clicking on its yellow label (indicated ad 1, 2, 3). In semi-hidden area, you can see also contents of each pane, overlapped.
The goal should be that .toggle labels should be stacked like in the example, but theirs contents should fill the entire height of the container (is possible to see that when panels are closed to the right that contents in this situation are effectively overlapped thanks to their position:absolute, but when you open one of them, it will be limited to its direct flex container) in the same way you can see when they are closed.
Please, how to solve?
Hope this is what you are looking for refer below link. Thanks
added height to .side-panel.open
https://jsfiddle.net/wyn7b8rx/1/88
I have an application based on Ionic.
At a part of it, I need to display a full screen div containing the camera input and, on top of it, a png guide.
So far, I've achieved our purpose by using lots of jQuery, but now I'm wondering if there's a better way. I mean, some way to just play with some css to make Ionic let me display a full screen div on top of everything (navigation bar included).
I've tried some like this:
.container {
width:100%;
height:100%;
display:block;
position:absolute;
z-index:1000;
top:0;
left:0;
}
But using this CSS, the .container div, has 0 width and it's not positioning on top of everything.
Any ideas?
Im trying to get a transition working so that the bg colour fades into another colour depending on position of page/i.e. triggered by divs with same class.
Found some js here (http://codepen.io/Funsella/pen/yLfAG) which works exactly how I want on desktop, but it breaks on iPad (no matter the browser).
Would anybody know how to do this transition with CSS?
I found but it's triggered by a hover..
For example..
http://jsfiddle.net/L9JXG/1/
.div1 {
height:200px;
width:600px;
position:relative;
background:red;
}
.div1:after {
position:absolute;
width:100%;
height:100%;
content:'';
background:url("http://lorempixel.com/output/business-q-c-640-480-10.jpg");
background-size:cover;
opacity:1;
transition: 3s;
}
.div1:hover:after {
opacity:0;
}
You have to set suitable break points. Here is a great resource for the question.
A stand alone script to Change Page Background on User Scroll
Demo
This is the download link for the script http://download.techstream.org/Change-Page-Background-on-Scroll.zip (Download will start when you click on it)
Basically what I am trying to do is have a div in the body with a fixed position float above everything. This works it is the next part where I have the problem, this is the code I use for it (in LESS)
.fadeIt{
opacity:0;
cursor:pointer;
.transition (opacity .5s linear);
z-index:-1;
display:block;
position:fixed;
top:0;
left:0;
right:0;
bottom:0;
width:100%;
height:100%;
background:rgba(0,0,0,.5);
&.cover{
z-index:101;
}
&.open{
opacity:1;
}
}
This works and I have a click event on elements to toggle its visibility, however I want to pull the clicked elements over it regardless of their place in the DOM. Giving it an "accent" effect. Currently the fadeIt element is right by the end of the body tag, I feel this is "cleaner" but am open to changing it.
So what I want to see in the end is when I click on an element that triggers the visibility of the fadeIt element, that the clicked element will appear overtop of it in the same position it is in within the DOM.
I am making a website for someone and I want it to resize itself depending on the screen resolution and the zoom of the browser(I am not including smartphones). I currently have a menu wich is like that :
every element in the menu is in a div and here is the css:
#barre_utilisateur //For the menu bar(the red bar)
{
height:45px;
background-color:#A31E39;
width:100%;
}
#content_boutton_accueil //the home button
{
margin-left:2%;
width:200px;
display:inline-block;
}
#notification //exclamation mark button
{
cursor:pointer;
width:60px;
height:45px;
display:inline-block;
}
and now, I want the cogwheel icon the stick on the right on the left of the user button. I don't see how I can achieve this.
Also, when I zoom in too much the righ part of the menu get out of where it is supposed to be is there a way to prevent this?
A good example of what I am trying to achieve is the new outlook live page
You can position the overall menu div (#barre_utilisateur) relatively, and then its children absolutely in it. For example:
#barre_utilisateur {
position: relative;
}
#cogwheel {
position: absolute;
right: 0;
}
Another way could be to have 2 divs inside the menu (#barre_utilisateur), and then to float the first one to the left and the other - to the right.