MyBB Community Forums

Full Version: margin image in sidebox theme
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I think it does not matter what kind of the I use because its general.
But I use the Flatty theme and in the flatty theme is a sidebox.
In this side box I put a logo but the margin is to big, I wanne have it 0.
How can I make this?
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
	<tr>
		<td class="thead side">
						<strong>Custom Sidebox</strong>
			<div class="float_right" style="padding-top: 5px;"><i class="fa fa-newspaper-o"></i></div>
		</td>
	</tr>
	<tr>
		<td class="trow1">
						<span class="smalltext">
							<img class="manImg" src="http://www.ikf-forum.eu/comeback/comebackindex.gif"></img>
			</span>
		</td>
	</tr>
</table><br />
The trow1-classed <td> element may causes a padding. Remove it!
The <span> element is also not needed for an image.
So try:
<td>
<img class="manImg" src="http://www.ikf-forum.eu/comeback/comebackindex.gif">
</td>

By the way... An <img> does not need an end tag Smile

[ExiTuS]
(2019-11-06, 03:15 PM)[ExiTuS] Wrote: [ -> ]By the way... An <img> does not need an end tag Smile

...but it does need a closing slash:
<td>
<img class="manImg" src="http://www.ikf-forum.eu/comeback/comebackindex.gif" />
</td>
Thanks