I'm having an issue, and I'm not actually sure what is going wrong.
I have an HTML page, and my images are currently linked in as such.
<span class="tribar" onclick="openNav()"><img src="url_here"></span>
I was trying to eliminate all image urls from the HTML source code, and have them in the css. This is what I have tried.
<span class="tribar" onclick="openNav()"></span> // HTML
.tribar {
display: inline-block;
background-image: url("image_url") no-repeat top left;
width: 220px;
height: 220px;
}
But my HTML span is coming up blank, and I can't seem to figure it out.
This should be a simple mistake.
no=repeatis invalid in cssno-repeatinstead ofno=repeat<button>, not a<span>. Buttons are interactive controls (they show up as such in screen readers, you can tab to them if you can't use a mouse, etc). You also want something to tell people what clicking on the button will do. That is Content, not Presentation. The right place to put content is HTML not CSS. Use an<img>and give it analtattribute.no=repeat.no=repeatwas a typo on here.