use <h2 id="heading1"><a href="#heading1"><span>Title</span></a></h2> and you also gain by adding permalinks to section headers :)

if you can use pauls solution (with only 2 images) you can use h2 and a and you don't even have any meaningless markup...

otherwise just use spans inside h2 elements surrounding the text.

Marko Mrdjenovic
friedcellcollective.net

Brian Cummiskey wrote:

Hi All,

I have a template from a designer for a background image to go behind the H2 category tags on a new layout. It has distinct fixed left, center repeating (depending on text length), and fixed right portions to it.
(something like this:   XXXX======text=======YYYYY)

Which is the more proper way to mark this up?


<h2><span></span>Foo1<span></span></h2>

vs.

<div><div></div><h2>Foo2</h2><div></div></div>

vs

<div><span></span><h2>Foo3</h2><span></span></div>


Or, are the better options that don't use useless empty tags that hold nothing more than a style attribute for the background image?
The page markup looks like this:

<div id="mainbody">
   <h2>Title>/h2>
   <div id="content">
</div>

So, there's no other div's hanging around the h2 that I can shove this into.

Appreciate the suggestions, thanks!

-Brian





******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************




******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************

Reply via email to