Why does my cursor in css it's not working?












-2















i started to program recently , and i'm trying to do an client are button and it's not working. Maybe some of you can help me






.areacliente {
width: 100px;
height: 100px;
position: absolute;
right: 15px;
top: 13px;
width: 130px;
margin-top: -10px;
text-align: right;
transition: .3s;
cursor: pointer;
}

.btn {
border: 1.2px solid #8e44ad;
border-radius: 8px;
background: none;
padding: 5px 10px;
font-size: 14px;
margin: 5px;
color: #9b59b6;
list-style: none;
}

.btn li a {
text-decoration: none;
cursor: pointer;
}

<div class="areacliente">
<ul class="btn">
<li><a href="#">Client Area<i id="lock"class="fas fa-user-lock"></i></a></li>
</ul>
</div>












share|improve this question

























  • How to work button explain?

    – R.Surya
    Dec 28 '18 at 12:51






  • 1





    What specifically isn't working as you expect it to?

    – Daniel Beck
    Dec 28 '18 at 12:53











  • it's simple , this button will redirect the person to and client area to register and log in

    – Claudiu
    Dec 28 '18 at 12:55











  • @Claudiu then change your href: <a href="register_page.html"> ?

    – Nick Parsons
    Dec 28 '18 at 12:57








  • 1





    not sure I get the question here... are you asking why the a tag does not redirect or perform an action? or what?

    – Jony-Y
    Dec 28 '18 at 12:59
















-2















i started to program recently , and i'm trying to do an client are button and it's not working. Maybe some of you can help me






.areacliente {
width: 100px;
height: 100px;
position: absolute;
right: 15px;
top: 13px;
width: 130px;
margin-top: -10px;
text-align: right;
transition: .3s;
cursor: pointer;
}

.btn {
border: 1.2px solid #8e44ad;
border-radius: 8px;
background: none;
padding: 5px 10px;
font-size: 14px;
margin: 5px;
color: #9b59b6;
list-style: none;
}

.btn li a {
text-decoration: none;
cursor: pointer;
}

<div class="areacliente">
<ul class="btn">
<li><a href="#">Client Area<i id="lock"class="fas fa-user-lock"></i></a></li>
</ul>
</div>












share|improve this question

























  • How to work button explain?

    – R.Surya
    Dec 28 '18 at 12:51






  • 1





    What specifically isn't working as you expect it to?

    – Daniel Beck
    Dec 28 '18 at 12:53











  • it's simple , this button will redirect the person to and client area to register and log in

    – Claudiu
    Dec 28 '18 at 12:55











  • @Claudiu then change your href: <a href="register_page.html"> ?

    – Nick Parsons
    Dec 28 '18 at 12:57








  • 1





    not sure I get the question here... are you asking why the a tag does not redirect or perform an action? or what?

    – Jony-Y
    Dec 28 '18 at 12:59














-2












-2








-2








i started to program recently , and i'm trying to do an client are button and it's not working. Maybe some of you can help me






.areacliente {
width: 100px;
height: 100px;
position: absolute;
right: 15px;
top: 13px;
width: 130px;
margin-top: -10px;
text-align: right;
transition: .3s;
cursor: pointer;
}

.btn {
border: 1.2px solid #8e44ad;
border-radius: 8px;
background: none;
padding: 5px 10px;
font-size: 14px;
margin: 5px;
color: #9b59b6;
list-style: none;
}

.btn li a {
text-decoration: none;
cursor: pointer;
}

<div class="areacliente">
<ul class="btn">
<li><a href="#">Client Area<i id="lock"class="fas fa-user-lock"></i></a></li>
</ul>
</div>












share|improve this question
















i started to program recently , and i'm trying to do an client are button and it's not working. Maybe some of you can help me






.areacliente {
width: 100px;
height: 100px;
position: absolute;
right: 15px;
top: 13px;
width: 130px;
margin-top: -10px;
text-align: right;
transition: .3s;
cursor: pointer;
}

.btn {
border: 1.2px solid #8e44ad;
border-radius: 8px;
background: none;
padding: 5px 10px;
font-size: 14px;
margin: 5px;
color: #9b59b6;
list-style: none;
}

.btn li a {
text-decoration: none;
cursor: pointer;
}

<div class="areacliente">
<ul class="btn">
<li><a href="#">Client Area<i id="lock"class="fas fa-user-lock"></i></a></li>
</ul>
</div>








