Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Santos King
2,214 Pointstwo-column line-height issue
Hello. I have created a two column layout for a section on my website. I have the basehold.it in my css so i can see if everything is in its correct position. I managed to put the left column perfectly on its lines however the right column is a few pxs above of the desired lines. Can anyone please help me?
#custom {
width: 70%;
margin-top: 50px;
margin-left: 15%;
margin-right: 15%;
border-bottom: 1px solid #7f7e7e;
-webkit-column-count: 2;
-webkit-column-gap: 3em;
-webkit-column-rule-width: 1px;
-webkit-column-rule-style: dashed;
-webkit-column-rule-color: #c18a53;
}
#custom p {
color: #656565;
font-weight: 300;
font-size: 1.150em;
line-height: 1.34;
margin-top: 0.25em;
padding-top: -1em;
}
#custom img {
display: block;
padding-bottom: -1em;
max-width: 100%;
border: 1px solid #7f7e7e;
border-radius: 10px;
}
#custom h2 {
-webkit-column-span: all;
font-size: 2em;
line-height: 1.90;
margin-top: -0.475em;
margin-bottom: 0.15em;
}
myackley35
34,574 Pointsmyackley35
34,574 PointsHi Santos!
Can you include the HTML as well?
Thanks!