Floated Image Link Issue

Developer
Size
2,847 Kb
Views
22,264

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 Previews

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&#61; <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/*/
Floated Image Link Issue - Script Codes
Floated Image Link Issue - Script Codes
Home Page Home
Developer Joni Trythall
Username jonitrythall
Uploaded October 02, 2022
Rating 3.5
Size 2,847 Kb
Views 22,264
Do you need developer help for Floated Image Link Issue?

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!

Joni Trythall (jonitrythall) Script Codes
Create amazing blog posts with AI!

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!