Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Font size with style sheets?

Font size with style sheets?
Thread Tools
Junior Member
Join Date: Oct 2002
Status: Offline
Reply With Quote
Apr 13, 2003, 05:45 PM
 
How can I make a font size with style sheets. If I use one of the h1, h2, etc. tags and give that a style, then the distance to the next line is too large. I want there to be no distance to the next line after a return, but the font bigger.
Turn your web browser into a great PDF viewer – with PDF Browser Plugin
     
Forum Regular
Join Date: Nov 2001
Location: Toronto Canada
Status: Offline
Reply With Quote
Apr 13, 2003, 05:56 PM
 
h tags have many different attributes assigned to them by default including font size, boldness and margin. Start by setting both the font size and the margin for the desired tag like this:
Code:
h1 {font-size: 11px; margin: 0px;}
Hope this helps.
     
Junior Member
Join Date: Oct 2002
Status: Offline
Reply With Quote
Apr 13, 2003, 06:16 PM
 
Originally posted by calimehtar:
h tags have many different attributes assigned to them by default including font size, boldness and margin. Start by setting both the font size and the margin for the desired tag like this:
Code:
h1 {font-size: 11px; margin: 0px;}
Hope this helps.
Thanks. Unfortunately this doesn't help. It's as if the next line (with normal text) also gets the height of the large line. I used "font size=5" and shift return to get no space between them. But if I use a h tag I have to use return without shift and get the large distance between the lines. Can't this be avoided with style sheets?
Turn your web browser into a great PDF viewer – with PDF Browser Plugin
     
Junior Member
Join Date: Oct 2002
Status: Offline
Reply With Quote
Apr 13, 2003, 06:20 PM
 
No wait, it works, just not in iCab. I guess I can live with that.

Thanks a lot!
Turn your web browser into a great PDF viewer – with PDF Browser Plugin
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:23 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2