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

HTML How to Make a Website Responsive Web Design and Testing Refactor the Layout

responsive.css

hi,when I use the responsive .css thewhole layout changed that was based upon previous chapters.now I removed that file but still it didn't work.

Ragav Raman
Ragav Raman
7,412 Points

You'll have to post your HTML and CSS to give us a better understanding.

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Gurvir Gill | Florist</title> <link href='http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="main.css"> <link rel="stylesheet" href="responsive.css"> </head> <body> <header> <a href="learn.html" id="logo"> <h1>Gurvir</h1> <h2>Florist</h2> </a> <nav> <ul> <li><a href="learn.html" class="selected">Flowers</a></li> <li><a href="about.html">About</a></li> <li><a href="contact.html">Contact</a></li> </ul> </nav> </header> <div id="wrapper"> <section> <ul id="gallery"> <li> <a href="pic6.jpg"> <img src="pic6.jpg" alt=""> <p>yellow rose is a symbol of friendship.</p> </a> </li> <li> <a href="pic2.jpg"> <img src="pic2.jpg" alt=""> <p>orange is sign for goodness.</p> </a> </li> <li> <a href="pic3.jpg"> <img src="pic3.jpg" alt=""> <p>violet rose depicts the happiness.</p> </a> </li> <li> <a href="pic4.jpg"> <img src="pic4.jpg" alt=""> <p>white rose shows peace.</p> </a> </li> <li> <a href="pic5.jpg"> <img src="pic5.jpg" alt=""> <p>Red rose represent love.</p> </a> </li> </ul> </section> <footer> <a href="http://twitter.com/@ggill"><img src="img/twitter-wrap.png" alt="Twitter Logo" class="social-icon"></a> <a href="http://facebook.com/gurveer gill"><img src="img/facebook-wrap.png" alt="Facebook Logo" class="social-icon"></a> <p>© 2014 Gurvir Gill.</p> </footer> </div> </body> </html>

Help! The other css file named responsive.css is not working.thanks

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Gurvir Gill | Florist</title> <link href='http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="main.css"> <link rel="stylesheet" href="responsive.css"> </head> <body> <header> <a href="learn.html" id="logo"> <h1>Gurvir</h1> <h2>Florist</h2> </a> <nav> <ul> <li><a href="learn.html" class="selected">Flowers</a></li> <li><a href="about.html">About</a></li> <li><a href="contact.html">Contact</a></li> </ul> </nav> </header> <div id="wrapper"> <section> <ul id="gallery"> <li> <a href="pic6.jpg"> <img src="pic6.jpg" alt=""> <p>yellow rose is a symbol of friendship.</p> </a> </li> <li> <a href="pic2.jpg"> <img src="pic2.jpg" alt=""> <p>orange is sign for goodness.</p> </a> </li> <li> <a href="pic3.jpg"> <img src="pic3.jpg" alt=""> <p>violet rose depicts the happiness.</p> </a> </li> <li> <a href="pic4.jpg"> <img src="pic4.jpg" alt=""> <p>white rose shows peace.</p> </a> </li> <li> <a href="pic5.jpg"> <img src="pic5.jpg" alt=""> <p>Red rose represent love.</p> </a> </li> </ul> </section> <footer> <a href="http://twitter.com/@ggill"><img src="img/twitter-wrap.png" alt="Twitter Logo" class="social-icon"></a> <a href="http://facebook.com/gurveer gill"><img src="img/facebook-wrap.png" alt="Facebook Logo" class="social-icon"></a> <p>© 2014 Gurvir Gill.</p> </footer> </div> </body> </html>

1 Answer

Daksh Shah
Daksh Shah
3,534 Points

Hi Gurvir!

Your code cannot be seen as you're not posting it according to the Markdown guide. To let us see your code, kindly wrap your code with 3 backticks (```) on the line before and after. If you specify the language after the first set of backticks, that'll help us with syntax highlighting.

Click on the 'Markdown Cheatsheet' link below any comment/answer box for further reference.

Look forward to solving your problem :) Happy learning!