.areacliente {
width: 100px;
height: 100px;
position: absolute;
right: 15px;
top: 13px;
width: 130px;
margin-top: -10px;
text-align: right;
transition: .3s;
cursor: pointer;
}

.btn {
border: 1.2px solid #8e44ad;
border-radius: 8px;
background: none;
padding: 5px 10px;
font-size: 14px;
margin: 5px;
color: #9b59b6;
list-style: none;
}

.btn li a {
text-decoration: none;
cursor: pointer;
}

<div class="areacliente">
<ul class="btn">
<li><a href="#">Client Area<i id="lock"class="fas fa-user-lock"></i></a></li>
</ul>
</div>





.areacliente {
width: 100px;
height: 100px;
position: absolute;
right: 15px;
top: 13px;
width: 130px;
margin-top: -10px;
text-align: right;
transition: .3s;
cursor: pointer;
}

.btn {
border: 1.2px solid #8e44ad;
border-radius: 8px;
background: none;
padding: 5px 10px;
font-size: 14px;
margin: 5px;
color: #9b59b6;
list-style: none;
}

.btn li a {
text-decoration: none;
cursor: pointer;
}

<div class="areacliente">
<ul class="btn">
<li><a href="#">Client Area<i id="lock"class="fas fa-user-lock"></i></a></li>
</ul>
</div>






html css






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 28 '18 at 12:51









t.niese

21.2k63764




21.2k63764










asked Dec 28 '18 at 12:46









ClaudiuClaudiu

12




12













  • How to work button explain?

    – R.Surya
    Dec 28 '18 at 12:51






  • 1





    What specifically isn't working as you expect it to?

    – Daniel Beck
    Dec 28 '18 at 12:53











  • it's simple , this button will redirect the person to and client area to register and log in

    – Claudiu
    Dec 28 '18 at 12:55











  • @Claudiu then change your href: <a href="register_page.html"> ?

    – Nick Parsons
    Dec 28 '18 at 12:57








  • 1





    not sure I get the question here... are you asking why the a tag does not redirect or perform an action? or what?

    – Jony-Y
    Dec 28 '18 at 12:59



















  • How to work button explain?

    – R.Surya
    Dec 28 '18 at 12:51






  • 1





    What specifically isn't working as you expect it to?

    – Daniel Beck
    Dec 28 '18 at 12:53











  • it's simple , this button will redirect the person to and client area to register and log in

    – Claudiu
    Dec 28 '18 at 12:55











  • @Claudiu then change your href: <a href="register_page.html"> ?

    – Nick Parsons
    Dec 28 '18 at 12:57








  • 1





    not sure I get the question here... are you asking why the a tag does not redirect or perform an action? or what?

    – Jony-Y
    Dec 28 '18 at 12:59

















How to work button explain?

– R.Surya
Dec 28 '18 at 12:51





How to work button explain?

– R.Surya
Dec 28 '18 at 12:51




1




1





What specifically isn't working as you expect it to?

– Daniel Beck
Dec 28 '18 at 12:53





What specifically isn't working as you expect it to?

– Daniel Beck
Dec 28 '18 at 12:53













it's simple , this button will redirect the person to and client area to register and log in

– Claudiu
Dec 28 '18 at 12:55





it's simple , this button will redirect the person to and client area to register and log in

– Claudiu
Dec 28 '18 at 12:55













@Claudiu then change your href: <a href="register_page.html"> ?

– Nick Parsons
Dec 28 '18 at 12:57







@Claudiu then change your href: <a href="register_page.html"> ?

– Nick Parsons
Dec 28 '18 at 12:57






1




1





not sure I get the question here... are you asking why the a tag does not redirect or perform an action? or what?

– Jony-Y
Dec 28 '18 at 12:59





not sure I get the question here... are you asking why the a tag does not redirect or perform an action? or what?

– Jony-Y
Dec 28 '18 at 12:59












2 Answers
2






active

oldest

votes


















0














Your issue is that your nav is floating on top of your 'Client Area' button so you can click on it. To fix this you need to change the z-index of this button:



.areacliente {
position: absolute;
right: 15px;
top: 13px;
width: 130px;
margin-top: -10px;
text-align : right;
transition: .3s;
cursor: pointer;
z-index: 1; /* Add this */
}


This will bring the button above the nav so you can now click on it.



See working example in this fiddle.






