Discussion:
[tw5] float images in tiddlers
Mohammad
2018-06-16 09:04:39 UTC
Permalink
This question may be redundant, but I could not find good stuff on that

What is the best practice for embedding float images in tiddlers to prevent
overflow?


1. Use small size?
2. Use Table and grids?


Note: when you float images and specially when the size of image is large,
you encounter the tiddler overflow issue, which image crosses the tiddler
border!

/Mohammad
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/886affb4-ff0f-4339-95c1-89eace407260%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
@TiddlyTweeter
2018-06-16 09:48:02 UTC
Permalink
Its best treated as a CSS issue, not a TW issue specifically.

The complication is that because the "tiddler box" size can change (e.g.
when you open right menu) something that looks perfect suddenly breaks. But
that just shows it is a design illusion that it is working universally.

For "mobile-first" design the sizing of the image should be via CSS using
relative sizing to its container to overcome that issue.
Post by Mohammad
This question may be redundant, but I could not find good stuff on that
What is the best practice for embedding float images in tiddlers to
prevent overflow?
1. Use small size?
2. Use Table and grids?
Note: when you float images and specially when the size of image is large,
you encounter the tiddler overflow issue, which image crosses the tiddler
border!
/Mohammad
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/6beda968-bdf3-42e2-8676-b39445c71682%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
BurningTreeC
2018-06-16 09:49:27 UTC
Permalink
Hi Mohammad,

you could try this in a stylesheet:

.tc-tiddler-body:before, .tc-tiddler-body:after {
content: "";
display: table;
}

.tc-tiddler-body:after {
clear: both;
}

.tc-tiddler-body {
zoom: 1;
}


it should force the tiddler to always wrap around floating elements, so that they are always inside
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/30fedca2-63c4-492b-b16f-c1ced316e94b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
@TiddlyTweeter
2018-06-16 09:58:17 UTC
Permalink
BTC & Mohammad

Just an FYI. I see this "breaking boundaries" a LOT in TiddlyWiki with
images or tables. I partly do so because my main desktop monitor is
Portrait, not Landscape. I think its more of an issue than most realise.
Post by BurningTreeC
Hi Mohammad,
.tc-tiddler-body:before, .tc-tiddler-body:after {
content: "";
display: table;
}
.tc-tiddler-body:after {
clear: both;
}
.tc-tiddler-body {
zoom: 1;
}
it should force the tiddler to always wrap around floating elements, so that they are always inside
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/5248811a-066c-4faf-a704-c0cf3088bad3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mohammad
2018-06-16 10:57:22 UTC
Permalink
This works!
How we can avoid using table but having float images and tables inside
tiddler boundary?
I have heard using Table for layout is obsolete!
Post by BurningTreeC
Hi Mohammad,
.tc-tiddler-body:before, .tc-tiddler-body:after {
content: "";
display: table;
}
.tc-tiddler-body:after {
clear: both;
}
.tc-tiddler-body {
zoom: 1;
}
it should force the tiddler to always wrap around floating elements, so that they are always inside
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/60c8a747-5648-4298-bfbf-d2118c58a877%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
BurningTreeC
2018-06-16 12:08:06 UTC
Permalink
Post by Mohammad
This works!
How we can avoid using table but having float images and tables inside
tiddler boundary?
I have heard using Table for layout is obsolete!
I doubt this is the same as using table for layouting
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/845afed8-0fd1-40e9-a0b5-a3dae642da80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mohammad
2018-06-16 12:34:44 UTC
Permalink
Okay! I am not very good at html and CSS just heard using table is not
recommended for layout!
But as you said, this seems not the same!

BTW your solution solved my BIG issue! :-)

Thank you!


One more question:

Do you recommend to use flexbox or other type of grid for tiddlers?
I mean I want to divide a tiddler body to different parts. This is used for
making slides with images and texts or comparison contents and like that
I am not sure if this is a good practice to style tiddlers with special
tags for making grids and layout


<Loading Image...>
Post by Mohammad
This works!
Post by Mohammad
How we can avoid using table but having float images and tables inside
tiddler boundary?
I have heard using Table for layout is obsolete!
I doubt this is the same as using table for layouting
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/eebada18-a152-44d1-a246-43bd03f2ab96%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
PMario
2018-06-17 17:35:02 UTC
Permalink
Hi,

You could try my floating-images plugin, that I posted at:
https://groups.google.com/d/msg/tiddlywiki/oO46RUPm4FI/L6Q-OzMXCAAJ ... I
didn't try it with big images. ... You could.

May be it contains some stuff, that may be useful for you.

have fun!
mario
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/507ce947-91f2-435c-9686-5c1a7d8a660d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mohammad
2018-06-17 19:54:06 UTC
Permalink
Thank you Mario!
One question: It is expected TW handles images without additional
adjustment! Why it has not these features?
Is there any special reason?

/Mohammad
Post by PMario
Hi,
https://groups.google.com/d/msg/tiddlywiki/oO46RUPm4FI/L6Q-OzMXCAAJ ... I
didn't try it with big images. ... You could.
May be it contains some stuff, that may be useful for you.
have fun!
mario
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/861cbd9a-8593-4032-924e-19cbfbe2131a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
PMario
2018-06-20 07:29:07 UTC
Permalink
Post by Mohammad
Thank you Mario!
One question: It is expected TW handles images without additional
adjustment! Why it has not these features?
Is there any special reason?
Hi,
Because we don't know, in which "context" images are implemented. Image
settings most of the time are use-case specific.

The default wikitext [img[image.jpg]] is created inside an html <img> ...
image element, without any classes added. So if we add a CSS setting to the
img-element, it would be assigned to every img-element on the page. ...
Which would probably be always wrong for the users usecase.

Some basic rules can be assigned by users with:
https://tiddlywiki.com/#Images%20in%20WikiText

have fun!
mario
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/6054628b-53fd-4724-a8f1-db4156c72d2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mohammad
2018-06-20 13:10:45 UTC
Permalink
Thank you for clarification!

Best
Mohammad
Post by PMario
Post by Mohammad
Thank you Mario!
One question: It is expected TW handles images without additional
adjustment! Why it has not these features?
Is there any special reason?
Hi,
Because we don't know, in which "context" images are implemented. Image
settings most of the time are use-case specific.
The default wikitext [img[image.jpg]] is created inside an html <img> ...
image element, without any classes added. So if we add a CSS setting to the
img-element, it would be assigned to every img-element on the page. ...
Which would probably be always wrong for the users usecase.
https://tiddlywiki.com/#Images%20in%20WikiText
have fun!
mario
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/86fbdf3f-0ec1-40da-9d75-9792d5b79dd2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mohammad
2018-06-17 20:10:09 UTC
Permalink
Mario,
The question was how to keep float image inside tiddler and have no
overflow!
The BTC solution worked!

/Mohammad
Post by PMario
Hi,
https://groups.google.com/d/msg/tiddlywiki/oO46RUPm4FI/L6Q-OzMXCAAJ ... I
didn't try it with big images. ... You could.
May be it contains some stuff, that may be useful for you.
have fun!
mario
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/bc1bb7c2-dd1f-49a0-b5ba-bbe0341c7ead%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mohammad
2018-06-17 20:12:21 UTC
Permalink
Mario
Your macro work great for image alignment!
/Mohammad
Post by PMario
Hi,
https://groups.google.com/d/msg/tiddlywiki/oO46RUPm4FI/L6Q-OzMXCAAJ ... I
didn't try it with big images. ... You could.
May be it contains some stuff, that may be useful for you.
have fun!
mario
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/9b4f5e85-89b2-4572-8aac-aaa45bdd06ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...