“Disable” a using the disable statement
up vote
1
down vote
favorite
i have this div
<div class="col-md-4 col-sm-6">
<div class="box17">
<img src="images/dash/rh.jpg" alt="">
<ul class="icon">
<li><a href="#"><i class="fa fa-users"></i></a></li>
</ul>
<div class="box-content">
<h3 class="title">Recursos Humanos</h3>
</div>
</div>
</div>
What i was tinking was add the disabled sentence in the div on the class "box17" like this
<div class="box17" disabled>
And change the backgroud in css with something like this
.box17:disabledpointer-events:none;background:#e4e4e4
But it does nothing, there is another way to "disable" the div?
html css
add a comment |
up vote
1
down vote
favorite
i have this div
<div class="col-md-4 col-sm-6">
<div class="box17">
<img src="images/dash/rh.jpg" alt="">
<ul class="icon">
<li><a href="#"><i class="fa fa-users"></i></a></li>
</ul>
<div class="box-content">
<h3 class="title">Recursos Humanos</h3>
</div>
</div>
</div>
What i was tinking was add the disabled sentence in the div on the class "box17" like this
<div class="box17" disabled>
And change the backgroud in css with something like this
.box17:disabledpointer-events:none;background:#e4e4e4
But it does nothing, there is another way to "disable" the div?
html css
What do you want to achieve with the disabled tag? What exactly is on your mind?
– Sinan Samet
Nov 9 at 19:16
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
i have this div
<div class="col-md-4 col-sm-6">
<div class="box17">
<img src="images/dash/rh.jpg" alt="">
<ul class="icon">
<li><a href="#"><i class="fa fa-users"></i></a></li>
</ul>
<div class="box-content">
<h3 class="title">Recursos Humanos</h3>
</div>
</div>
</div>
What i was tinking was add the disabled sentence in the div on the class "box17" like this
<div class="box17" disabled>
And change the backgroud in css with something like this
.box17:disabledpointer-events:none;background:#e4e4e4
But it does nothing, there is another way to "disable" the div?
html css
i have this div
<div class="col-md-4 col-sm-6">
<div class="box17">
<img src="images/dash/rh.jpg" alt="">
<ul class="icon">
<li><a href="#"><i class="fa fa-users"></i></a></li>
</ul>
<div class="box-content">
<h3 class="title">Recursos Humanos</h3>
</div>
</div>
</div>
What i was tinking was add the disabled sentence in the div on the class "box17" like this
<div class="box17" disabled>
And change the backgroud in css with something like this
.box17:disabledpointer-events:none;background:#e4e4e4
But it does nothing, there is another way to "disable" the div?
html css
html css
asked Nov 9 at 19:08
Splorki
82
82
What do you want to achieve with the disabled tag? What exactly is on your mind?
– Sinan Samet
Nov 9 at 19:16
add a comment |
What do you want to achieve with the disabled tag? What exactly is on your mind?
– Sinan Samet
Nov 9 at 19:16
What do you want to achieve with the disabled tag? What exactly is on your mind?
– Sinan Samet
Nov 9 at 19:16
What do you want to achieve with the disabled tag? What exactly is on your mind?
– Sinan Samet
Nov 9 at 19:16
add a comment |
4 Answers
4
active
oldest
votes
up vote
1
down vote
accepted
The div element supports global attributes which does not include disabled
. Use a class instead.
<div class="box17 disabled">
.box17.disabledpointer-events:none;background:#e4e4e4
add a comment |
up vote
1
down vote
Just add a class to that box div!
div.box.disabled
backgorund: #e4e4e4;
pointer-events: none;
<div class="col-md-4 col-sm-6">
<div class="box box17 disabled">
<img src="images/dash/rh.jpg" alt="">
<ul class="icon">
<li><a href="#"><i class="fa fa-users"></i></a></li>
</ul>
<div class="box-content">
<h3 class="title">Recursos Humanos</h3>
</div>
</div>
</div>
add a comment |
up vote
0
down vote
:disabled
pseudo class cannot be used on a class name. It is only applicable to button
, input
, textarea
, optgroup
, option
and fieldset
.
Use another class instead :
<div class="box17 disabled">
Then :
.box17.disabled
pointer-events:none;
background:#e4e4e4
add a comment |
up vote
0
down vote
You can't use disabled in divs. The only way to disable a div is to use pointer-events none
.disabled-content
pointer-events: none;
opacity: 0.75;
Then your disabled div should be
<div class="disabled-content">Disabled div</div>
add a comment |
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
The div element supports global attributes which does not include disabled
. Use a class instead.
<div class="box17 disabled">
.box17.disabledpointer-events:none;background:#e4e4e4
add a comment |
up vote
1
down vote
accepted
The div element supports global attributes which does not include disabled
. Use a class instead.
<div class="box17 disabled">
.box17.disabledpointer-events:none;background:#e4e4e4
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
The div element supports global attributes which does not include disabled
. Use a class instead.
<div class="box17 disabled">
.box17.disabledpointer-events:none;background:#e4e4e4
The div element supports global attributes which does not include disabled
. Use a class instead.
<div class="box17 disabled">
.box17.disabledpointer-events:none;background:#e4e4e4
edited Nov 9 at 19:16
answered Nov 9 at 19:10
stealththeninja
1,69211324
1,69211324
add a comment |
add a comment |
up vote
1
down vote
Just add a class to that box div!
div.box.disabled
backgorund: #e4e4e4;
pointer-events: none;
<div class="col-md-4 col-sm-6">
<div class="box box17 disabled">
<img src="images/dash/rh.jpg" alt="">
<ul class="icon">
<li><a href="#"><i class="fa fa-users"></i></a></li>
</ul>
<div class="box-content">
<h3 class="title">Recursos Humanos</h3>
</div>
</div>
</div>
add a comment |
up vote
1
down vote
Just add a class to that box div!
div.box.disabled
backgorund: #e4e4e4;
pointer-events: none;
<div class="col-md-4 col-sm-6">
<div class="box box17 disabled">
<img src="images/dash/rh.jpg" alt="">
<ul class="icon">
<li><a href="#"><i class="fa fa-users"></i></a></li>
</ul>
<div class="box-content">
<h3 class="title">Recursos Humanos</h3>
</div>
</div>
</div>
add a comment |
up vote
1
down vote
up vote
1
down vote
Just add a class to that box div!
div.box.disabled
backgorund: #e4e4e4;
pointer-events: none;
<div class="col-md-4 col-sm-6">
<div class="box box17 disabled">
<img src="images/dash/rh.jpg" alt="">
<ul class="icon">
<li><a href="#"><i class="fa fa-users"></i></a></li>
</ul>
<div class="box-content">
<h3 class="title">Recursos Humanos</h3>
</div>
</div>
</div>
Just add a class to that box div!
div.box.disabled
backgorund: #e4e4e4;
pointer-events: none;
<div class="col-md-4 col-sm-6">
<div class="box box17 disabled">
<img src="images/dash/rh.jpg" alt="">
<ul class="icon">
<li><a href="#"><i class="fa fa-users"></i></a></li>
</ul>
<div class="box-content">
<h3 class="title">Recursos Humanos</h3>
</div>
</div>
</div>
div.box.disabled
backgorund: #e4e4e4;
pointer-events: none;
<div class="col-md-4 col-sm-6">
<div class="box box17 disabled">
<img src="images/dash/rh.jpg" alt="">
<ul class="icon">
<li><a href="#"><i class="fa fa-users"></i></a></li>
</ul>
<div class="box-content">
<h3 class="title">Recursos Humanos</h3>
</div>
</div>
</div>
div.box.disabled
backgorund: #e4e4e4;
pointer-events: none;
<div class="col-md-4 col-sm-6">
<div class="box box17 disabled">
<img src="images/dash/rh.jpg" alt="">
<ul class="icon">
<li><a href="#"><i class="fa fa-users"></i></a></li>
</ul>
<div class="box-content">
<h3 class="title">Recursos Humanos</h3>
</div>
</div>
</div>
answered Nov 9 at 19:12
Kristers Dzintars
508
508
add a comment |
add a comment |
up vote
0
down vote
:disabled
pseudo class cannot be used on a class name. It is only applicable to button
, input
, textarea
, optgroup
, option
and fieldset
.
Use another class instead :
<div class="box17 disabled">
Then :
.box17.disabled
pointer-events:none;
background:#e4e4e4
add a comment |
up vote
0
down vote
:disabled
pseudo class cannot be used on a class name. It is only applicable to button
, input
, textarea
, optgroup
, option
and fieldset
.
Use another class instead :
<div class="box17 disabled">
Then :
.box17.disabled
pointer-events:none;
background:#e4e4e4
add a comment |
up vote
0
down vote
up vote
0
down vote
:disabled
pseudo class cannot be used on a class name. It is only applicable to button
, input
, textarea
, optgroup
, option
and fieldset
.
Use another class instead :
<div class="box17 disabled">
Then :
.box17.disabled
pointer-events:none;
background:#e4e4e4
:disabled
pseudo class cannot be used on a class name. It is only applicable to button
, input
, textarea
, optgroup
, option
and fieldset
.
Use another class instead :
<div class="box17 disabled">
Then :
.box17.disabled
pointer-events:none;
background:#e4e4e4
answered Nov 9 at 19:10
Yann39
1,94332232
1,94332232
add a comment |
add a comment |
up vote
0
down vote
You can't use disabled in divs. The only way to disable a div is to use pointer-events none
.disabled-content
pointer-events: none;
opacity: 0.75;
Then your disabled div should be
<div class="disabled-content">Disabled div</div>
add a comment |
up vote
0
down vote
You can't use disabled in divs. The only way to disable a div is to use pointer-events none
.disabled-content
pointer-events: none;
opacity: 0.75;
Then your disabled div should be
<div class="disabled-content">Disabled div</div>
add a comment |
up vote
0
down vote
up vote
0
down vote
You can't use disabled in divs. The only way to disable a div is to use pointer-events none
.disabled-content
pointer-events: none;
opacity: 0.75;
Then your disabled div should be
<div class="disabled-content">Disabled div</div>
You can't use disabled in divs. The only way to disable a div is to use pointer-events none
.disabled-content
pointer-events: none;
opacity: 0.75;
Then your disabled div should be
<div class="disabled-content">Disabled div</div>
answered Nov 9 at 19:14
Paul Mikki
583
583
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53231912%2fdisable-a-div-using-the-disable-statement%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What do you want to achieve with the disabled tag? What exactly is on your mind?
– Sinan Samet
Nov 9 at 19:16