We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

ictetu's avatar
ictetu
New member | Level 2
7 years ago

Displaying html and css for webpage mock-up

Hi.  I am using Dropbox for a college class, and I have to put a web design project in my shared folder for my prof to view. I tested all my links from my desktop folder, and everything worked, but when I put the files into Dropbox with the same organization and file names, it didn't display properly. Each page will open when I click on it from Dropbox, but none of them are linked to each other, and the style sheet is not attached, either.  Do I need to change a setting, or is something else going on? I would greatly appreciate any feedback or advice you can offer.

  • Jay's avatar
    Jay
    Icon for Dropbox Staff rankDropbox Staff
    Hi there, are you trying to preview HTML files? If so, they won’t be able to preview using shared links, as this has been disabled since 2016 for Basic users. 
     
    CSS files however should preview as a text file on the Dropbox site.
     
    If I’m misunderstanding something, please let me know!
    • ictetu's avatar
      ictetu
      New member | Level 2

      Yes, they are html files. My professor must be planning to download and save them then. Thank you.

      • Rich's avatar
        Rich
        Icon for Super User II rankSuper User II

        ictetu wrote:

        My professor must be planning to download and save them then.


        Make sure all links within the HTML file are relative, to the HTML file, otherwise they will not work for anyone else viewing the file.

        A link to a CSS file that looks like this:

        <link rel="stylesheet" type="text/css" href="C:\Users\YourName\Dropbox\FolderName\styles\mystyle.css">

        ... will only work for you. Instead, it's needs to use a relatvie path, and when downloaded by someone else, they need to keep the folder structure the same.

        <link rel="stylesheet" type="text/css" href="styles\mystyle.css">

         

About View, download, and export

Need support with viewing, downloading, and exporting files and folders from your Dropbox account? Find help from the Dropbox Community.

Need more support

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!