News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Logo alignment ( 3 images)

Started by gh0stw4lk3r, August 05, 2005, 06:56:20 AM

Previous topic - Next topic

gh0stw4lk3r

hi all, i have managed to get all 3 images showing as a banner, but i need the images to be aligned.
first 1 needs to align left, second center and the last one right.

if i use div's to do this, each image comes on a new line instead of showing next to eachother.

anyone knows to fix this?
this is what i use know so all images are centered, but that is not what i want.

<body>';
echo '<div align="center"><a href="index.php"><img src="Themes/default/images/banner1.jpg" border="0" alt="Terug naar home" title="Terug naar home" /></a>
<a href="index.php"><img src="Themes/default/images/banner2.jpg" border="0" alt="Terug naar home" title="Terug naar home" /></a>
<a href="index.php"><img src="Themes/default/images/banner3.jpg" border="0" alt="Terug naar home" title="Terug naar home" /></a></div>
';

gh0stw4lk3r

anyone already has a solution?
when i use the div's each image sits on a new line, and that is not what i want :)

Rik©

Hi 8)

Try this:

<table width="100%"><tr><td align="left">
<a href="index.php"><img src="Themes/default/images/banner1.jpg" border="0" alt="Terug naar home" title="Terug naar home" /></a>
</td><td align="center">
<a href="index.php"><img src="Themes/default/images/banner2.jpg" border="0" alt="Terug naar home" title="Terug naar home" /></a>
</td><td align="right">
<a href="index.php"><img src="Themes/default/images/banner3.jpg" border="0" alt="Terug naar home" title="Terug naar home" /></a>
</td></tr></table>


Rik©

gh0stw4lk3r


Advertisement: