Jump to content

[HTML/CSS] How do I remove the outline?

Guest
Go to solution Solved by Ciccioo,

I've tried outline: none; and outline: 0; but that didn't work. Everything I found on google said to do that.

you have to do that on the link, so on ".lMenu li a"

 

before doing that though, read this: http://www.outlinenone.com/

It's a little hard to explain what I'm talking about, but so I took this screenshot.

QVM4j.jpg

As you can see, the home button is surrounded with little outline things I don't want there.

 

How would I remove this? I tried googling it but honestly I have no idea what the technical term for this behaviour is so I had no luck with that.

Link to comment
Share on other sites

Link to post
Share on other sites

It would be CSS related.

 

Probably something to do with the link <a>

Or something to do with the <div> that its in so like its boarder or margin or padding.

 

Could you be more specific about what you dont want and maybe post the HTML line of the button there too? @whitephoenix

My Rigs:

Gaming/CAD/Rendering Rig
Case:
 Corsair Air 240 , CPU: i7-4790K, Mobo: ASUS Gryphon Z97 mATX,  GPU: Gigabyte G1 Gaming GTX 970, RAM: G.Skill Sniper 16GB, SSD: SAMSUNG 1TB 840 EVO, Cooling: Corsair H80i PCPP: https://au.pcpartpicker.com/b/f2TH99SFF HTPC
Case:
Silverstone ML06B, CPU: Pentium G3258, Mobo: Gigabyte GA-H97N-WiFi, RAM: G.Skill 4GB, SSD: Kingston SSDNow 120GB PCPP: https://au.pcpartpicker.com/b/JmZ8TW
Link to comment
Share on other sites

Link to post
Share on other sites

If you could post the HTML & any CSS you have here that would be helpful.

CPU: i7-4790K --- HEATSINK: NZXT Kraken X61 --- MOBO: Asus Z97-A --- GPU: GTX 970 Strix --- RAM: 16GB ADATA XPG --- SSD: 512GB MX100 | 256GB BX200 HDD: 1TB WD Black --- PSU: EVGA SuperNova G2 --- CASE: NZXT H440 --- DISPLAY3 x Dell U2414H --- KEYBOARD: Pok3r (Clears) --- MOUSE: Logitech G Pro --- OS: Windows 10

Link to comment
Share on other sites

Link to post
Share on other sites

It would be CSS related.

 

Probably something to do with the link <a>

Or something to do with the <div> that its in so like its boarder or margin or padding.

 

Could you be more specific about what you dont want and maybe post the HTML line of the button there too? @whitephoenix

Codepen below, and its the dotted outline I want to remove

 

If you could post the HTML & any CSS you have here that would be helpful.

http://codepen.io/anon/pen/OVQBLo

 

If you click any of the button on the top you'll see what I'm talking about

Link to comment
Share on other sites

Link to post
Share on other sites

If you click any of the button on the top you'll see what I'm talking about

 

Ah yep I can see now what you mean.

 

I think it would have to do with:

a:visited

Im a bit rusty with my CSS but thats probably the most likely cause, so maybe try a few different settings for it.

My Rigs:

Gaming/CAD/Rendering Rig
Case:
 Corsair Air 240 , CPU: i7-4790K, Mobo: ASUS Gryphon Z97 mATX,  GPU: Gigabyte G1 Gaming GTX 970, RAM: G.Skill Sniper 16GB, SSD: SAMSUNG 1TB 840 EVO, Cooling: Corsair H80i PCPP: https://au.pcpartpicker.com/b/f2TH99SFF HTPC
Case:
Silverstone ML06B, CPU: Pentium G3258, Mobo: Gigabyte GA-H97N-WiFi, RAM: G.Skill 4GB, SSD: Kingston SSDNow 120GB PCPP: https://au.pcpartpicker.com/b/JmZ8TW
Link to comment
Share on other sites

Link to post
Share on other sites

Not there for me...

I just learned something: it's a firefox thing. Just tested in chrome and it didn't happen

Link to comment
Share on other sites

Link to post
Share on other sites

Ah yep I can see now what you mean.

 

I think it would have to do with:

a:visited

Im a bit rusty with my CSS but thats probably the most likely cause, so maybe try a few different settings for it.

I've tried outline: none; and outline: 0; but that didn't work. Everything I found on google said to do that.

Link to comment
Share on other sites

Link to post
Share on other sites

I just learned something: it's a firefox thing. Just tested in chrome and it didn't happen

 

Oh D:

 

Might still be able to tweak some settings somewhere to fix it.

 

btw, bootstrap is pretty awesome hey ;)

My Rigs:

Gaming/CAD/Rendering Rig
Case:
 Corsair Air 240 , CPU: i7-4790K, Mobo: ASUS Gryphon Z97 mATX,  GPU: Gigabyte G1 Gaming GTX 970, RAM: G.Skill Sniper 16GB, SSD: SAMSUNG 1TB 840 EVO, Cooling: Corsair H80i PCPP: https://au.pcpartpicker.com/b/f2TH99SFF HTPC
Case:
Silverstone ML06B, CPU: Pentium G3258, Mobo: Gigabyte GA-H97N-WiFi, RAM: G.Skill 4GB, SSD: Kingston SSDNow 120GB PCPP: https://au.pcpartpicker.com/b/JmZ8TW
Link to comment
Share on other sites

Link to post
Share on other sites

Oh D:

 

Might still be able to tweak some settings somewhere to fix it.

 

btw, bootstrap is pretty awesome hey ;)

It is pretty awesome, my website would look stupid without it

Link to comment
Share on other sites

Link to post
Share on other sites

I've tried outline: none; and outline: 0; but that didn't work. Everything I found on google said to do that.

you have to do that on the link, so on ".lMenu li a"

 

before doing that though, read this: http://www.outlinenone.com/

Link to comment
Share on other sites

Link to post
Share on other sites

you have to do that on the link, so on ".lMenu li a"

 

before doing that though, read this: http://www.outlinenone.com/

I'll try that

 

and the whole don't remove outlines thing doesn't really apply here because if you press tab to navigate on my website the buttons highlight as if you were hovering with a mouse anyways.

 

EDIT: Thanks! It worked!

    .lMenu li a {      outline: none;    }
Link to comment
Share on other sites

Link to post
Share on other sites

and the whole don't remove outlines thing doesn't really apply here because if you press tab to navigate on my website the buttons highlight as if you were hovering with a mouse anyways

That's what that website says. You can remove the outline as long as you implement something else to highlight selected links. your solution will work nicely ;)

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×