Mark H Posted June 29, 2011 Share Posted June 29, 2011 Hi all,I would think that if I set display: block I could then add a width: px and a background image to the tags?Would this be possible? The tags I want to do this with are <h1> to <h3>, specifically only within one particular <div>.Is is okay? Would it have any SEO consequences?Thanks,Mark. Link to comment Share on other sites More sharing options...
trevelluk Posted June 29, 2011 Share Posted June 29, 2011 That should work absolutely fine. Unless you're deliberately trying to hide the text (e.g. by setting the font color and background color the same) then there shouldn't be any SEO consequences either. Link to comment Share on other sites More sharing options...
Mark H Posted June 29, 2011 Author Share Posted June 29, 2011 Thanks travelluk.I've done it okay and am pleased with the results. Thank you for confirming that it is not an erroneous way of using CSS and tags.Mark. Link to comment Share on other sites More sharing options...
thescientist Posted June 29, 2011 Share Posted June 29, 2011 you don't even need to add display:block since tags are already block level elements by default. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.