DTP


 
Lively discussions on the graphic arts and publishing — in print or on the web


Go Back   Desktop Publishing Forum > General Discussions > Web Site Building & Maintenance

Reply
 
Thread Tools Display Modes
Old 01-25-2006, 07:00 PM   #1
dthomsen8
Member
 
dthomsen8's Avatar
 
Join Date: Aug 2005
Location: Philadelphia, PA 19130
Posts: 2,158
Default Headings with CSS

Suppose I have the following HTML:

<h1>Fairmount Arts Crawl</h1>
<h2>Sunday Evening, April 30, 2006 </h2>

and a link to the following CSS:

h1 {font-size: 18pt; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: black; text-align: center; font-weight:bold;}
h2 {font-size: 14pt; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: black; text-align: center; font-weight:bold;}

Is it required to come out like this? I mean the spacing.
Attached Thumbnails
Click image for larger version

Name:	arts.jpg
Views:	75
Size:	17.4 KB
ID:	339  
dthomsen8 is offline   Reply With Quote
Old 01-25-2006, 07:28 PM   #2
annc
Sysop
 
annc's Avatar
 
Join Date: Oct 2004
Location: Subtropical Queensland, Australia, between the mountains and the Coral Sea
Posts: 4,436
Default

Quote:
Originally Posted by dthomsen8
Is it required to come out like this? I mean the spacing.
No. You can add margins and padding to h1 etc.

   
__________________
annc is offline   Reply With Quote
Old 01-25-2006, 11:54 PM   #3
LoisWakeman
Staff
 
LoisWakeman's Avatar
 
Join Date: Jan 2005
Location: Uplyme, Devon, England
Posts: 1,402
Default

As Ann says, no. The spacing you get - if not specified, is from the default stylesheet built into the browser. Specify your own margins and/or padding, and they take preference (except, AFAICR, Netscape 4 which added them on).
LoisWakeman is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting 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

Forum Jump


All times are GMT -8. The time now is 03:43 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Contents copyright 2004–2014 Desktop Publishing Forum and its members.