Floated Image Link Issue
How do I make an floated image link issue?
Fixing the tab accessibility/focus problem caused by floated image links.. What is a floated image link issue? How do you make a floated image link issue? This script and codes were developed by Joni Trythall on 02 October 2022, Sunday.
Floated Image Link Issue - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Floated Image Link Issue</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <link href='https://fonts.googleapis.com/css?family=Dosis:700' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Arvo' rel='stylesheet' type='text/css'>
<div class="contain-demo"> <h1>Start Tabbing!</h1> <h2 class="">Non-floated image links focus while tabbing</h2> <a href="#"> <img class="apple" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/80625/weatherapples-08.svg" alt="Adorable red apple illustration with smiling face and eyes." /> <img class="apple speach" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/80625/talkapple-10.svg" alt="Speach bubble saying: 'Get your local apple weather'" /> </a> <h2>Floated image link focus appears to be skipped over when tabbing</h2> <a class="problem" href="#"> <img class="apple-float" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/80625/weatherapples-08.svg" alt="Adorable red apple illustration with smiling face and eyes." /> <img class="apple-float speach-float" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/80625/talkapple-10.svg" alt="Speach bubble saying: 'Get your local apple weather'" /> </a> <h2 class="solution">A solution= <code>display: inline-block;</code> to the parent anchor of floated images</h2> <a class="solution" href="#"> <img class="apple-float" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/80625/weatherapples-08.svg" alt="Adorable red apple illustration with smiling face and eyes." /> <img class="apple-float speach-float" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/80625/talkapple-10.svg" alt="Speach bubble saying: 'Get your local apple weather'" /> </a>
</div> <script src="js/index.js"></script>
</body>
</html>
Floated Image Link Issue - Script Codes CSS Codes
body { font-family: 'Dosis', sans-serif; font-size: 12px; color: #333333; text-align: center; background: #e8effc;
}
.contain-demo { margin: 30px auto; width: 500px;
}
h1 { font-family: 'Arvo', serif; color: #ed6e46;
}
h2 { margin-top: 60px; font-family: 'Arvo', serif;
}
h2:after { content: ':';
}
img { width: 220px;
}
a { text-decoration: none;
}
a .apple-float { float: left;
}
a .speach-float { float: right;
}
.solution { display: inline-block;
}
Floated Image Link Issue - Script Codes JS Codes
/*
read this and was like omg need to see: https://www.ssbbartgroup.com/blog/2014/12/16/using-css-floats-with-image-links/
have only tested this guy in Chrome
demo for An Apple A Day project: https://jonitrythall.github.io/appleproject/*/
Developer | Joni Trythall |
Username | jonitrythall |
Uploaded | October 02, 2022 |
Rating | 3.5 |
Size | 2,847 Kb |
Views | 22,264 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Weird Circle Loader | 2,792 Kb |
Shifty the CSS Crab | 3,034 Kb |
Brian The CSS Bee | 3,922 Kb |
Frosted Glass Quote | 2,591 Kb |
CSS Pencil Scoop Logo | 2,304 Kb |
Solar Eclipse Loader | 3,012 Kb |
Franklin The CSS Fish | 2,163 Kb |
Hinged Twitter Button | 3,761 Kb |
Nested Noodle Loader | 2,683 Kb |
Unite Loader | 2,630 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Form Labels | Bartuc | 2,717 Kb |
Octopus Bar iPad App Interactions | Davidkpiano | 6,735 Kb |
Dribbble Inspired Registration Form | Lancebush | 2,358 Kb |
Portfolio Landing Page | FDfranklin | 3,585 Kb |
Mobile Sub Menu Concept | Berdejitendra | 2,790 Kb |
AOR site logo | Thatbram | 2,527 Kb |
A Pen by Miro Olma | Programiro | 2,342 Kb |
Multicolumns 2 | Raphaelgoetter | 1,857 Kb |
A Pen by Xand0r | Xand0r | 1,928 Kb |
Sitemap generator for Sharepoint | Gyusza | 2,518 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!