Greetings. New to CSS. I more or less grok the <h1><h2> ... <p> tag stuff. It seems that when I change a tag, it creates a new line. My question: can I have something appear in two different sizes without the line break? For example, I'd like something like this: I'd like to have something appear like this (and then this.) But not this: I'd like to have something appear like this (but this should be on the same line as the previous text) Wisdom welcome. Thanks. - Richard oldWithoutMoney dot com
Try: <h2 style="display:inline;">I'd like to have something appear like this</h2> (and then this.) Code (markup):
Thanks. Worked perfectly. (results can be seen in the middle of the left column here) oldwithoutmoney dot com Cheers, - Richard
if you using dreamweaver just highlight what ever you want different and it will automatically create a css .style font
The way that was suggested to you is non-semantic, poorly structured and generally not good practice. What you actually did, is much better, and would be fine if you'd remove the style attribute (it doesn't need to be inline, anyway) and the <br>s following the <h4>. For example, <h4>(Sonic sketches (warts & all) from the forthcoming CD,<br><i>Guitar Picks and Dog Biscuits</i>)</h4> Code (markup): It's a fourth level header, and the <i> tag has an implied semantic value due to the typographic convention of bolding or italicizing book, journal or album names. Article or song titles would be italicized or "quoted". You don't need the <br>s if you don't inline the header, a natural block level element. Spacing between it and the following element may be adjusted by varying margin values. I see no evidence of your using Dreamweaver. Good; keep it that way. You'll be better off. cheers, gary