SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: float?

  1. #1
    SitePoint Wizard lukeurtnowski's Avatar
    Join Date
    Mar 2003
    Location
    Coronado
    Posts
    1,582
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    float?

    I am trying to float a calendar thing to the right so that the #content flows around it on
    http://fixmysite.us/gmpc/wordpress/?page_id=43
    As you can see, the calendar is moving over to the right, but the content does not wrap around it, rather it starts below it leaving loads of white spacem here is the code in my page.php (since it is a wordpress page)
    PHP Code:
    <?php
    /**
     * The template for displaying all pages.
     *
     * This is the template that displays all pages by default.
     * Please note that this is the WordPress construct of pages
     * and that other 'pages' on your WordPress site will use a
     * different template.
     *
     * @package WordPress
     * @subpackage Twenty_Ten
     * @since Twenty Ten 1.0
     */

    get_header(); ?>

            <div id="container">
                <div id="content" role="main">
    <div id="calendar">
    <?php
    require("../calendar/calendar.php"); 
    ?>
    </div>
                <?php
                
    /* Run the loop to output the page.
                 * If you want to overload this in a child theme then include a file
                 * called loop-page.php and that will be used instead.
                 */
                
    get_template_part'loop''page' );
                
    ?>

                </div><!-- #content -->
            </div><!-- #container -->
    <?php get_footer(); ?>
    What am I missing
    "Oh, and Jenkins--apparently your mother died this morning."

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,614
    Mentioned
    413 Post(s)
    Tagged
    7 Thread(s)
    Heh heh, NOW it's a CSS issue. In your style sheet, these bits in red are causing the problem, so just remove them:

    Code:
    h1, h2, h3, h4, h5, h6 {
      clear: both;
    }
    
    
    #content p {
      clear: both;
      color: #5F4B3D;
      font-family: Arial,Helvetica,sans-serif;
      font-size: 12px;
      line-height: 16px;
      margin: 10px 0;
    }

  3. #3
    SitePoint Wizard lukeurtnowski's Avatar
    Join Date
    Mar 2003
    Location
    Coronado
    Posts
    1,582
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    thanks...
    "Oh, and Jenkins--apparently your mother died this morning."

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,614
    Mentioned
    413 Post(s)
    Tagged
    7 Thread(s)
    You're welcome. I'm sorry I didn't notice those styles in your previous thread, but it's handy when all the bits and pieces are in the right place.


Bookmarks

Posting Permissions

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