Junior Spellweaver
- Joined
- Jun 5, 2005
- Messages
- 192
- Reaction score
- 1
Hey,
I was having a lil touble with the css on my site... I wanted 3 columns to be aligned side by side with equal widths (to take up 100% of the screen)...
So i took out my trusty ole calculator and:
100/3= 3.333333333333333333333333333333
my code now looks like this (is this bad to use?) and is there a better way to do it? - it seems to be workin fine ...
I was having a lil touble with the css on my site... I wanted 3 columns to be aligned side by side with equal widths (to take up 100% of the screen)...
So i took out my trusty ole calculator and:
100/3= 3.333333333333333333333333333333
my code now looks like this (is this bad to use?) and is there a better way to do it? - it seems to be workin fine ...
Code:
#FooterSection1 {
background-color: #00FFFF;
float: left;
height: 100%;
width: 33.333333333333333333333333333333%;
padding: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
}
#FooterSection2 {
background-color:#FF0000;
float: left;
height: 100%;
width: 33.333333333333333333333333333333%;
padding: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
}
#FooterSection3 {
background-color: #00CC00;
float: left;
height: 100%;
width: 33.333333333333333333333333333333%;
padding: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
}