Link to home
Create AccountLog in
Avatar of isnoend2001
isnoend2001Flag for United States of America

asked on

On going body column layout

I have been having a problem every time i try to make 3 columns float side by side. I start with dimensions that should work,
but never do. I adjust them until they finally line up side by side. I do not see how, but it works.
I have finally decided to get to the bottom of this and find what i am doing wrong.
Here is the page that does not work http://roofgenius.com/test.asp
body width 721px so the side adds are close to the table
table 461 px
add images 120px each + 10px margins each= 260px
 
  total 461
        260
        ----
        721
            The head portion is copied from a page I paid a coder to create and it works.
            What am i doing wrong ?
Avatar of Jagadishwor Dulal
Jagadishwor Dulal
Flag of Nepal image

See the list of your mistake as you are wrote above you are using 120px for both sidebar but:

.bodywidth {
    width: 701px;
}

.leftcolumn {
    float: left;
    margin-right: 5px;
    width: 130px;
}
.rightColumn {
    float: left;
    margin-left: 5px;
    width: 130px;
}

Open in new window


Now your tables are not in centercolumn
<div class="centercolumn">


<h3>What size roofing nails to use</h3>
</div>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Jagadishwor Dulal
Jagadishwor Dulal
Flag of Nepal image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of isnoend2001

ASKER

Thanks agadishdulal i do not understand your answer
Thanks
that works I will have to examine your code to see what i was doing wrong.
How do i center all 3 columns in the page ?
Update your style sheet:

.bodywidth {
    width: 701px;
    margin:0 auto;

}

Open in new window

Thanks