Small Postbit question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mr. X
    Senior Member
    • May 2001
    • 1112
    • 2.3.0

    Small Postbit question

    I want to center the user info, similar to what IdealBB or Fusetalk does.

    Now the default postbit code for the userinfo assuming Im correct is this:

    PHP Code:
    <td bgcolor="$post[backcolor]width="175" valign="top" nowrap>
        <
    a name="post$post[postid]"></a>
        
    $post[firstnewinsert]
        <
    normalfont><b>$post[username]</b></normalfont><br>
        <
    smallfont>$post[usertitle]</smallfont><br>
        
    $post[avatar]<p>
        <
    smallfont>Registered$post[joindate]<br>
        
    Location$post[field2]<br>
        
    Posts$post[posts]</smallfont></td
    Now, I copied this into Dreamweaver, and made it center. This is what it spits out:

    PHP Code:
    <td bgcolor="$post[backcolor]width="175" valign="top" nowrap
      <
    div align="center"><a name="post$post[postid]"></a$post[firstnewinsert] <normalfont><b>$post[username]</b></normalfont><br>
        <
    smallfont>$post[usertitle]</smallfont><br>
        
    $post[avatar]</div>
      <
    p align="center"> <smallfont>Registered$post[joindate]<br>
        
    Location$post[field2]<br>
        
    Posts$post[posts]</smallfont>
    </
    td
    As far as alignment goes, its perfect. I see that on very long posts say with a bunch of images, the user info stays center and ON TOP. The last time I did this, it would be in the middle of the post, no matter how long or short it was. (I cant find the thread where I learned how to do it before, but regardless it didnt work right).

    However, being the picky dork that I am, I would like it so that everything under the Avatar is closer up, and that each line is in the same proximity. See attachment for an idea of where Im getting at. Assuming of course this is all possible. If not, no biggie.
    website: joe.pcfx.cc
    forums: pcfx.cc
    gallery: here
  • Scrubby
    Senior Member
    • Jan 2002
    • 223

    #2
    PHP Code:
    <td bgcolor="$post[backcolor]width="175" valign="top" nowrap
      <
    div align="center"><a name="post$post[postid]"></a$post[firstnewinsert] <normalfont><b>$post[username]</b></normalfont><br>
        <
    smallfont>$post[usertitle]</smallfont><br>
        
    $post[avatar]<br>
       <
    smallfont>Registered$post[joindate]<br>
        
    Location$post[field2]<br>
        
    Posts$post[posts]</div></smallfont>
    </
    td

    Comment

    • XiXora
      Senior Member
      • Aug 2001
      • 559
      • 3.0.7

      #3
      dreamweaver loves the <p> tag which makes the extra spaces.
      hold shift then enter for <br>
      www.xixora.com
      Goldrush : A Soldier of Fortune Modification going for the GOLD!

      Comment

      • Mr. X
        Senior Member
        • May 2001
        • 1112
        • 2.3.0

        #4
        Sweet thanks, works exactly the way I want it

        Yeah, I was looking at the <p> tag, playing around with it, but didnt exactly know what to do with it.
        website: joe.pcfx.cc
        forums: pcfx.cc
        gallery: here

        Comment

        • |GMK|PlaTooN
          Member
          • Mar 2002
          • 35

          #5
          how would you just center the username and the avatar without centering the rest since I got some level hacks below..?

          Comment

          • |GMK|PlaTooN
            Member
            • Mar 2002
            • 35

            #6
            Hehe, well I fixed it, decided to put everything in a table to make it look cleaner looks great now.

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...