Jump to content

Re-defining h tags


Recommended Posts

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 post
Share on other sites

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 post
Share on other sites

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 post
Share on other sites

you don't even need to add display:block since tags are already block level elements by default.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...