HighDots Forums  

h3 gap want to get rid of space after before hr

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss h3 gap want to get rid of space after before hr in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Hydrowizard
 
Posts: n/a

Default h3 gap want to get rid of space after before hr - 05-10-2008 , 12:30 PM






For some reason there is a gap before the hr.

Here is the relevant code-how do I get rid of the gap? TIA!!:
#contentinside p {
font-size: 75%;
}
#contentinside h4 {
font-size: 90%;
margin: 0;
padding: 0;
}
hr { margin: 0;
padding: 0;
clear: both;
}


<div id="contentinside">

<img src="images/main.jpg" alt="" id="image1" />

<h3><a href="consult.cfm?id=8">Intelligence</a></h3>
<hr />
<h4> Intelligence</h4>


Reply With Quote
  #2  
Old   
Thierry
 
Posts: n/a

Default Re: h3 gap want to get rid of space after before hr - 05-10-2008 , 01:08 PM






"Hydrowizard" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
For some reason there is a gap before the hr.

Here is the relevant code-how do I get rid of the gap? TIA!!:
#contentinside p {
font-size: 75%;
}
#contentinside h4 {
font-size: 90%;
margin: 0;
padding: 0;
}
hr { margin: 0;
padding: 0;
clear: both;
}


div id="contentinside"

img src="images/main.jpg" alt="" id="image1" /

h3><a href="consult.cfm?id=8">Intelligence</a></h3
hr /
h4> Intelligence</h4
I'd say it comes from the H3.
In your rules above, you're zeroing out margin/padding on H4 and HR, but not
on H3

But if you're trying to use the HR to create a border, then you should use
the "border" property on the H3 instead.
HRs are not meant for this, there are supposed to separate sections, hence
they have nothing to do between 2 headings.


--
Thierry
Articles and Tutorials: http://www.TJKDesign.com/go/?0
--
Keep your markup *clean* with these DW extensions and scripts:
http://www.divahtml.com/products/scr...extensions.php




Reply With Quote
  #3  
Old   
Thierry
 
Posts: n/a

Default Re: h3 gap want to get rid of space after before hr - 05-10-2008 , 01:08 PM



"Hydrowizard" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
For some reason there is a gap before the hr.

Here is the relevant code-how do I get rid of the gap? TIA!!:
#contentinside p {
font-size: 75%;
}
#contentinside h4 {
font-size: 90%;
margin: 0;
padding: 0;
}
hr { margin: 0;
padding: 0;
clear: both;
}


div id="contentinside"

img src="images/main.jpg" alt="" id="image1" /

h3><a href="consult.cfm?id=8">Intelligence</a></h3
hr /
h4> Intelligence</h4
I'd say it comes from the H3.
In your rules above, you're zeroing out margin/padding on H4 and HR, but not
on H3

But if you're trying to use the HR to create a border, then you should use
the "border" property on the H3 instead.
HRs are not meant for this, there are supposed to separate sections, hence
they have nothing to do between 2 headings.


--
Thierry
Articles and Tutorials: http://www.TJKDesign.com/go/?0
--
Keep your markup *clean* with these DW extensions and scripts:
http://www.divahtml.com/products/scr...extensions.php




Reply With Quote
  #4  
Old   
Hydrowizard
 
Posts: n/a

Default Re: h3 gap want to get rid of space after before hr - 05-10-2008 , 04:14 PM



thanks I will try that I didn?t realize that hr was wrong

Reply With Quote
  #5  
Old   
Hydrowizard
 
Posts: n/a

Default Re: h3 gap want to get rid of space after before hr - 05-10-2008 , 04:14 PM



thanks I will try that I didn?t realize that hr was wrong

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.