Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 06-20-2008, 12:50 AM Image with list
Skilled Talker

Posts: 94
Trades: 0
I have a php call that will list a row of members with text next to their profile image. However I am having a heck of a time figuring out how to make this list so it aligns right.

HTML
Code:
<div id='bulletin'>
{section name=buletin_loop loop=$buletin max=5}
<ul>
<li>
<h1>
<a href="{$buletin[buletin_loop].buletinusername}">
<img src="uploads_user/1000/{$buletin[buletin_loop].buletinuserid}/{$buletin[buletin_loop].buletinphoto}" width="48" height="48"></a>
</h1> 
<p>
posted by <a href="{$buletin[buletin_loop].buletinusername}">{$buletin[buletin_loop].buletinusername}</a>   
  {$buletin[buletin_loop].buletindate}
</p>
<p>
<a href="bulletin_entry.php?user={$buletin[buletin_loop].buletinusername}&bulletinentry_id={$buletin[buletin_loop].buletinid}">
{$buletin[buletin_loop].buletintitle}
</a>
</p>
</li>
</ul>
{/section}
</div>
CSS

Code:
#bulletin {
float:left;
margin-top:2em;
margin-bottom:5em;
}
ul #bulletin {
list-style-image:none;
list-style-position:outside;
list-style-type:none;
}
#bulletin li{
margin-left:-1em;
padding:10pt;
position:relative;
width:300px;
height:50pt;
overflow:hidden;
}
#bulletin img {
left:0;
top:0;
position:absolute;
float:left;
border: 1px solid #53759e;
padding:3pt;
background-color:#FFFFFF;
}
#bulletin h1 {
background-color:#DFEEF3;
margin:0px 10px 0px 10px;
padding:10px;
}
IG88 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-20-2008, 11:04 AM Re: Image with list
Skilled Talker

Posts: 94
Trades: 0
Here is a visual.

IG88 is offline
Reply With Quote
View Public Profile
 
Old 06-20-2008, 11:54 AM Re: Image with list
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
A live page we can look at is preferable, so we could see the document type, and use Firebug.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 06-20-2008, 12:13 PM Re: Image with list
Skilled Talker

Posts: 94
Trades: 0
Sure no problem. I tried Firebug myself but I guess I could not figure it out.

http://502link.com/?test
IG88 is offline
Reply With Quote
View Public Profile
 
Old 06-20-2008, 06:59 PM Re: Image with list
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
I would do one of 2 things: put the image in as a list item, then the text as a list item. Float them both left and adjust margins/padding as needed. OR

Use a definition list instead.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Image with list
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21244 seconds with 12 queries