Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


Can't make logo and buttons on the same line

well i can't make my logo and my buttons on the same line i want it to be like this http://puu.sh/4jylW.png but then when i do it either the logo is on top of the buttons or the logo is below. it's depends on css as well but i thought i should put it in the HTML section

2 Answers

one sec

Jacob Miranda
Jacob Miranda
18,648 Points

Post your code please

(html) <!DOCTYPE HTML> FuadAdetoro.info

        <img src="desktop/testimage.png" alt="Test Image" />
        <li><a href="#">Home</a></li>
        <li><a href="#">Blog</a></li>
        <li><a href="#">Upcoming Projects</a></li>
        <li><a href="#">About Me</a></li>
        <li><a href="#">Contact Me</a></li>
   <div class="clr"></div>


body{ font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, sans-serif; }

*{ padding:0; margin:0; }


nav{ display:table; width:100%; }

nav ul{ list-style:none; margin:0; padding:0; width:100%; display:table-row;


nav li{ display:table-cell;
width:auto; text-align:center; vertical-align:middle; background: #000;


nav a{ color:#fff; display:block; font-size:0.8em; text-decoration:none; padding-top:10px; padding-bottom:10px; transition:.4s; } nav a:hover{ background:#333; }

.clr{ clear:both; }