Search
 
SCRIPT & CODE EXAMPLE
 

CSS

skip main content - keyboard accessible buttons on navbar

1
2
3
<a class="skip-main" href="#main">Skip to main content</a>
<nav>Navigation</nav>
<main id="main" tabindex="-1">Main content</main>
Comment

skip main content - keyboard accessible buttons on navbar - css

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
a.skip-main {
    left: -999px;
    position: absolute;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -999;
}
a.skip-main:focus {
    left: auto;
    top: auto;
    width: 30%;
    height: auto;
    overflow: auto;
    margin: 0 35%;
    padding: 5px;
    font-size: 20px;
    outline: 3px solid red;
    text-align: center;
    z-index: 999;
}
Comment

PREVIOUS NEXT
Code Example
Css :: inline list css without floats 
Css :: move left and right text css 
Css :: Slide up and down animation CSS CodePen 
Css :: change the bullet point color css 
Css :: frontend to backend fetching 
Css :: 100 bytes of css 
Css :: how to stop a blue color on touch in css 
Css :: transition all except one property 
Css :: what is a css do follow attribute content: "(dofollow)" !important; 
Css :: vervaging en verloop css 
Css :: css 2 images side by side to stack 
Css :: css safari webkit input search icon hide 
Css :: overwrite safari dropdown css 
Css :: how to find out horizontal scrolling 
Css :: css cap rows paragraph 
Css :: how to make something unable to be highlighted css 
Css :: why use 0.5rem 0 in margin in css 
Css :: SPECIFIC CHILD ELEMENTS 
Css :: docker registry fetch 
Css :: french bakery northgate 
Css :: Shorthand notation of declaring top, right, bottom, left position 
Css :: background image in css is not working 
Css :: css background-clip 
Css :: blob svg 
Typescript :: expected 2 arguments but got 1. viewchild angular 
Typescript :: input event typescript 
Typescript :: Do not use "// @ts-ignore" comments because they suppress compilation errors 
Typescript :: delete all child elements jquery 
Typescript :: typescript iterate over enum 
Typescript :: how to see all commits in git 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =