Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Web Site Functionality _ Fixed HTML/CSS in directory

Posted by: Flogisch Jul 26 2017, 03:44 AM

Hey there! smile.gif

Is there a way to force an html/css for a complete directory?

I have uploaded images/videos to my directory "uploads" on my webhost. Now if I go to them, then I get a black background and the image will be displayed nothing else.
Is it possible to add there html/css for those files to get for example a header, footer, wrapper and a fixed file size?

Thanks smile.gif

Posted by: pandy Jul 26 2017, 09:46 AM

Do you mean automatically? That you could go to example.com/YourImages/ and a page with the first image would automatically load and then you could browse to the next one and so on? If that's it, you should look for gallery scripts.

Posted by: Flogisch Jul 26 2017, 11:36 AM

Nope, like you're uploading 2 images on your webspace. If you go on example.com/image1.png it gives you the html + image.

And the same goes for the image2.png

Posted by: pandy Jul 26 2017, 12:15 PM

I suppose with server side scripting everything is possible, but there is no automatic function that does what you want. You need to create it, one way or another.

The easiest for what you want is actually to create a HTML page that looks like you want. Then you just need to copy it and change the URL in the IMG tag for each image you upload. And go to example.com/image1.html isntead of example.com/image1.png. But I guess that's not what you want.

Posted by: Flogisch Jul 26 2017, 12:20 PM

Yea, that's what I'm doing right now but it's a bit annoying. :/

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)