|
Answer» At the top of my home page I've put my website title, followed by a subtitle that I'd like to APPEAR directly beneath it. Each has been assigned a different style (title is large, bold and in caps, while the subtitle is smaller and in italics). At present I've got them in the same cell separated by a PARAGRAPH (return).
I've been unable to figure out how to reduce the spacing between them. Can I do it as they are or must they be in different cells? Or something else I'm missing? I have no problem with paragraph spacing on text that's the same style.
Any advice greatly appreciated! Thanks in advance for your help! --DennisIf you wish to insert a line break (one that just drops to the next line), I think the keyboard combination is shift+enter in Dreamweaver. This corresponds to the HTML code, . (If *censored*+enter doesn't work, try ctrl+enter.)
Really, paragraph line spacing is best controlled by CSS, but if you're not comfortable coding in plain HTML, then CSS may be a little way off yet.Thank you. I was aware of shift+enter, but wasn't sure if that would work. I do have things set in external CSS VIA Dreamweaver--HTML code and I don't get along too well :-/ but I can probably do one or two codes without too much trouble.Okay, well in CSS, you COULD style your paragraphs thus:
p { margin: 0px; padding: 0px 0px 0px 10px; line-height: 110%; }
Adjust as required.
And you could use class definitions to style specific paragraphs:
p.compactpara { padding: 0px; line-height: 80%; }
In your HTML, you'd then need the class attribute for the paragraph in question - can't remember how this is ACCESSED in Dreamweaver, other than using the code browser.
<p class='compactpara'>This is a compact paragraph [etc].</p>
|