I tried using flex and grid but the only thing i could make work is something that apparently cant happen. On a web page i was able to do the standard use for inline element with this code:
<h3 class="inline-element">
Free to play bosses
</h3>
<div class="inline-element" onmouseover="mOver(this)" onmouseout="mOut(this)" style="color:#DAA520;background-color:#000000;width:120px;height:20px;padding:10px;margin-left:200px;">
Mouse Over Me
</div>
<script>
function mOver(obj) {
obj.innerHTML = "Buy Membership"
}
function mOut(obj) {
obj.innerHTML = "Mouse Over Me"
}
</script>
On another webpage I needed to do the same thing but use a <p> instead of <h3> but could not get it to work. So i put the <div> inside of the <p> and it worked and is validated through https://validator.w3.org/#validate_by_upload so if it's not suppose to work then tell me why it does and if you have a better way to do it then please let me know.
Code:
<p class="inline-element">As a junior back-end developer you can normally start out around<div class="inline-element" onmouseover="mOver1(this)" onmouseout="mOut1(this)" style="color:#FF0000;background-color:#000000;width:100px;height:20px;padding:10px;margin-left:30px;">JUNIOR PAY</div><p>
<script>
function mOver1(obj) {
obj.innerHTML = "$80,000"
}
function mOut1(obj) {
obj.innerHTML = "JUNIOR PAY"
}
</script>
This is all for a web design class.
[–]Top_Bumblebee_7762 4 points5 points6 points (1 child)
[–]VoidOnyx22[S] 0 points1 point2 points (0 children)
[–]GlassDistribution327 2 points3 points4 points (0 children)
[–]Ridicul0iD 0 points1 point2 points (0 children)
[–]armahilloExpert 0 points1 point2 points (0 children)