CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 23rd, 2001, 07:19 PM
shannonlayden shannonlayden is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Posts: 1 shannonlayden User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question

I've been fooling with this stuff for hours now, but I just can't get the the headings to behave using CSS.

I have an H1 directly on top of an H2.

e.g.,

<h1>This is the H1 heading</h1>
<h2>This is the H2 heading</h2>

This leaving a nice big gap between the lines that I don't want. I would prefer that there were so space at all between the lines, but none of the CSS commands seem to do this, least of all "line height".

Any suggestions?

Reply With Quote
  #2  
Old April 23rd, 2001, 07:55 PM
Jonathon's Avatar
Jonathon Jonathon is offline
T-Shirt Tragic
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2001
Location: Melbourne, Australia
Posts: 837 Jonathon User rank is Captain (20000 - 30000 Reputation Level)Jonathon User rank is Captain (20000 - 30000 Reputation Level)Jonathon User rank is Captain (20000 - 30000 Reputation Level)Jonathon User rank is Captain (20000 - 30000 Reputation Level)Jonathon User rank is Captain (20000 - 30000 Reputation Level)Jonathon User rank is Captain (20000 - 30000 Reputation Level)Jonathon User rank is Captain (20000 - 30000 Reputation Level)Jonathon User rank is Captain (20000 - 30000 Reputation Level)Jonathon User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 9 h 38 m 24 sec
Reputation Power: 215
Send a message via Skype to Jonathon
try putting this in the header of your document :-

<style type="text/css">
h1 {
margin-bottom:0px;
}
h2 {
margin-top:0px;
}
</style>

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Getting H1, H2 and P to behave in CSS


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway