On 25 Jan 2005, at 6:55 pm, Kornel Lesinski wrote:
How would I tell a stylesheet to not put a line break at the end of an Hx tag?
e.g. <h3>My heading</h3> and some more text.
I want the words "and some more text." to appear on the same line.
How would I do this?
display: run-in; does exactly what you're looking for (you could e-mail PPK, who was wandering what's the use of this ;)
The problem is that (AFAIK) it only works in Opera7+, and there might be -moz-run-in or such.
display:run-in is supported by Safari/Omniweb, Opera 7+ and IE Mac. It would be the best solution in this case. No support in Gecko, nor that other browser.
Alternatively set both elements to display: inline, but it might be problematic
depending on what other (inline) objects you have there.
Or float: left/right. Both create problems though, in this particular case.
Philippe ---/--- Philippe Wittenbergh now live : <http://emps.l-c-n.com/> code | design | web projects : <http://www.l-c-n.com/> IE5 Mac bugs and oddities : <http://www.l-c-n.com/IE5tests/>
****************************************************** The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************
