So my problem is starting to really frustrate me. I did this nav bar, with 2 lines of text inside each <li> I’m not so good at explaining it but if you see the code i’ve linked below you will see what i mean.
Anyway so the way I’ve done it works fine in the browser, doesnt have any display issues in either safari or firefox, (haven’t checked ie yet) but the validator says
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Here is the code
<a> is an inline element and <div> is a block element. You can’t put the <div> (or the <p>, for that matter) inside the <a> tag.
You can do it this way though.
with the css:
You must be logged in to reply to this topic.