The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Fixed HTML/CSS in directory, Displaying files with an fixed html/css
Flogisch
post Jul 26 2017, 03:44 AM
Post #1





Group: Members
Posts: 3
Joined: 26-July 17
Member No.: 26,466



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

This post has been edited by Flogisch: Jul 26 2017, 03:55 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jul 26 2017, 09:46 AM
Post #2


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 17,645
Joined: 9-August 06
Member No.: 6



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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Flogisch
post Jul 26 2017, 11:36 AM
Post #3





Group: Members
Posts: 3
Joined: 26-July 17
Member No.: 26,466



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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jul 26 2017, 12:15 PM
Post #4


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 17,645
Joined: 9-August 06
Member No.: 6



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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Flogisch
post Jul 26 2017, 12:20 PM
Post #5





Group: Members
Posts: 3
Joined: 26-July 17
Member No.: 26,466



Yea, that's what I'm doing right now but it's a bit annoying. :/
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 17th August 2017 - 04:45 AM