CSS Only In-Place Translation
How do I make an css only in-place translation?
Utilzing the <dfn> HTML tag, in-place translation aims to standardize the translation and definition conventions of words or phrases that might require an extra clarification.. What is a css only in-place translation? How do you make a css only in-place translation? This script and codes were developed by Yogev Ahuvia on 11 September 2022, Sunday.
CSS Only In-Place Translation - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS Only In-Place Translation</title> <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,300' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ dfn[title] { cursor: help; position: relative; font-style: normal;
}
dfn[title]:after { content: '*'; color: lightblue; display: inline; text-align: right; white-space: nowrap; vertical-align: super; font-size: 0.6em; padding-left: 2px;
}
dfn[title]:hover:after { content: " (" attr(title) ")"; min-width: 100%; color: lightblue; vertical-align: inherit; font-size: inherit; padding-left: 0;
}
body { background: #222; color: #eee; font-size: 26px; font-weight: 100; font-family: 'Open Sans', sans-serif;
}
p, hgroup { width: 960px; margin: 20px auto;
}
h1 { font-weight: 700; font-size: 30px; margin-bottom: 0px;
}
h3 { font-weight: 300; font-size: 20px; margin-top: 0px;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <hgroup> <h1>CSS <dfn title="and some HTML...">Only</dfn> In-Place Translation</h1> <h3>Hover over words that have an asterix besides them</h3>
</hgroup>
<p>Utilzing the <dfn> HTML tag, in-place translation aims to standardize the translation and definition conventions of words or phrases that might require an extra clarification. For instance, if you read an article and see an acronym like <dfn title="As Far As I Know">AFAIK</dfn>, or a common term like <dfn title="User Experience">UX</dfn>, with in-place translation the reader actually see an alternative defintion along the text, in the original <dfn title="meaning">context</dfn>, allowing them to continue read fluently, with a minimum amount of distractions.</p>
<p>The definable words are marked with small asterixis and does not interfere the readers from their text. The definitions are added inside the original HTML, making also the definitions and the defined words themselves accessible. In addition, this solution is CSS only making it available on any modern <dfn title="browser">web parser</dfn>.</p>
</body>
</html>
CSS Only In-Place Translation - Script Codes CSS Codes
dfn[title] { cursor: help; position: relative; font-style: normal;
}
dfn[title]:after { content: '*'; color: lightblue; display: inline; text-align: right; white-space: nowrap; vertical-align: super; font-size: 0.6em; padding-left: 2px;
}
dfn[title]:hover:after { content: " (" attr(title) ")"; min-width: 100%; color: lightblue; vertical-align: inherit; font-size: inherit; padding-left: 0;
}
body { background: #222; color: #eee; font-size: 26px; font-weight: 100; font-family: 'Open Sans', sans-serif;
}
p, hgroup { width: 960px; margin: 20px auto;
}
h1 { font-weight: 700; font-size: 30px; margin-bottom: 0px;
}
h3 { font-weight: 300; font-size: 20px; margin-top: 0px;
}
Developer | Yogev Ahuvia |
Username | kindofone |
Uploaded | September 11, 2022 |
Rating | 3 |
Size | 3,336 Kb |
Views | 30,360 |
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 |
Real-Time Love Meter | 5,493 Kb |
Playing At Sunset | 12,065 Kb |
Living Interfaces - Talk | 7,280 Kb |
Natural Language Accordion Form | 8,426 Kb |
Ball Bouncing On Text | 5,553 Kb |
CSS Filter Glass | 7,188 Kb |
3D Cube of 3D Balls | 4,507 Kb |
Playing with fixed header | 7,296 Kb |
Triangles From Another Dimension | 15,606 Kb |
Spinning Top | 6,037 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 |
Jquery 2d character movement | Drewtadams | 4,291 Kb |
Kut D3 | Jellevrswk | 3,687 Kb |
Ionic - Wordpress REST API starter | Superpikar | 2,961 Kb |
Search field | Jamesbarnett | 2,100 Kb |
CSS3 keyframe onload animation. | Samueljseay | 1,706 Kb |
CSS3 Snow Animation | NickyCDK | 1,695 Kb |
Spinners using Font Icons | Keyamoon | 3,007 Kb |
Magnus 3 | ARocketfish | 7,944 Kb |
The Rope | Chribbe | 2,886 Kb |
Foundation 5 Menu - Accessibility | Xporter | 1,999 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!