share|improve this answer
























  • Thank you ! have a great day

    – Claudiu
    Dec 28 '18 at 13:31











  • @Claudiu no worries. glad to help :)

    – Nick Parsons
    Dec 28 '18 at 13:31



















0

















.areacliente {
width: 100px;
height: 100px;
position: absolute;
right: 15px;
top: 13px;
margin-top: -10px;
text-align: right;
transition: .3s;
cursor: pointer;
}

.btn {
border: 1.2px solid #8e44ad;
border-radius: 8px;
background: none;
padding: 5px 10px;
font-size: 14px;
margin: 5px;
color: #9b59b6;
list-style: none;
}

.btn li a {
text-decoration: none;
cursor: pointer;
}

<div class="areacliente">
<ul class="btn">
<li><a href="https://stackoverflow.com/">Client Area<i id="lock"class="fas fa-user-lock"></i></a></li>
</ul>
</div>





I think left side space problem.so width: 100px; only use remove other one width: 130px



 .areacliente {
width: 100px;
height: 100px;
position: absolute;
right: 15px;
top: 13px;
width: 130px;
margin-top: -10px;
text-align: right;
transition: .3s;
cursor: pointer;
}





share|improve this answer


























  • Still not working

    – Claudiu
    Dec 28 '18 at 12:58











  • href inside add expect link page. solve your problem.

    – R.Surya
    Dec 28 '18 at 13:05











  • Still not working , my pointer appears , but 10px above my button

    – Claudiu
    Dec 28 '18 at 13:07











  • you expect above my run code correct?

    – R.Surya
    Dec 28 '18 at 13:10











  • what you mean ?

    – Claudiu
    Dec 28 '18 at 13:18











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53958849%2fwhy-does-my-cursor-in-css-its-not-working%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Your issue is that your nav is floating on top of your 'Client Area' button so you can click on it. To fix this you need to change the z-index of this button:



.areacliente {
position: absolute;
right: 15px;
top: 13px;
width: 130px;
margin-top: -10px;
text-align : right;
transition: .3s;
cursor: pointer;
z-index: 1; /* Add this */
}


This will bring the button above the nav so you can now click on it.



See working example in this fiddle.






share|improve this answer
























  • Thank you ! have a great day

    – Claudiu
    Dec 28 '18 at 13:31











  • @Claudiu no worries. glad to help :)

    – Nick Parsons
    Dec 28 '18 at 13:31
















0














Your issue is that your nav is floating on top of your 'Client Area' button so you can click on it. To fix this you need to change the z-index of this button:



.areacliente {
position: absolute;
right: 15px;
top: 13px;
width: 130px;
margin-top: -10px;
text-align : right;
transition: .3s;
cursor: pointer;
z-index: 1; /* Add this */
}


This will bring the button above the nav so you can now click on it.



See working example in this fiddle.






share|improve this answer
























  • Thank you ! have a great day

    – Claudiu
    Dec 28 '18 at 13:31











  • @Claudiu no worries. glad to help :)

    – Nick Parsons
    Dec 28 '18 at 13:31














0












0








0







Your issue is that your nav is floating on top of your 'Client Area' button so you can click on it. To fix this you need to change the z-index of this button:



.areacliente {
position: absolute;
right: 15px;
top: 13px;
width: 130px;
margin-top: -10px;
text-align : right;
transition: .3s;
cursor: pointer;
z-index: 1; /* Add this */
}


This will bring the button above the nav so you can now click on it.



See working example in this fiddle.






share|improve this answer













Your issue is that your nav is floating on top of your 'Client Area' button so you can click on it. To fix this you need to change the z-index of this button:



.areacliente {
position: absolute;
right: 15px;
top: 13px;
width: 130px;
margin-top: -10px;
text-align : right;
transition: .3s;
cursor: pointer;
z-index: 1; /* Add this */
}


This will bring the button above the nav so you can now click on it.



See working example in this fiddle.







share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 28 '18 at 13:28









Nick ParsonsNick Parsons

4,8622721




4,8622721













  • Thank you ! have a great day

    – Claudiu
    Dec 28 '18 at 13:31











  • @Claudiu no worries. glad to help :)

    – Nick Parsons
    Dec 28 '18 at 13:31



















  • Thank you ! have a great day

    – Claudiu
    Dec 28 '18 at 13:31











  • @Claudiu no worries. glad to help :)

    – Nick Parsons
    Dec 28 '18 at 13:31

















