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
Corey Plummer
2,738 PointsHTML/CSS coding help..
I am trying to figuring out why my List Items are not against the edge. Here is the code:
HTML:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <link rel="stylesheet" href="css/style.css" media="screen"> <title>GirlDevelopeIt</title> </head>
<body>
<div class="container">
<img class="image" src="img/develop.jpg" alt="Girl Develop It" border="2px solid black"/>
<h1>About</h1>
<p>It can be intimidating for women to learn and ask questions when the are in an<br/>
<b>extreme minority</b>. White open and welcoming, today's budding developer<br/>
community is up to <b>91% male.</b> If we can empower more females with the confidence<br/>
in their technological capabilities <i>we can begin to change this landscape.</i>
</p>
<h2>Our Locations</h2
<ul>
<li>USA</li>
<li type="circle"><a href="#">New York</a></li>
<li type="circle"><a href="#">Columbus</a></li>
<li type="circle"><a href="#">Austin</a></li>
<li type="circle"><a href="#">Philly</a></li>
</ul>
<ul>
<li>World</li>
<li type="circle"><a href="#">Ottawa</a></li>
<li type="circle"><a href="#">Sydney</a></li>
</ul>
<h2>Upcoming Classes</h2>
<table border="2px solid black">
<tr>
<th>Location</th>
<th>Topic</th>
</tr>
<tr>
<td>New York</td>
<td>JavaScript N jQuery </td>
</tr>
<tr>
<td>San Francisco</td>
<td>HTML and CSS </td>
</tr>
</table>
<h2>Sign Up!</h2
<Form action="#" method="post" name="myform">
<label for="username">Name:</label>
<input type="text" name="username" id="username">
<br/>
<label for="email">Email:</label>
<input type="text" name="email" id="email">
<br/>
<br/>
<fieldset>
<Legend>Gender:</Legend>
<input type="radio" name="gender" value="Female" id="gender">
Female
<input type="radio" name="gender" value="Male" id="gender">
Male
</fieldset>
<br/>
<label for="experience">Experience:</label>
<br/>
<textarea name="Experience" rows="5" cols="20"></textarea>
<br/>
</form>
<input type="submit" value="Sign Up">
<br/>
<br/>
<a href="#">Twitter</a>
<a href="#">Facebook</a>
<a href="#">Flickr</a>
</div>
</body> </html>
CSS:
body {margin:0 auto; width: 900px; font-size:1.125em; } h1,h2 {text-align:center;}
p {line-height:-1.5; text-align:center; display:block; border-top:3px solid green; padding-top:10px;}
.container {width:800px; margin:0 auto; border:1px solid black; box-sizing: border-box;}
.image {display:block; margin:10px auto; }
4 Answers
sitkibagdat
27,311 PointsI think, code highligting shows your problem on h2 closing tags Fix them </h2>
Corey Plummer
2,738 PointsFreaking Genius. Thanks, a lot. Now how would I go about removing the left margin that the browser automatically sets?
sitkibagdat
27,311 PointsYou can use normalize or reset.css. Google them, please.
James Barnett
39,199 PointsPlease use normalize, it's vastly superior to a CSS reset.
Corey Plummer
2,738 PointsI normalized it. Thanks Guys.