Arronax
Hello
I apologise if this has been asked several times already but my attempts to search the forum came up with zero results so I thought I should try asking.
I have been recently trying to produce image formatting that is used in most other wiki's (that being the whole box with the picture shrunk to fit complete with caption and direct link to enlarged picture, similar to how wikipedia formats its pictures) but my attempts with implementing it using html have been varied.
I had some success in making a cell and filling it with the picture and caption but it required way too much work to be viable (as the picture, cell and caption had to be measured in pixels and adjusted repeatedly till it all lined up, and even then it was quite haphazard.
I was therefore wondering if anyone has had any luck in producing enclosed image boxes and could give some pointers in how to produce them.
Thank you
Comments
Oh, and Duskreign is right, you spoil us xD
Guess I should start remembering all the CSS I was meant to learn at uni.
Just trying to help out.
@ CAPTION @
Hey, I've just used this code for my obsidian portal page and it works amazingly when viewed on a computer, unfortunately the pictures are not resizing properly on cellphone. Is there anything that can be done to fix this?
Hey @Vayday! Let me look into this and see what can be done. Will get back to you soon!
Hi again @Vayday! Could you please provide an example url that is not working on your phone?
You can see it for yourself on this page https://horai.obsidianportal.com/wikis/distributeurs
Here is an exemple of what it looks like on cellphones : https://i.imgur.com/L68wpZg.jpg
Granted I'm not the best coder in the world (far from it) so I might have made a mistake
Good looking site Vayday!
Just trying to help out.
@Vayday Thank you! I'm passing this along to the team, we will get back to you soon!
@GamingMegaverse thank you so much ! It doesnt hold a candle compared to yours though ! I wish I knew how to code such beautiful sites x).
@C4RBON thank you !
Hello my friend! @vayday We got some information that should help you out:
Obsidian Portal Support Druid | [email protected]
Thank you for your help @vadercomplex, I think I might have gotten this wrong somehow though.
If I understand correctly this bit of code for instance, which is the one I'm using currently :
Should be replaced by this :
While on first glance it does seem to fix the image resizing just fine, it throws off the caption as well as the floating property of the picture. Maybe I didnt copy and paste what you gave me properly though, is there any problem with my fix?
Hi @vayday! We're checking in on this for ya. :~)
Obsidian Portal Support Druid | [email protected]
Thank you for your time !
@Vayday
Absolutely! Unfortunately, we can't see the fix in place right now to see if it is working or not. If you don't want to leave the real page "fixed", could you possibly create a copy of the page as a test page where you can leave the fix in place on so we can see what is or isn't working? You can also mark it as "GM Only" if you don't want the players to get confused by it)
I think I'm going to start listing artist credits at the bottom of the article. To be fair I'm not the best at coding so this might work better for all of us. Thank you for your help nonetheless I truly appreciate it !
Of course, friend! @vayday if anything else comes up, please don't hesitate to reach out!
Obsidian Portal Support Druid | [email protected]