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 trialJohn Wilkins
Front End Web Development Techdegree Student 5,076 PointsHtml and css Practice website
Hey and thank you in advance so, the problem I'm having or what I'm trying to do is bring my content-box down from the navbar so that the top is visble. I've tried adding top-margin : 5px; but all it does is bring everything down. I've been trying to solve this by myself for two days now. again thank you even if you just look at my code
4 Answers
Sir Tesla
201 PointsThey problem is here /* Section Styles */ .main-nav { width: 100%; background: #FFDEAD; min-height: 30px; margin-bottom: 10px; padding: 10px; position: fixed; top:0; text-align: center; } when you use position property you need to set a value for where you want it to be like if you want it at the top of the viewport meaning at the top of the window then you need to set top to 0; also you use use <nav> tag for your top main menu. the html is written is bad as well as the css. you should start in the web development course here in treehouse.
Sir Tesla
201 PointsHere goes the link: https://teamtreehouse.com/tracks/web-design
The front end web development track offers not only web development but dives into tools and frameworks you can later on use to better your websites or land a job as a front end web developer.
Sir Tesla
201 PointsWhere is you code ? I can help just need to see the code
John Wilkins
Front End Web Development Techdegree Student 5,076 PointsSorry I just added it.
John Wilkins
Front End Web Development Techdegree Student 5,076 PointsSir Tesla
201 PointsNo problem happy to help. And no worries just learn from trial and error, but good mark up leads to becoming a better web developer. You can take the web designer track or even the web developer course the last one involves programming so if you are not up for that the first one is a better options.
John Wilkins
Front End Web Development Techdegree Student 5,076 PointsI didn't find the web development but I started the front-end development which is what I want to do. I can't believe I didn't start it in the first place
John Wilkins
Front End Web Development Techdegree Student 5,076 PointsJohn Wilkins
Front End Web Development Techdegree Student 5,076 Pointsthank you I was just trying to practice after taking the css and html introduction. but thank you I will start over from scratch.