alykins
05-14-2011, 08:50 AM
Ok so I thought i had a firm grasp on margins/padding... my issue is i have some elements... they are all alined how i want them but when i had text in them i wanted to add some padding (to push the txt off the walls) but when i added the padding it screwed up all my margins... the following is code
Note that i have commented out the padding because of this and the text within the divs is arbitrary
#search_field{
background-color: #FFFFFF;
border:3px ridge #FFFFFF;
margin: 10px 5px 10px 10px;
width: 784px;
height: 576px;
float: left;
/*padding: 3px;*/
}
#right_col_top{
background-color: #FFFFFF;
border:3px ridge #FFFFFF;
margin: 10px 10px 5px 5px;
height: 280px;
width: 198px;
float: right;
overflow: scroll;
/*padding: 3px;*/
}
#right_col_bottom{
background-color: #FFFFFF;
border:3px ridge #FFFFFF;
margin: 5px 10px 10px 5px;
width: 198px;
height: 280px;
float: right;
overflow: scroll;
/*padding: 3px;*/
}
Also for dimension purposes it is within a 1024 element leaving 42 px... 10 btw each element and the wrapper (amounting to 30px) and four 3px border occurrences...
I dont see why when i add padding (to push the text off the walls) it blows my element's alignment to heck-- am i missing something?
Note that i have commented out the padding because of this and the text within the divs is arbitrary
#search_field{
background-color: #FFFFFF;
border:3px ridge #FFFFFF;
margin: 10px 5px 10px 10px;
width: 784px;
height: 576px;
float: left;
/*padding: 3px;*/
}
#right_col_top{
background-color: #FFFFFF;
border:3px ridge #FFFFFF;
margin: 10px 10px 5px 5px;
height: 280px;
width: 198px;
float: right;
overflow: scroll;
/*padding: 3px;*/
}
#right_col_bottom{
background-color: #FFFFFF;
border:3px ridge #FFFFFF;
margin: 5px 10px 10px 5px;
width: 198px;
height: 280px;
float: right;
overflow: scroll;
/*padding: 3px;*/
}
Also for dimension purposes it is within a 1024 element leaving 42 px... 10 btw each element and the wrapper (amounting to 30px) and four 3px border occurrences...
I dont see why when i add padding (to push the text off the walls) it blows my element's alignment to heck-- am i missing something?