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


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
19,080 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; }