I want to have a simple list of links on the left side of my page and my content to the right side. BUT, in my HTML code, I would like my content to appear immediately after the <body> and my links to appear after the content. That way Google indexes the content before the links. I noticed a few websites like this and was wondering how to do this. Thanks
Use "float: right" like this example <div style="float: right">content</div> <div>links</div> Code (markup):
I tried this and it doesn't work. Please take a look at my test page here: http://www.lolroulette.com/test/
You also have to apply width values to them so that they don't go over the max width of their parent div, pushing them to the bottom. What I would recommend you do is this: .content{ width:50%; float:right; } .menu{ width: 50%; float:left; } Code (markup): Of course, you'll have to make sure other attributes are applied to the content and menu div's for text styling and such, but you need to add those two attributes to the code. Also, you can adjust the percent values if you want one area to be larger than the other, but just make sure they add up to 100%. Hope I helped.
No problem, very glad I could help. Also, as an added tip, you could add a 1% padding to the left and right of the content area, then subtract 2% from the width value, to make it look a bit roomier. But that's optional, it looks fine now. Have fun