floating a menu

liunx

Guest
<!-- m --><a class="postlink" href="http://www.matts-website.net/wp/">http://www.matts-website.net/wp/</a><!-- m -->
<!-- m --><a class="postlink" href="http://www.matts-website.net/wp/wp-layout.css">http://www.matts-website.net/wp/wp-layout.css</a><!-- m -->

I can get the menu to shift over to the right, but I can't get it to go up so it's placed side-by-side with the content.It's because of the way you are trying to do this. Due to the way that floats work, it's a bit tricky to place the sidebar after the content area in your code.

I'm actually planning an ALA article on the subject and have taken the preliminary steps to get that going. Of course, there is no gaurentee that it will be published, and if it is not, it will end up on my site (<!-- m --><a class="postlink" href="http://www.ryanbrill.com/">http://www.ryanbrill.com/</a><!-- m -->). It's a fairly strong technique (well supported) and seems to have helped a fair number of people (a surprising number of bloggers have linked to it), so I'm hopping it will be. The answer involves using negative margins. For now, the most I've written up on the subject (at least that is on the internet) can be found at mezzoblue (<!-- m --><a class="postlink" href="http://www.mezzoblue.com/archives/2004/01/23/friday_chall/">http://www.mezzoblue.com/archives/2004/ ... day_chall/</a><!-- m -->). If you are looking for a simple fix, you need to set a width on your #content styles. Of course, since you used percentages, that's not exactly desireable, thus my little trick will come in handy.Thanks for the tip and I'll play around with it and see how well I can get it working. I have mezzoblue bookmarked, but it never got put into my "web design blogs" folder which I look at often so I haven't been there in a while. I went and changed that.Mezzoblue is one of my favorite (if not favorite) blogs to read... Always good.
 
Back
Top