Thank you ! have a great day

– Claudiu
Dec 28 '18 at 13:31





Thank you ! have a great day

– Claudiu
Dec 28 '18 at 13:31













@Claudiu no worries. glad to help :)

– Nick Parsons
Dec 28 '18 at 13:31





@Claudiu no worries. glad to help :)

– Nick Parsons
Dec 28 '18 at 13:31













0

















.areacliente {
width: 100px;
height: 100px;
position: absolute;
right: 15px;
top: 13px;
margin-top: -10px;
text-align: right;
transition: .3s;
cursor: pointer;
}

.btn {
border: 1.2px solid #8e44ad;
border-radius: 8px;
background: none;
padding: 5px 10px;
font-size: 14px;
margin: 5px;
color: #9b59b6;
list-style: none;
}

.btn li a {
text-decoration: none;
cursor: pointer;
}

<div class="areacliente">
<ul class="btn">
<li><a href="https://stackoverflow.com/">Client Area<i id="lock"class="fas fa-user-lock"></i></a></li>
</ul>
</div>





I think left side space problem.so width: 100px; only use remove other one width: 130px



 .areacliente {
width: 100px;
height: 100px;
position: absolute;
right: 15px;
top: 13px;
width: 130px;
margin-top: -10px;
text-align: right;
transition: .3s;
cursor: pointer;
}





share|improve this answer


























  • Still not working

    – Claudiu
    Dec 28 '18 at 12:58











  • href inside add expect link page. solve your problem.

    – R.Surya
    Dec 28 '18 at 13:05











  • Still not working , my pointer appears , but 10px above my button

    – Claudiu
    Dec 28 '18 at 13:07











  • you expect above my run code correct?

    – R.Surya
    Dec 28 '18 at 13:10











  • what you mean ?

    – Claudiu
    Dec 28 '18 at 13:18
















0

















.areacliente {
width: 100px;
height: 100px;
position: absolute;
right: 15px;
top: 13px;
margin-top: -10px;
text-align: right;
transition: .3s;
cursor: pointer;
}

.btn {
border: 1.2px solid #8e44ad;
border-radius: 8px;
background: none;
padding: 5px 10px;
font-size: 14px;
margin: 5px;
color: #9b59b6;
list-style: none;
}

.btn li a {
text-decoration: none;
cursor: pointer;
}

<div class="areacliente">
<ul class="btn">
<li><a href="https://stackoverflow.com/">Client Area<i id="lock"class="fas fa-user-lock"></i></a></li>
</ul>
</div>





I think left side space problem.so width: 100px; only use remove other one width: 130px



 .areacliente {
width: 100px;
height: 100px;
position: absolute;
right: 15px;
top: 13px;
width: 130px;
margin-top: -10px;
text-align: right;
transition: .3s;
cursor: pointer;
}





share|improve this answer


























  • Still not working

    – Claudiu
    Dec 28 '18 at 12:58











  • href inside add expect link page. solve your problem.

    – R.Surya
    Dec 28 '18 at 13:05











  • Still not working , my pointer appears , but 10px above my button

    – Claudiu
    Dec 28 '18 at 13:07











  • you expect above my run code correct?

    – R.Surya
    Dec 28 '18 at 13:10











  • what you mean ?

    – Claudiu
    Dec 28 '18 at 13:18














0












0








0










.areacliente {
width: 100px;
height: 100px;
position: absolute;
right: 15px;
top: 13px;
margin-top: -10px;
text-align: right;
transition: .3s;
cursor: pointer;
}

.btn {
border: 1.2px solid #8e44ad;
border-radius: 8px;
background: none;
padding: 5px 10px;
font-size: 14px;
margin: 5px;
color: #9b59b6;
list-style: none;
}

.btn li a {
text-decoration: none;
cursor: pointer;
}

<div class="areacliente">
<ul class="btn">
<li><a href="https://stackoverflow.com/">Client Area<i id="lock"class="fas fa-user-lock"></i></a></li>
</ul>
</div>





I think left side space problem.so width: 100px; only use remove other one width: 130px



 .areacliente {
width: 100px;
height: 100px;
position: absolute;
right: 15px;
top: 13px;
width: 130px;
margin-top: -10px;
text-align: right;
transition: .3s;
cursor: pointer;
}





share|improve this answer


















