March 3, 201016 yr http://deffrorddraig.com/wordpress/ I can get it to float right of the post-items but how can I get it to the top of the page? Cheers Mike
March 3, 201016 yr wrap the content on the left in a div and float it to the left..something like this #left { width:300px; float:left;} #sidebar {width:200px; float:right;} <div id="left"> All left side content in here </div> <div id="sidebar"> sidebar things here </div> This way your sidebar will float to the right of the left container rather than the left of the last element you have placed on the left hand site, like it is doing at the moment Hope that makes sense
March 3, 201016 yr Author I wrapped all the left content in it's own div and floated everything to the left and sidebar to the right but it still sits on the bottom I must of missed something! thanks Mike
March 3, 201016 yr Its quite hard to guess what your code is doing as I am guessing that it is coded for wordpress and that creates the posts on your left. If you look at the code that it is creating within the browser: <div id="main"> <div id="maincontent"> <div class="post-item"> (your post is here just took it out to save space) </div><!--end post item--> <div id="main"> <div id="maincontent"> <div class="post-item"> (your post is here just took it out to save space) </div><!--end post item--> </div><!--end maincontent--> <ul id="sidebar">...ect your opening a main, opening a maincontent, opening a post-item, posting item, closing post, opening another main, opening another main content...ect then you only close one main and one main content not all 3 that you do actually produce in the code. So I am only guessing here that in the actual code that you are creating you have put the main and maincontent ids into the loop for your posts, so when it cycles to show the next post it adds an extra main and maincontent into the code that the browser renders. Have a look at the php and make it so the loop starts after these two containers not before. Then if I am right that should fix the issue
March 3, 201016 yr Author Thanks Dizi, you were right, I had some of my divs placed incorrectly so they interfered with the loop You deserve a +1
Create an account or sign in to comment