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
Kelvin Atawura
Front End Web Development Techdegree Student 19,022 Pointsbootstrap help
l have created site but for some reason its not responsive when l resize it. the code is as below any suggestions would be great thanks.
`<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="icon" href="../../favicon.ico">
<title>Maya Transport - Concrete Pump Hire,Leeds</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="justified-nav.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div>
<h1 class="logo">Maya Transport Conrete pumps,leeds</h1>
<p class="pull-right"><i class="fa fa-mobile phone"></i>+447446978235</p>
</div>
<!-- Static navbar -->
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="#">HOME</a></li>
<li><a href="#">ABOUT</a></li>
<li><a href="#">CONTACT</a></li>
<li class="dropdown">
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container-fluid -->
</nav>
<!-- Jumbotron -->
<div class="slider">
<div class="slide-viewer">
<div class="slide-group">
<div class="slide slide-1">
<img src="img/slide-1.jpg" alt="No two are the same" />
</div>
<div class="slide slide-2">
<img src="img/slide-2.jpg" alt="Monsieur Mints" />
</div>
<div class="slide slide-3">
<img src="img/slide-3.jpg" alt="The Flower Series" />
</div>
<div class="slide slide-4">
<img src="img/slide-4.jpg" alt="Salt o' The Sea" />
</div>
</div>
</div>
<div class="slide-buttons"></div>
</div>
<div class="wrap">
<div class="type-wrap ">
<span id="typed" style="white-space:pre;"></span>
</div>
</div>
<!-- Example row of columns -->
<div class="row middle">
<div class="col-lg-4 services">
<i class="fa fa-cog fa-3x"></i>
<h2>Services</h2>
<p>We provide all sizes of pumps
for hire. Mostly 20 meter Z fold
mobile concrete boom pump
with 50 meters of assitional
static line. </p>
</div>
<div class="col-lg-4 services">
<i class="fa fa-bus fa-3x"></i>
<h2>Locations </h2>
<p>We cover all of Yorkshire and
most of Greater Manchester.
Providing good services to
customer of all pump size
needs. </p>
</div>
<div class="col-lg-4 services">
<i class="fa fa-money fa-3x"></i>
<h2>Payments</h2>
<p>As well as accepting cash
payments we do accept
BACS. So however you
would like to make
payments you know you are
covered and would not have
any problems paying. </p>
</div>
</div>
<div class="row bottom">
<div class="col-lg-4">
<h3><i class="fa fa-check"></i>Professional</h3>
</div>
<div class="col-lg-4">
<h3><i class="fa fa-check"></i>Experienced</h3>
</div>
<div class="col-lg-4">
<h3><i class="fa fa-check"></i>Reliable</h3>
</div>
</div>
<!-- Site footer -->
<div class="footer">
<h4 class="pull-left">© Maya Transport 2014</h4>
<h4 class="pull-right right"><i class="fa fa-location-arrow"></i>58 Whinmoor Crescent,Leeds</h4>
</div>
</div> <!-- /container -->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
<script src="js/slider.js"></script>
</body> </html> `
1 Answer
Naomi Freeman
Treehouse Guest TeacherI'm more familiar with this construction:
<link rel="stylesheet" type="text/css" href="theme.css">
For link href you need to point to a URL:
<link href="http://www.placewherestylehseetis.com">
So if you downloaded the CSS and other things and they are inside your app somewhere, maybe try and swap the order of rel and href?
Also, for older CSS, the type="text/css" is mandatory.
If you didn't download the sheets and add them to your app, find out what the appropriate URL is to point to to get the CSS and other elements required to make bootstrap go. You would just need href and not rel or type at that point.