.areacliente {
width: 100px;
height: 100px;
position: absolute;
right: 15px;
top: 13px;
margin-top: -10px;
text-align: right;
transition: .3s;
cursor: pointer;
}

.btn {
border: 1.2px solid #8e44ad;
border-radius: 8px;
background: none;
padding: 5px 10px;
font-size: 14px;
margin: 5px;
color: #9b59b6;
list-style: none;
}

.btn li a {
text-decoration: none;
cursor: pointer;
}

<div class="areacliente">
<ul class="btn">
<li><a href="https://stackoverflow.com/">Client Area<i id="lock"class="fas fa-user-lock"></i></a></li>
</ul>
</div>





I think left side space problem.so width: 100px; only use remove other one width: 130px



 .areacliente {
width: 100px;
height: 100px;
position: absolute;
right: 15px;
top: 13px;
width: 130px;
margin-top: -10px;
text-align: right;
transition: .3s;
cursor: pointer;
}





.areacliente {
width: 100px;
height: 100px;
position: absolute;
right: 15px;
top: 13px;
margin-top: -10px;
text-align: right;
transition: .3s;
cursor: pointer;
}

.btn {
border: 1.2px solid #8e44ad;
border-radius: 8px;
background: none;
padding: 5px 10px;
font-size: 14px;
margin: 5px;
color: #9b59b6;
list-style: none;
}

.btn li a {
text-decoration: none;
cursor: pointer;
}

<div class="areacliente">
<ul class="btn">
<li><a href="https://stackoverflow.com/">Client Area<i id="lock"class="fas fa-user-lock"></i></a></li>
</ul>
</div>





.areacliente {
width: 100px;
height: 100px;
position: absolute;
right: 15px;
top: 13px;
margin-top: -10px;
text-align: right;
transition: .3s;
cursor: pointer;
}

.btn {
border: 1.2px solid #8e44ad;
border-radius: 8px;
background: none;
padding: 5px 10px;
font-size: 14px;
margin: 5px;
color: #9b59b6;
list-style: none;
}

.btn li a {
text-decoration: none;
cursor: pointer;
}

<div class="areacliente">
<ul class="btn">
<li><a href="https://stackoverflow.com/">Client Area<i id="lock"class="fas fa-user-lock"></i></a></li>
</ul>
</div>






share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 28 '18 at 13:09

























answered Dec 28 '18 at 12:57









R.SuryaR.Surya

679




679













  • Still not working

    – Claudiu
    Dec 28 '18 at 12:58











  • href inside add expect link page. solve your problem.

    – R.Surya
    Dec 28 '18 at 13:05











  • Still not working , my pointer appears , but 10px above my button

    – Claudiu
    Dec 28 '18 at 13:07











  • you expect above my run code correct?

    – R.Surya
    Dec 28 '18 at 13:10











  • what you mean ?

    – Claudiu
    Dec 28 '18 at 13:18



















  • Still not working

    – Claudiu
    Dec 28 '18 at 12:58











  • href inside add expect link page. solve your problem.

    – R.Surya
    Dec 28 '18 at 13:05











  • Still not working , my pointer appears , but 10px above my button

    – Claudiu
    Dec 28 '18 at 13:07











  • you expect above my run code correct?

    – R.Surya
    Dec 28 '18 at 13:10











  • what you mean ?

    – Claudiu
    Dec 28 '18 at 13:18

















Still not working

– Claudiu
Dec 28 '18 at 12:58





Still not working

– Claudiu
Dec 28 '18 at 12:58













href inside add expect link page. solve your problem.

– R.Surya
Dec 28 '18 at 13:05





href inside add expect link page. solve your problem.

– R.Surya
Dec 28 '18 at 13:05













Still not working , my pointer appears , but 10px above my button

– Claudiu
Dec 28 '18 at 13:07





Still not working , my pointer appears , but 10px above my button

– Claudiu
Dec 28 '18 at 13:07













you expect above my run code correct?

– R.Surya
Dec 28 '18 at 13:10





you expect above my run code correct?

– R.Surya
Dec 28 '18 at 13:10













what you mean ?

– Claudiu
Dec 28 '18 at 13:18





what you mean ?

– Claudiu
Dec 28 '18 at 13:18


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53958849%2fwhy-does-my-cursor-in-css-its-not-working%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Angular Downloading a file using contenturl with Basic Authentication

Olmecas

Can't read property showImagePicker of undefined in react native iOS