2 Column Float: 2nd Column Problem
Posted: 27 September 2006 07:16 PM   [ Ignore ]
Newbie
Rank
Total Posts:  2
Joined  2006-09-27

Hi all
i was having a small problem, and this looked like a great place to post!

i have two classes,  LEFT and RIGHT
both have the exact same properties except that LEFT has float:left.

the problem is when displayed, the RIGHT column seams to have extra padding on top.
the text sits further down than the LEFT column.

any ideas?

thanks in advance!
jamie

Profile
 
 
Posted: 02 October 2006 06:52 PM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  10
Joined  2006-10-02

Can you post your source code?

Profile
 
 
Posted: 02 October 2006 08:29 PM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  1
Joined  2006-10-02

Hi there, this is my first post, and helping someone.

Ihope this does help, try the following

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<
title>Untitled Document</title>
<
style type="text/css">
<!--
.
left {
    background
-color#FFCCFF;
    
floatleft;
}
.right {
    background
-color#CCCCCC;
}
.myColumn{
    background
-color#FFFFCC;
    
floatleft;
    
width100px;
    
margin10px;
    
padding10px;
    
font-size9px;
    
font-familyArialHelveticasans-serif;
}
-->
</
style>
</
head>

<
body>
<
div class="left">Content for  class "left" Goes Here</div>
<
div class="right">Content for  class "right" Goes Here</div>
<
div class="myColumn">Content for  class "myColumn" Goes Here</div>
<
div class="myColumn">Content for  class "myColumn" Goes Here</div>
<
div class="myColumn">Content for  class "myColumn" Goes Here</div>
<
div class="myColumn">Content for  class "myColumn" Goes Here</div>
</
body>
</
html
Profile
 
 
Posted: 03 October 2006 12:32 PM   [ Ignore ]   [ # 3 ]
Newbie
Rank
Total Posts:  2
Joined  2006-09-27

hi thank you so much for your reply!
sorry i never got my source code up, i became totally engrossed with the project and forgot about my post all together.
your post was VERY helpful, thank you!
everything is running smoothly now. although, i still don’t completely understand float at times.
thanks again

Profile