March 13, 201313 yr Hi, I'm having an issue with an H2 element not listening to my width command, I know the solution is probably really simple but my mind is slowly melting today! Here is the code I'm using: #wpss_survey h2{ font-family: 'Exo', sans-serif; font-size:24px; color:#fff; font-weight:bold; width:575px !important; background-image:url(images/awards-h2-png); background-color:transparent !important; height:40px; padding:0px; margin:0; display:inline-block; } Any and all help will be appreciated! Cheers!
March 13, 201313 yr That code looks OK. Double check that the h2 sits inside a parent element with the ID #wpss_survey. If you add a 1px border to the CSS, you'll see the width taking effect. Maybe you're looking for the text-align:center; to force the text to the middle of the container? Lyndsey.
March 13, 201313 yr It is sitting inside of the parent div, it listens to everything I have done apart from the width, it gets to around 400px and then cuts off.
Create an account or sign in to comment