On 14/12/06, amir abbas <[EMAIL PROTECTED]> wrote:
>
>
> 1- all forums are in <li> tag and i have <div> tag in that <li> tag
> this <div> itself is contain two other <div> tag
>
> please see this part of code
>
> <div>
> <ul>
> <!-- BEGIN forumrow -->
> <li><div><a href="{catrow.forumrow.U_VIEWFORUM}">{
> catrow.forumrow.FORUM_NAME}</a><br
> />
> <em>{catrow.forumrow.FORUM_DESC}</em></div>
> <div><span class="stat">{catrow.forumrow.L_MODERATOR} {
> catrow.forumrow.MODERATORS}&nbsp;    {catrow.forumrow.TOPICS} {L_TOPICS} -
> {
> catrow.forumrow.POSTS} {L_POSTS} - {catrow.forumrow.LAST_POST
> }</span></div></li>
> <!-- END forumrow -->
> </ul>
> </div>
> </div>
>
> now i want to float one of that <div> tag in right side of an <li> tag


Hi,

That should be easy enough. But it isn't floated at the moment. What you
should do is remove the div surrounding the span and give the span
display:block. Then float it right. And for this to work, you'll have to put
it before the forum name in the HTML. Also, don't use <br />. Put the forum
name in a heading (h1, h4...). Your use of <em> for the forum description
isn't very semantic - <p> would be better suited. This will solve your
problem of using <br /> and you can probably get rid of its parent div too,
it's unnecessary.

Also, instead of using &nbsp; in your .stat span, you should use different
spans and separate them using margins.

I hope this is helpful,

Rafael
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to