Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7769029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:04:03+00:00 2026-06-01T16:04:03+00:00

I have two CSS float problems on this website ( http://melisayavas.com/web ) that I

  • 0

I have two CSS float problems on this website ( http://melisayavas.com/web ) that I can’t figure out. The first one is right on the homepage. I have two javascript slides and one big empty space below them. Why?

The second problem is on the News page – http://melisayavas.com/web/?page_id=30 – where the sidebar simply doesn’t floats where it should. Again, I have no idea what element is stopping the float.

This is the HTML code in header.php:

    <article class="post" id="post-<?php the_ID(); ?>">
        <div class="homepage">
            <div class="testimonials"><?php slidedeck( 58, array( 'width' => '500px', 'height' => '550px' ) ); ?>
            </div>
            <div class="images"><?php slidedeck( 66, array( 'width' => '400px', 'height' => '550px' ) ); ?>
            </div>
        </div>
    </article>

This is the relevant CSS:

article, aside, figure, footer, header, hgroup, nav, section {
display: block;
overflow: hidden;
clear: both;
} 

 .post {
border: 2px solid;
border-radius: 10px;
clear: both; 
overflow: hidden; 
padding: 20px;
margin-top: 28px;
}

.testimonials {position: relative;}
.images {position:relative;margin-left: 543px; top: -556px; width: 100%;}

The HTML for the News page:

<div class="news-page">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> 
<div class="news">
    <article <?php post_class() ?> id="post-<?php the_ID(); ?>">
        <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
        <?php include (TEMPLATEPATH . '/_/inc/meta.php' ); ?>
        <div class="entry">
            <?php the_content(); ?>
        </div>
    </article>
</div>
<?php endwhile; ?>
<?php include (TEMPLATEPATH . '/_/inc/nav.php' ); ?>
<?php else : ?>
    <h2>Not Found</h2>
<?php endif; ?>
</div>

And the CSS:

  .news-page {
width: 100%;
  }

  .news {
float: left;
width: 60%;
  }
  #sidebar {float: right; width: 30%;}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T16:04:04+00:00Added an answer on June 1, 2026 at 4:04 pm

    At first, I suggest using firebug (for firefox) or Chrome because it has developer tools built in. IE has an alternative, called IE developers tool as well.

    I’m using Chrome developer tools, when I inspected homepage class on your site, I saw that it’s computed width and height are 976px and 1100px, respectively. I had a look at your .css files and saw that height for .homepage class is not set anywhere. In other words, the div element has height of 1100px because it has content which stretches it to 1100px.

    Your div.homepage contains this:

    <div class="slidedeck_frame skin-fullwidth-sexy-black">
    <dl id="SlideDeck_275_58" class="slidedeck slidedeck_58" style="width:500px;height:550px">
    ...
    </dl>
    </div>
    
    <div class="slidedeck_frame skin-fullwidth-sexy-black">
    <dl id="SlideDeck_275_58" class="slidedeck slidedeck_58" style="width:500px;height:550px">
    ...
    </dl>
    </div>
    

    These two elements of height 550px each give the .homepage element height of 1100px.

    Possible fix is setting height of .homepage directly (to 700px, for example).

    As for second part of your question, you currently have this:
    div.news-page has width: 100%, and is not set to float.
    div.news are inside div.news-page.
    div.news has width of 60%.
    div#sidebar is set to float right and has width of 30%

    Solution:

    .news-page
    {
    width: 70%; // takes 70% of it's parent element, page-wrap
    float: left;
    }
    
    .news
    {
    width: 100%; // takes all space available by it's parent
    }
    
    #sidebar
    {
    width: 30%; // takes 30% of it's parent element, page-wrap
    float:  right;
    margin-top: 30px; // so it does not cover your navigation bar
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have two problem with this jquery method : 1- in css hover and
I have two CSS files, pic off the problem: this pick shows no caps
Edit: Somehow I knew, after two days messing with this, that I'd figure it
I have two elements on a page that I'd like to animate via CSS
Using CSS Style Sheet In my web page, i have two class like menu
I have two CSS rules following each other: .some td:first-child:before { content:url('path/to/image.png') ; }
If I have two css files: File 1: .colorme { background-color:Red; } File 2:
I have created tab style interface using css and javascript with only two tabs
I have two applications written in Java that communicate with each other using XML
I have a list like this: <html> <head> <link type=text/css rel=stylesheet href=testli.css> </head> <body>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.