Empty Anchor tag with a background image has no height
25 minutes ago, Gammett said:I have been using the dev tools of the new chromium based edge (basically identical to chrome's dev tools) and my logo (The SVG with the id="nav-home") shows as a height of 0px. Whenever I put text inside that anchor then text shows up in it's place just fine. What should I be doing differently that I'm not right now to have the logo show up where it's supposed to in the flex box?
webpage documents in uploaded files, there should only be two text files, one for the html and then the external stylesheet with the css, as well as the .svg and .png that are a part of the site as well.
Change the CSS to this, and you'll have progress. (at least I did in Chrome.) You'll have to play with the positioning, but otherwise it displays OK.
#nav-home { background-image: url(../assets/Logos/Placeholders/Perfect Stitch Upholstery Logo - SVG Trace.svg); background-repeat: no-repeat; background-attachment: inherit; background-origin: content-box; background-position: center; background-size: contain; min-height: 400px; display: block; }
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now