I have this fiddle where there is a rollover style applied to a paragraph – but I want that paragraph to only be as wide as the text contained within (not the entire width of the containing element). If I do display:inline-block it brings each menu option up to the same line but sets the width of each item appropriately. How do I combine both (options on separate lines, but only as wide as the text contained inside)?
Share
You could add a span and set the hover state to the span
Fiddle ——> HERE