[EMAIL PROTECTED] wrote: > Hello all, > > I'd like to enclose the first sentence of my paragraph in a <h2> tag and > have it display inline. But I know I can't have a <h2> tag inside a > paragraph, but I want it to look like I can. :) For example, this is what > I WANT to do: > > _________________________________________ > > <p><img class="floatleft" src="images/frenchie.jpg" width="190" > height="147" alt="French Bulldog /> > <h2>I am a hobby breeder of French Bulldogs in California.</h2> I acquired > my first French Bulldog... </p> > > _________________________________________ > > But I know that I'll need to do it this way instead: > > _________________________________________ > > > <p><img class="floatleft" src="images/frenchie.jpg" width="190" > height="147" alt="French Bulldog /></p> > <h2>I am a hobby breeder of French Bulldogs in California.</h2> > <p>I acquired my first French Bulldog... </p> > > __________________________________________ > > But, as expected, that floats my image to the left, gives me my header and > then the paragraph starts below it. I want the paragraph text to start up > against the header text. > > I tried using display:inline in my css for my header, but that didn't do > it for me. Any suggestions on how to get what I'm attempting??? > > Thanks in advance! Hi Erin,
I'd do an inline <span style="whatever style you'd like for h2"> for the first sentence within the paragraph, to achieve that goal easily. There's likely a more elegant solution; I'm not a big fan of inline styles, but at first glance, that'd be my suggestion. I'm looking forward to others' replies here! HTH, ~Ray ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/