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

Alan Carmichael
2,506 PointsLists Moving When Entering Text
I have a strange problem when I enter text into individual list items, the whole list moves down quite a bit, anyone know how I would solve this?
3 Answers

Diane Houghton
5,773 PointsWe would have to see your code, both html and css. Can you post it?

Alan Carmichael
2,506 Points<!DOCTYPE html> <html> <head>
<meta charset="utf-8" /> <link rel="stylesheet" type="text/css" href="style.css"> <title id="title">HowTo?</title> </head> <body>
<div id="wrap">
<!--<h1></h1>-->
<div id="CommandHeader">
<a href="#"><img src="CommandHeader.png"/></a>
</div>
<div id="ImgNav">
</div>
<div id="BookHowLogo">
<a>
<img src="BookHowLogo.png"></a>
</div>
<div id="headings">
<div id="Uxxxlogo">
<img src="Uxxxlogo.png"/>
</div>
<!--<div id="Exxxlogo">
<a href="#"><img src="Exxxlogo.png"/></a>
</div>-->
</div>
<div id="sidenav">
<ul>
<a href="" target="_blank"><li>On Call</li></a>
<li><a href="#">About</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</div>
<div id="processtable">
<ul id="lefttable">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<ul id="righttable">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>
<footer>
</footer>
</body> </html>

Alan Carmichael
2,506 PointsCSS
body { background-color:white; }
wrap{
background-color:#0096D6;
margin-left:auto;
margin-right:auto;
padding-top:50px;
height:700px;
width:70%;
position:relative;
border-style:none;
}
h1 { color:black; height:22px; width:275px; font-family:helvetica; font-size:20px; background-color:white; border-radius:0px; padding-left:20px; margin:5px; }
CommandHeader {
margin:-0px; float:left; padding:0px; position:inline;
}
BookHowLogo{
padding-left:400px;
padding-bottom:0px;
border-style:none;
}
Uxxxlogo{
padding-right:425px;
padding-bottom:0px;
padding-top:70px;
position:block;
float:right;
}
Exxxlogo{
padding-right:425px;
padding-bottom:0px;
padding-top:70px;
position:block;
float:right;
}
righttable {
}
lefttable {
margin-left: 275px; padding:0px; }
sidenav{
margin-left:-80px;
}
img { border-style:none; }
ul li { font-family:helvetica; list-style-type:none; margin:20px; font-size:17px; text-decoration:none; padding:0.7em; margin:15px; width:150px; height:10px; background-color:white; border-radius: 5px; text-align:center;
}
processtable ul li {
font-family:helvetica;
list-style-type:none;
margin:20px;
font-size:17px;
text-decoration:none;
padding:0.7em;
margin:15px;
width:150px;
height:10px;
background-color:white;
border-radius: 5px;
text-align:center;
}
processtable ul{
display:inline-block;
}
a:link { color: #000000; text-decoration: none; } a:active { color: #000000; text-decoration: none; } a:visited { color: #000000; text-decoration: none; } a:hover { color: #000000; text-decoration: underlined; font-style: italic; }