Say I had a <h1> heading and I wanted an icon image next to it, how would I go about doing that? This might be embarrassingly obvious, but I've tried Googling it and nothing came up. Thanks!
1 way to do it is to add a background image to the h1, and use padding to push the heading text aside so the image will be visible and not behind the text
Thanks, are there any other ways? I kind of want it to the right of left aligned text, so that method wouldn't work too well.
you could float the image next to the text, and if you don't want the text wrapping underneath it just set a width on the paragraph or whatever contains the text
mr blonde's first method will work. All you need to do is to set the background to no repeat, right, top. You can change the distance between text and the image by increasing or decreasing the width of h1 element.