Forum Moderators: not2easy
I am using CSS to create buttons for my website. Although the buttons are working, the CSS validator that I'm using doesn't like the class shown below. The warning that I receive states: "The width property only applies to block-level and replaced elements, and elements with position value absolute."
div.menuItem a{
width: 100%;
/* snipped out unnecessary stuff */
}
I understand what the warning means but I need to include the width element so that the anchor text consumes the entire area of the div that it is in ... for when people mouse over the area.
Is there any other way to cause anchor text to consume 100% of the block element that it is in that would be considered "valid" CSS.
Thanks,
Kris