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
CRYSTAL MORRIS
Courses Plus Student 2,809 PointsIs There A Command In CSS
Is There A Command In CSS That Will Cause Images To Swing Next To Each Other, I Have A Million Photos And They Are All Stacked On Top Of Each Other. This Is The HTML For This Page:
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Edwin & Walter Hawkins</title>
</head>
<body>
<div class="container clearfix">
<p id="Edwin & Walter Hawkins.html"></p><br>
<h2><em>Edwin & Walter Hawkins</em></h2><br>
<p>In 1985, Maggie joined forces of the “Professional Recording Music Industry”.and signed with Walter & Edwin Hawkins as their choral instructor and church musician. She served as Music Director for the Bay Area Chapter of the Edwin Hawins Music and Arts Seminar. Under her musical direction, they recorded their first recording entitled “HOLD ON”, written and arranged my Maggie in 1987. Their second recording was released in 1991, entitled “JOB” (also written and arranged by Maggie), would open several more musical doors for her. Maggie won an award for co-producing with Edwin Hawkins and writing the majority of the songs on the “JOB” CD.</p><br>
</div>
<div>
<div class="grid_4">
<img src="img/Edwin & Walter Hawkins.jpg" alt="Edwin & Walter Hawkins">
<h4><em>Edwin & Walter Hawkins</em></h4><br>
</div>
<br>
<div>
<div class="grid_8">
<img src="img/LC-YAC Reunion - Song Leads.jpg" alt="LC-YAC Reunion - Song Leads">
<h4><em>LC-YAC Reunion - Song Leads</em></h4><br>
</div>
<br>
<div class="grid_12">
<img src="img/The Bay Area Chapter of the Edwin Hawkins Music and Arts Seminar.jpg" alt="The Bay Area Chapter of the Edwin Hawkins Music and Arts Seminar">
<h4><em>The Bay Area Chapter of the Edwin Hawkins Music and Arts Seminar</em></h4><br>
</div>
<br>
<br>
<a href="Dr. Maggie Wincher.html" class="btn"><em>Home</a></em><br>
<br>
<br>
</div>
</body>
</html>
5 Answers
Jennifer Rai
Courses Plus Student 13,164 PointsHow large are your images?
Jennifer Rai
Courses Plus Student 13,164 PointsHi Crystal - I see a few things going on here.
You have block level elements (the h4 tags) inside of inline elements (the em tags). That should be switched. Inline elements should be inside of block elements, so the h4 comes first, then the emphasis tag.
You shouldn't have spaces in your image names. Some browsers will collapse the spaces and with some you need to express spaces as %20. Either way, it is a much better practice to just not have spaces. Use dashes instead separate words in an image name if you need to.
This may just be because you didn't paste all of your code, but it looks like you are missing a closing div tag or you have an extra opening div tag here:
<div>
<div class="grid_6 omega">
<img src="img/LC-YAC Reunion - Song Leads.jpg" alt="LC-YAC Reunion - Song Leads">
<em><h4>LC-YAC Reunion - Song Leads</h4></em><br>
</div>
If your div tags are off and you have a bunch of these listed on your page, that would explain why they are all stacked up. Otherwise, there may be a problem with your grid css, but I suspect that it is the extra div tag.
Hope that helps!
CRYSTAL MORRIS
Courses Plus Student 2,809 PointsThanks Jennifer, Nothing Changed :-) The Photos Are Still Stacked Like Cord Wood Against A Fireplace
CRYSTAL MORRIS
Courses Plus Student 2,809 PointsThat Did Cross My Mind, And Then It Left...LOL
CRYSTAL MORRIS
Courses Plus Student 2,809 PointsThank You So Much, Enjoy Your Evening. :-)
Jennifer Rai
Courses Plus Student 13,164 PointsYou're welcome :-)
CRYSTAL MORRIS
Courses Plus Student 2,809 PointsCRYSTAL MORRIS
Courses Plus Student 2,809 PointsThis Is My CSS