I've been trying to create a header and subheader on my webpage using the <h1> and <h2> tags, and I am using relatively large text (for example, 5 em and 3 em, respectively). Header 1 will be directly above Header 2, and I want the space between the two to be minimal (as it is, it's too big). I have tried almost everything to get this space minimized, and I have had no consistent cross-browser success--whatever works in Firefox fails in IE, and vice versa. Still, I'm sure that there is a simple styling solution. I've posted a very simple example of what I'm doing, and I'm look forward to a reliable cross-browser solution soon. Thanks in advance!
HTML Code:<html> <body> <div> <h1 style="font-size:5em;">My Webpage Title</h1> <h2 style="font-size:3em;">The subtitle of my webpage</h2> </div> </body> <html>



Reply With Quote


Bookmarks