Step 3: Cannot make image go to the left of text


#1


Whatever I do the image just always stays above the text


    <div class="main">
      <div class="container">
        <img src="https://s3.amazonaws.com/codecademy-content/projects/innovation-cloud/cloud.svg" height="128" width="196"/>
				
        <h2>The Innovation Cloud Conference</h2>
        <p>Connect with the best minds across a wide range of industries to share ideas and brainstorm new solutions to challenging problems.</p>
        <p>Hear industry leaders talk about what worked (and what didn't) so that you can save time on your most challenging projects.</p>
         <p>Learn about the latest research and technologies that you can use immediately to invent the future.</p>
        
      </div>
    </div>

all my css code

html, body {
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Roboto', sans-serif;
	font-weight: 100;
}

.container {
	margin: 0 auto;
	max-width: 940px; 
	padding: 0 10px; 
}


/* Header */
.header {
  height: 800px;
  text-align: center;
  background: url(https://s3.amazonaws.com/codecademy-content/projects/innovation-cloud/bg.jpg);
}

.header .container {
	position: relative;
	top: 200px;
}

.header h1 {
	font-size: 80px;
	line-height: 100px; 
	margin-top: 0;
	margin-bottom: 80px;
}

@media (min-width:850px) {
	.header h1 {
		font-size: 120px;
	}
}

.header p {
	font-weight: 500;
	letter-spacing: 8px;
	margin-bottom: 40px;
	margin-top: 0;
}

.btn:hover {
	background: #117bff;
	cursor: pointer; 
	transition: background .5s;  
}


/* Nav */
.nav ul {
	list-style: none;
	margin: 0 auto; 
	padding: 0px 0;
	text-align: center; 
}


/* Main */
.main .container {
	margin: 80px auto;
}


/* Jumbotron */
.jumbotron {
	height: 600px; 
	text-align: right;
}

.jumbotron .container {
	position: relative;
	top: 220px;
}


/* Footer */
.footer { 
	font-size: 14px;
}

/* Media Queries */
@media (max-width: 500px) {
  .header h1 {
    font-size: 50px;
    line-height: 64px;
  }

  .main, .jumbotron {
    padding: 0 30px;
  }

  .main img {
    float: left;

    
  }
}
.btn {
  background-color: black;
  color: white;
  text-decoration: none;
  padding: 10px 15px;
}
.nav {
  background-color: black;
  padding: 30px;
}
.nav li {
  display: inline;
  color: white;
  padding: 30px 15px 30px 15px;
}
.nav li:hover {
  background: #117bff;
	cursor: pointer; 
	transition: background .5s
}
.main .container {
  margin: auto;
  background-color: white;
  padding: 10px;
}


#2

try to change screen width less then 500px, image should go to the left:

/* Media Queries */
@media (max-width: 500px) {
  .main img {
    float: left;
  }
}

I think this rule should be global, replace it in Main section:

/* Main */
.main img {
    float: left;
}

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.