![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, Can anybody tell me how I stop the extra space my heading tags produce under the text. |
#3
| |||
| |||
|
|
Hi, Can anybody tell me how I stop the extra space my heading tags produce under the text. The space the tag is producing is throwing my layout out alot and I cant figure how to remove it. If I change the line height ..the top of the text is cut off...how do I do this? Any advice is much appreciated |
#4
| |||
| |||
|
|
in post <news:2GLDb.2207$2r4.1066 (AT) newsfep3-gui (DOT) server.ntli.net Simon said: Can anybody tell me how I stop the extra space my heading tags produce under the text. margin-bottom:0; |
#5
| |||
| |||
|
|
I belive you must use a negative value to get it realy "tight", i.e margin-bottom:-5px; |
#6
| |||
| |||
|
|
Try <H1 style="-5px;"> (negativ value) But I don't know for sure how it validates or works in all browsers. |
#7
| |||
| |||
|
|
Arne wrote: I belive you must use a negative value to get it realy "tight", i.e margin-bottom:-5px; No, that is stupid, since you could pull the element below over the H1 element. You should only use negative margins to 'design' not to remove whitespace. |
#8
| |||
| |||
|
|
Arne wrote: Try <H1 style="-5px;"> (negativ value) But I don't know for sure how it validates or works in all browsers. This isn't the way to do it. h1{ margin:0; padding:0; } Is the way to go, as explained in other mails. -- Anne van Kesteren http://www.annevankesteren.nl/ |

#9
| |||
| |||
|
|
I belive you must use a negative value to get it realy "tight", i.e margin-bottom:-5px; No, that is stupid, since you could pull the element below over the H1 element. You should only use negative margins to 'design' not to remove whitespace. I don't say you are wrong, but at least it works fine for me, tested with IE 6.xx and Netscape 7.xx |
#10
| |||
| |||
|
|
Can anybody tell me how I stop the extra space my heading tags produce under the text. margin-bottom:0; I belive you must use a negative value to get it realy "tight", i.e margin-bottom:-5px; |
![]() |
| Thread Tools | |
| Display Modes | |
| |