View Full Version : Inexplainable space between lines...
Kasper_H
06-29-2003, 06:08 PM
Hello again :)
I don't get this: Quite often when i modify some templates, i will get a space between the lines. So it's like
1. Line
(A half, empty line)
2. Line
So there's a line spacing of 1? :confused:
Then the weird thing is, that if i change the code back to the original (which didn't have a line spacing of 1? before) I get the space :eek: I don't get it!
What have i done wrong? :confused:
Tony G
06-29-2003, 11:37 PM
A spacer image maybe? Could you post a screenshot of what it is?
KeithMcL
07-01-2003, 10:39 PM
If you have entered a hard return this can sometimes end up causing the browser to display extra space.
Kasper_H
07-04-2003, 11:43 AM
Hard return? Sorry... I have no idea of what this is :/
Rufus69
07-04-2003, 01:54 PM
this
That^ :)
Kasper_H
07-04-2003, 07:06 PM
Oh... Hehe :p
Well, the spaces are still there even though I'm using the original code, which didn't have any spaces before, so I'm guessing this isn't the course :/
KeithMcL
07-05-2003, 01:31 PM
How about posting the bit of code so we can see if we can spot anything else?
Kasper_H
07-07-2003, 11:21 AM
This is the code:
<td bgcolor="{firstaltcolor}" valign="top" $width>
<img src="{imagesfolder}/$forum[onoff].gif" border="0" alt="" />
<a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont><b>$forum[title]</b></normalfont></a><br>
<a href="showthread.php?s=$session[sessionhash]&goto=lastpost&forumid=$forum[forumid]" title="By: $forum[lastposter]"><smallfont><b>$showlastpostingtitle</b></smallfont></a>
</td>
Which results in this (It's in columns by the way):
Kasper_H
07-24-2003, 08:56 AM
Please? Anyone?
Giveit2u43
07-25-2003, 02:56 PM
You could try editing the code to:
<td bgcolor="{firstaltcolor}" valign="top" $width><img src="{imagesfolder}/$forum[onoff].gif" border="0" alt="" align="absmiddle" /> <a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont><b>$forum[title]</b></normalfont></a><br><a href="showthread.php?s=$session[sessionhash]&goto=lastpost&forumid=$forum[forumid]" title="By: $forum[lastposter]"><smallfont><b>$showlastpostingtitle</b></smallfont></a></td>
dstruct2k
08-06-2003, 07:04 PM
Uhhh... no. A hard return is only read as a <br /> by the worst browsers.<td bgcolor="{firstaltcolor}" valign="top" $width>
<img src="{imagesfolder}/$forum[onoff].gif" border="0" alt="" />
<a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont><b>$forum[title]</b></normalfont></a><br>
<a href="showthread.php?s=$session[sessionhash]&goto=lastpost&forumid=$forum[forumid]" title="By: $forum[lastposter]"><smallfont><b>$showlastpostingtitle</b></smallfont></a>
</td>After looking closely at your code, I can tell you now it's the IMG. IMG's have a tendancy to do that, especially if they're taller than the text around them. I would suggest this:<td bgcolor="{firstaltcolor}" valign="middle" $width>
<img src="{imagesfolder}/$forum[onoff].gif" border="0" alt="" /></td><td bgcolor="{firstaltcolor}" valign="top" $width>
<a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont><b>$forum[title]</b></normalfont></a><br>
<a href="showthread.php?s=$session[sessionhash]&goto=lastpost&forumid=$forum[forumid]" title="By: $forum[lastposter]"><smallfont><b>$showlastpostingtitle</b></smallfont></a>
</td>It should put the image in its own cell just to the left of the text, and remove the 1.5 linespacing-effect.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.