View Full Version : Help Please
ecchi
2013-10-18, 06:46 AM
This is driving me mad for three reasons:
1) I should know this, but I've bloody forgotten.
2) I should be able to find the answer on Google, but I just spent half an hour trying with no luck.
3) G mentioned this in a post some time ago, but I cannot find that post.
So hopefully here someone can give me the answer.
When you use the head tags (H1 H2 etc) you get a gap below the text. However you can control the size of this gap, and you can loose it altogether. But I cannot remember how. Do can someone please remind me of the HTML.
Thanks.
hincapie
2013-10-18, 07:14 AM
In your css file/definition ... add something like this and tamper with it till its to your exact liking:
h1 {
font-weight: 800;
margin-top: 0px;
margin-bottom: 5px;
margin-left: 0px;
font-size: 150%;
color: #000000;
}
h2 {
font-weight: 400;
margin-top: 0px;
margin-bottom: 5px;
margin-left: 0px;
font-size: 100%;
color: #000000;
}
...or similar
Hincapie beat me to it but this is how I do it.
This will also remove the space in paragraphs.
h1, h2, h3, h4, h5, h6, p {
margin: 0;
padding: 0;
}
hincapie
2013-10-18, 09:16 AM
Yeah thats a nicer and simpler version too, i was just showing off with all the tweaks ya can add for no apparent or justifiable reason :D
h1, h2, h3, h4, h5, h6, p {
margin: 0;
padding: 0;
}
Hincapie beat me
Stop flirting before breakfast !! |club||nahnah|
Greenguy
2013-10-18, 02:52 PM
These are the examples I have on my hand-written scratch-pad :D
<h1 style="line-height:105%; margin-top:0; margin-bottom:0;">
<h1 style="line-height:110%;">
<h1 style="margin-top:0; margin-bottom:0;">
<h1 style="margin-top:0;">
<h1 style="margin-bottom:0;">
I'm old school |pokefun||greenguy|
ecchi
2013-10-19, 06:28 AM
Thanks.
(Entire thread copied and saved in case I forget again.)
Greenguy and his silly inline styles. :D
ecchi
2013-10-19, 09:12 AM
Greenguy and his silly inline styles. :D
Actually, the particular page I wanted it for does not use CSS, so I needed inline (although once Hincapie mentioned "margin-top and margin-bottom" I knew enough to use these commands inside html style commands).
Greenguy
2013-10-21, 08:29 AM
See! My HTML coding techniques are still in "style" :D
Simon
2013-10-21, 08:36 AM
See! My HTML coding techniques are still in "style" :D
One place that inline css is very much necessary is email marketing. Using external stylesheets or even putting the css coding in the head section is guaranteed to cause failure and heartache.
Even after the asteroid hit, some dinosaurs lived longer than others!
:)
ecchi
2013-10-21, 03:25 PM
Even after the asteroid hit, some dinosaurs lived longer than others!
Great line.
As someone who tends to be a bit "retro" (I still regularly use a computer made in the 1980s, and occasionally one made in the 1970s; I still use both video and super 8 cine film, and occasionally standard 8 film, etc....), I hope you don't mind if I steal that line occasionally to use in my own defence.
hincapie
2013-10-21, 03:45 PM
FACT: Before vintage porn, grannybanging and cavemen were even invented, greenie and ecchi were wanking it off to inliners!
ecchi
2013-10-22, 01:15 AM
FACT: Before vintage porn, grannybanging and cavemen were even invented, greenie and ecchi were wanking it off to inliners!
So you are saying that we were trailblazers! |pink |bananna| |pink
Simon
2013-10-22, 08:04 AM
Even after the asteroid hit, some dinosaurs lived longer than others!
Great line.
As someone who tends to be a bit "retro" (I still regularly use a computer made in the 1980s, and occasionally one made in the 1970s; I still use both video and super 8 cine film, and occasionally standard 8 film, etc....), I hope you don't mind if I steal that line occasionally to use in my own defense.
No problem at all. Please consider it "user uploaded."
:)
mOrrI
2013-10-23, 06:30 PM
These are the examples I have on my hand-written scratch-pad :D
<h1 style="line-height:105%; margin-top:0; margin-bottom:0;">
<h1 style="line-height:110%;">
<h1 style="margin-top:0; margin-bottom:0;">
<h1 style="margin-top:0;">
<h1 style="margin-bottom:0;">
I'm old school |pokefun||greenguy|
HTML5 (https://dl.dropboxusercontent.com/u/13534612/Books/HTML5.pdf)....
If u get some free time! :D
vBulletin® v3.8.1, Copyright ©2000-2026, Jelsoft Enterprises Ltd.