Grow your CSS skills. Land your dream job.

Add // to h1 tags

  • # February 6, 2010 at 11:02 am

    I was just wanting to know the best wat to add "//" At the begining of my text inside h1, h2, h3, and h4 tags. Could it be done with css or would I have to use javascript or even php? Any help would be great!

    Thanks.

    # February 6, 2010 at 11:12 am

    Can I ask why? Not certain, but I think adding // as text may have SEO implications so might be best to use a background image

    # February 6, 2010 at 11:29 am

    Just a design look I was going for, but if it will hurt my ranking I wont do it.

    # February 6, 2010 at 7:19 pm

    Ya a background image would probably be a good idea.

    You could also do it with jquery.

    Something like this:

    Code:
    $(‘//’).prependTo(‘h1′);

    http://api.jquery.com/prependTo/

    Cheers,

    Cory

    Rob
    # February 8, 2010 at 5:08 am

    if you dont want any code implications you can use &frast; &frast; that would give //.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".