October 6, 201214 yr Hey everyone i am trying to create a 3 column layout with a main section of 550 and the left and right both 275px in width. The page stretches across 1100. However it does not seem to be working and appears all messed up, am sure its something simple but not sure what, the main section seems to have some black line around it too. The web address is http://www.cherrietestingwebsite.com/ Any help appreciated a lot, thanks.
October 6, 201214 yr How is it that you always create duplicates of all the topics you make? To fix your issue, the mainsection div needs to be floated as well. Doing so corrects position of the three blocks, but If the content seems to overflow the section divs, it's because of the styling on the <p> tags within them. Get rid of the width property and the paragraphs should be within their boundaries again. Edited October 6, 201214 yr by Pete Prosper
October 6, 201214 yr Author Hey that did work thanks but now my text in the left and right section moves down with the main content and my border seems to go slightly thicker at the bottom. I don't know how i keep double posting i only hit post once so am really not sure what is going on there
October 10, 201214 yr right first problem your html document reads like this <div id="mainsection"> <p>Hey this will be the main section for the following website clan caterers.</p> <p>Hey this will be the main section for the following website clan caterers.</p> <p>Hey this will be the main section for the following website clan caterers.</p> <p>Hey this will be the main section for the following website clan caterers.</p> <p>Hey this will be the main section for the following website clan caterers.</p> <p>Hey this will be the main section for the following website clan caterers.</p> </div> <div id="leftsection"> <p>Hey this will be the left section for the following website clan caterers.</p> </div> <div id="rightsection"> <p>Hey this will be the right section for the following website clan caterers.</p> </div> </div> so its reading your main section first, then the left, then the right. move the leftside above the main section to start with browser reads down the page left to right, as you would read a book. bear that in mind
October 10, 201214 yr remove margin: 0px auto from the main section -that centers it. you dont want it to center, other than the holding container, everything should have a set width and a float: left; this will put everything together like building blocks.
Create an account or sign in to comment