Hi all i am having problems making a horizontal list.
It works fine if i have say an avatar or a name so
*name *name *name etc
But if i have say
*avatar *avatar
*name *name
With the avatar and name seperated by a "<br />" then it will mess up the next list item
.
My code is as follows (without the br):
What am i doing wrong?
It works fine if i have say an avatar or a name so
*name *name *name etc
But if i have say
*avatar *avatar
*name *name
With the avatar and name seperated by a "<br />" then it will mess up the next list item
My code is as follows (without the br):
Code:
<ul id="friendslist">
<li><img src="http://forum.prxa.info//images/noavatar.gif" alt="avatar" />
<a href="profile.php?info=8">Tom1</a>
</li>
<li><img src="http://forum.prxa.info//images/noavatar.gif" alt="avatar" />
<a href="profile.php?info=29">Psybadek</a>
</li>
<li><img src="http://forum.prxa.info//images/noavatar.gif" alt="avatar" />
<a href="profile.php?info=14">haseeb</a>
</li>
</ul>
Code:
#friendslist
{
padding:0;
margin:0;
white-space:nowrap;
list-style-type:none;
}
#friendslist li
{
display:inline;
}
What am i doing wrong?
Last edited:







