This example was pretty simple, but any question about HTML/CSS shouldn’t have PHP involved, as this is purely a “what you see in the browser” issue, and PHP is long gone by the time the page reaches the browser. Often it’s impossible to know what HTML we are actually working with if the PHP is included. So in future, just view source in your browser and post what the browser sees.