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!
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
Rafael Mocelin
Courses Plus Student 3,271 PointsWebsite preview problems
When I preview my website by dragging my .html file to the browser everything looks fine, however when I uploaded my files to a public dropbox to preview my site remotely, some formats got distorted and my icons dissappeared. I uploaded the entire folder with all the files I used for the website. Is there any code I need to add to prevent this? How do you guys preview your websites? Thanks in advanced.
3 Answers

Brian Pirouet
Courses Plus Student 1,653 PointsI have never used Dropbox to view my websites I make, never heard of being able to do it to be honest. Maybe that's the problem? I normally upload my websites to my hosting I have, by either FTP or cpanel.

Marcus Tisäter
4,886 PointsI use DB to upload my websites. It works perfectly fine, try check the destination folders of where you're pictures are located. If they aren't in the same map you need to make sure you tell the code to locate them correctly.

Rafael Mocelin
Courses Plus Student 3,271 Pointsthats the problem.. destinations are correct and for example one problem I get is that a title doesnt get aligned to the center like it is written in the code. I am assuming it must be a dropbox error.

Marcus Tisäter
4,886 PointsIt could be. Have you tried reinstalling you're DB? Try with SkyDrive or another program to check if you get the same problem.

Rafael Mocelin
Courses Plus Student 3,271 PointsDropbox seems to be the only one that transforms the .html into a ready website.. How could I preview a website for free without having to pay for a hosting service??

Marcus Tisäter
4,886 Pointsehmm...Notepad?