Re: [WSG] Heading without line break
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. h3My 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 **
[WSG] Heading without line break
Heya? How would I tell a stylesheet to not put a line break at the end of an Hx tag? e.g. h3My 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? thanks, bye! --- Ryan Sabir Newgency Pty Ltd 2a Broughton St Paddington 2021 Sydney, Australia Ph (02) 9331 2133 Fax (02) 9331 5199 Mobile: 0411 512 454 http://www.newgency.com/index.cfm?referer=rysig ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Heading without line break
Have you tried changing the DISPLAY style to INLINE instead of BLOCK ? Gary On Tue, 25 Jan 2005 12:31:15 +1100, Ryan Sabir [EMAIL PROTECTED] wrote: Heya? How would I tell a stylesheet to not put a line break at the end of an Hx tag? e.g. h3My 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? thanks, bye! --- Ryan Sabir Newgency Pty Ltd 2a Broughton St Paddington 2021 Sydney, Australia Ph (02) 9331 2133 Fax (02) 9331 5199 Mobile: 0411 512 454 http://www.newgency.com/index.cfm?referer=rysig ** 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 **
Re: [WSG] Heading without line break
display: inline Cheers Jeff Lowder Accessibility 1st E-mail: [EMAIL PROTECTED] Website: http://www.accessibility1st.com.au On 25/1/05 12:31 PM, Ryan Sabir [EMAIL PROTECTED] wrote: Heya? How would I tell a stylesheet to not put a line break at the end of an Hx tag? e.g. h3My 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? thanks, bye! --- Ryan Sabir Newgency Pty Ltd 2a Broughton St Paddington 2021 Sydney, Australia Ph (02) 9331 2133 Fax (02) 9331 5199 Mobile: 0411 512 454 http://www.newgency.com/index.cfm?referer=rysig ** 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 **
Re: [WSG] Heading without line break
Ryan Sabir wrote: How would I tell a stylesheet to not put a line break at the end of an Hx tag? Apply display: inline to both the heading and the following tag. Alternately, you could play with display: run-in applied just to the heading, but it may not be supported by all browsers. http://www.w3.org/TR/CSS21/visuren.html#display-prop -- Patrick H. Lauke _ re·dux (adj.): brought back; returned. used postpositively [latin : re-, re- + dux, leader; see duke.] www.splintered.co.uk | www.photographia.co.uk http://redux.deviantart.com ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **