www.webdeveloper.com
Results 1 to 3 of 3

Thread: CSS Div Placement Help!

  1. #1
    Join Date
    Jul 2004
    Location
    MI
    Posts
    90

    Unhappy CSS Div Placement Help!

    I cant get my footer to look right and I need YOUR help

    This is my footer:


    PHP Code:
    <!--Footer-->
    <?php include "phphits/phphits.inc.php"phphitsAddHit(); ?>
           <tr>
          <td id="bottomgreenbar" width="23%" height="25" colspan="2">

        <div class="online">Users Online:&nbsp;<b><?php echo phphitsShowOnlineUsers(); ?></b>&nbsp;
                     Hits Total:&nbsp;<b><?php echo phphitsShowHits(0); ?></b>&nbsp;
                     Hits Today:&nbsp;<b><?php echo phphitsShowHits(24); ?></b><br>

         <span id="footer">website domain CopyRight &copy;2005</span></div>
    <div align="right">test</div>

         </td>
        </td>
       </tr>

    There is a screenshot attached. I want the "test" text to go in the red circle. However since the colspan is 2, which it has to be, I have to use div's instead of splitting more tables. Im not sure if Im nesting them correctly or even if its possible to have 2 divs centered, and that last one, right aligned.

    Any help!?

    B.T.W My css is for those id and class tags are:
    PHP Code:
    /* Footer */

    #footer {
        
    font-size10px;
        
    color#926BB8;
        
    font-weightbold;
        
    text-aligncenter;
    }
    .
    online {
          
    font-size10px;
          
    color#404040;
          
    text-aligncenter;

    Attached Images Attached Images
    Last edited by chugger93; 03-27-2005 at 08:55 AM.

  2. #2
    Join Date
    Oct 2004
    Location
    Portland, OR
    Posts
    145
    Hello,
    Give this one a try:

    STEP #1: create a new class...

    Code:
    .right {
      float: right;
      }


    STEP #2: assign class to div...
    Code:
    <div class="right">test</div>
    STEP #3: swap the position of the divs...

    Code:
    <div class="right">test</div>
    <div class="online">Users Online:&nbsp;<b><?php echo phphitsShowOnlineUsers(); ?></b>&nbsp;
    Hits Total:&nbsp;<b><?php echo phphitsShowHits(0); ?></b>&nbsp;
    Hits Today:&nbsp;<b><?php echo phphitsShowHits(24); ?></b><br>
    
    <span id="footer">website domain CopyRight &copy;2005</span></div>
    -Mike
    Last edited by Wart_Hog; 03-27-2005 at 10:15 AM.

  3. #3
    Join Date
    Jul 2004
    Location
    MI
    Posts
    90
    Worked flawlessly! Thanks!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles