0

This is basically the site http://funkz.nfshost.com/
The bottom post with <div id="big-post"></div> element is floated to the left,
and the sidebar with <aside id="tab-lists"></aside> element is floated to the right,
but when i add another(or more) <div id="big-post"> element after the first one it moves the whole sidebar down with the post... I've tried clearing, but nothing helped...I'm pretty sure the solution is simple, can someone help me?

3
  • 1
    You cannot add more then one big-post. You are using the id tag, so the id must be unique. If you have more the one big-post element you must use class Commented Aug 27, 2012 at 11:53
  • 1
    I know that, it's just for testing. Commented Aug 27, 2012 at 11:58
  • We can do the right things also for testing ;) Wrong code styling sometimes hides some bugs Commented Aug 27, 2012 at 12:14

4 Answers 4

2
<div class="some_new_div">
  <div id="big-post">...</div> 
  <div id="big-post">...</div> 
  <div id="big-post">...</div> 
</div>
<aside id="tab-lists"></aside>

CSS

.some_new_div{float: left;}

Remove float from big-post and then take a new element, inside that- put big-post element

Sign up to request clarification or add additional context in comments.

Comments

0

Right-floated elements have to be placed before other elements, so you have to do something like this:

....
<aside id="tab-lists"></aside>
<div id="big-post"></div>
<div id="big-post"></div>
....

1 Comment

Thanks for the quick response, that was the first thing i tried, but when I do it this way, when I duplicate the sidebar the big-post is being pushed down. :(
0

Your <aside id="tab-lists"></aside> element needs to occur before any of the<div id="big-post"> elements.

I've just moved it above the post div in chrome developer tools and could add another post successfully.

2 Comments

Yes, but when I add another <aside> it pushes the down the <div id="big-post">
Oh ok, sorry. Thought you were just having the one aside. See Chandrakant's answer.
0

right goes over left in this case, your aside needs to be moved up in the chain, in this case above the big-post.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.