Click here to Skip to main content
15,912,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear people,

I would like to explain myself the best way I can. I made a autocomplete function where once I type a DOT you will see all the domain names like ".nl, .com, .org etc." That works but every domain had a border around it once I hover on it, so I did Border: none; and it works but once my mouse pointer leaves the scrolbar section where all the domain are the border appears for a seclond on the one I touched last, so only when I leave the scrollbar section thing, I have changed all classes in none border but it doesn`t work, what do I have to do?

JavaScript
.ui-menu-item-wrapper {
    height: 30px;
	font-size:15px;
	width: auto;
	border: none;
}

.ui-menu-item-wrapper:hover {
    font-weight: bold;
	border:none;
	height: 30px;
	width: auto;
}

#ui-id-1 {
	overflow: auto;
	height: 170px;
	width: 200px;
	border: none;
}


What I have tried:

border: none; several times.
I have used it in every class there was.
Posted
Updated 4-Oct-18 3:51am
Comments
pankajupadhyay29 27-Sep-18 13:32pm    
It will be good if you can post some running sample, in jsFiddle or codepen. By seeing this question it seems you are using some anchor tag and that outline is for visited, as it is on the last touched element.

1 solution

Please use this below CSS for that
text-decoration: none;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900