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 trialgio kupra
Front End Web Development Techdegree Student 388 Pointsfront-end project 2 CSS
when I use float on some screens it crashes on some it does not. I have clearfix done.
gio kupra
Front End Web Development Techdegree Student 388 Points/* General rules */
* {
padding: 0;
margin: 0;
box-sizing: border-box;
text-align: center;
}
h3,
h4 {
margin: 4%;
font-size: 1.2em;
}
body {
font-size: 1.25em;
}
p {
margin: 7%;
}
img {
max-width: 100%;
padding-bottom: 3%;
padding-top: 3%;
}
ul,
ol {
list-style: none;
}
a {
text-decoration: none;
color: black;
}
a:hover {
color: blue;
}
.container {
text-align: center;
margin: 0 auto;
width: 80%;
}
/* Nav */
.main-nav ul li {
margin: 2%;
padding: 2%;
}
nav ul {
padding: 0;
}
nav li {
font-size: 1.2em;
font-weight: bold;
}
/* main content */
.top-pad {
padding-top: 3%;
}
.margin {
margin: 7%;
}
.title {
margin-top: 10%;
margin-left: 4%;
margin-right: 4%;
margin-bottom: 4%;
font-size: 1.2em;
}
.skills img {
width: 30%;
display: inline-block;
padding-top: 2%;
}
.main-footer h3 {
margin-top: 7%;
}
.main-footer ul {
margin-bottom: 7%;
}
@media (min-width: 766px) {
.main-nav li {
display: inline-block;
}
.top-pad {
float: right;
margin: 0;
padding-top: 0;
}
.margin {
float: left;
width: 48%;
margin: 0;
text-align: left;
}
.col1 {
float: left;
width: 48%;
}
.col2 {
float: right;
width: 48%;
}
img {
max-width: 100%;
padding-bottom: 0;
padding-top: 0;
}
.container {
width: 90%;
margin: 0 auto;
}
}
@media (min-width: 1024px) {
body {
font-size: 1.75em;
}
h1 {
float: left;
display: inline-block;
margin-left: 4%;
}
nav ul {
float: right;
display: inline-block;
width: 50%;
}
}
/*
clearfix
*/
.clearfix::after {
content: "";
display: table;
clear: both;
}
.clear {
clear: both;
}
gio kupra
Front End Web Development Techdegree Student 388 PointsI know U should not have clearfix everywhere but I was just massing around and trying to solve problem.
gio kupra
Front End Web Development Techdegree Student 388 Pointsgio kupra
Front End Web Development Techdegree Student 388 Points