Most likely you need to increase the sidebar’s left margin in the stylesheet. I haven’t measured it, but whilst alongside your left-floated content the sidebar is pushed to the right artificially, then when the content ends the specified sidebar width comes into play, which is maybe less than the content width, so it moves over left.
Actually I think it is better to float the sidebar right, gving it a little right padding and removing the left margin altogether.
Thread Starter
dobie
(@dobie)
Thanks, that worked. But I’m still trying to get the Fark.com to line up with the rest of the categories. Any ideas about that?
Regarding Fark.com, you need to put that h2 inside a list, so it is consistent with your other h2s. Currently that heading is standing on its own, which is causing it to behave differently to the h2s within your normal sidebar lists.
Just make that whole Fark.com section into a single list item, exactly like the ones below, with a sub-list inside it. I think this will cure the problem.
Thread Starter
dobie
(@dobie)
Sorry, new to this. Can you give me and example? This is what I have for it:
<div class=”blocktitle”>
<?php require( dirname(__FILE__). ‘/fark.php’); ?>
</div>
Thanks, I just started playing around editing it a couple days ago. Didn’t think it would be this hard.
Thanks again.
Well I don’t know what you have in fark.php, but it should output HTML something like:
<li id=”linkcat-1″><h2>Fark.com</h2>
then your sublist
then close main list
(sorry, don’t know how to post code into here)
Thread Starter
dobie
(@dobie)
Just figured it out, thanks. Next tasks are to move over the month for the calendar. Should I try the same thing with that?
The calendar is in a table, with its own styling. I don’t use a calendar, but I would imagine you need to play about with your stylesheet until the calendar caption displays the same as an h2 within a list.
You seem to be getting there, anyway.