- This topic is empty.
-
AuthorPosts
-
January 19, 2015 at 12:18 pm #193621
carylizable
ParticipantSomehow I blocked the default browser focus styling (dotted square) around my nav links. Threw in several focus styles, none of which work. I think it’s the link or title class.
[MOD EDIT – Codedump Removed]
January 19, 2015 at 12:23 pm #193623shaneisme
ParticipantPlease don’t dump code into the forum.
Use CodePen or provide a live URL.
January 19, 2015 at 12:47 pm #193631carylizable
ParticipantSorry. Here’s the live URL but I can’t isolate the code to use code pen. Maybe it’s not an appropriate question for this forum? http://www.durhamtech.edu/
The problem is when I tab down to the nav menu in the black bar, the default focus browser styling (dotted white box) doesn’t show around the link.
January 19, 2015 at 2:21 pm #193635Shikkediel
ParticipantLooks like there’s a repeating typo for the outline rules :
outline: 1px dotted; #fff
No semicolon needed…
January 19, 2015 at 2:38 pm #193638carylizable
ParticipantThanks so much for catching that. Didn’t fix the problem though. There’s a lot of repetitious CSS there since I was trying to get it to work different ways. None of them do. I can’t figure it out.
January 19, 2015 at 3:03 pm #193646Shikkediel
ParticipantI also see you are using
:focus
for links – which do not have any input. Could be worth trying:hover
or:active
instead.Edit – reading up, right now it would only work with the keyboard.
January 19, 2015 at 4:23 pm #193649shaneisme
ParticipantI can’t isolate the code to use code pen
Why not? I bet it would solve your problem, or at least it would let you know that the problem was X instead of Y.
I took a quick glance at the website, but things are a bit messy with stuff being overwritten and over-specified… If you simplified the test a bit, we could all dig into it.
January 20, 2015 at 5:18 am #193715carylizable
ParticipantYou guys were right (are you always?). Thanks for pushing me. I stripped out all of the code and slowly built it back in. I need to use focus because I only want it to show on tabbing and not hovering or active for accessibility purposes. This is the code that worked (finally).
#main .cell .title:focus{outline: 1px dotted #fff}
Thanks again for catching the extra colon Shikkediel. That would have driven me nuts.
January 20, 2015 at 10:45 am #193729shaneisme
ParticipantHey I like to hear that @carylizable – keep at it and start a new thread if anything else goes haywire.
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.