Semantic-ui: [Image] Add text overlays

Created on 11 Dec 2015  路  14Comments  路  Source: Semantic-Org/Semantic-UI

is it possible to do this?

Where the text shows up above the image. Thanks

Enhancement

Most helpful comment

馃憤 A pretty common pattern so would be nice to have this coded in by default.

All 14 comments

Have you found a way to do this @elfassy? Looking for the same thing.

@kenhkelly yes using regular css. Either negative margin or absolute positioning should work with image as background.

I figured as much. Would be nice to have that added to the .ui.image element for simplicity.

馃憤 A pretty common pattern so would be nice to have this coded in by default.

@elfassy Could please tell us more about how you did it? Any idea how you could accomplish the same with the React Semantic UI 'Image' Component?

+1 please

The "css way" would look something like this:

<div className="ui fluid image">
    <img src={url}/>
    <div style={{position: 'absolute', bottom: 0, width: '100%', height: 'auto'}}>TEST</div>
</div>

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

+1

I am having the same problem :(

Why has this not been addressed yet? This is such a common thing to have in a UI library... Has anyone found an easy and sound workaround on this issue yet? The CSS way wont cut it for what I am doing currently.

Why has this not been addressed yet?

Feel free to open a PR.

Created a PR to add caption support: https://github.com/Semantic-Org/Semantic-UI/pull/6621

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kntmrkm picture kntmrkm  路  3Comments

playgithub picture playgithub  路  3Comments

miguelmota picture miguelmota  路  3Comments

guilhermeblanco picture guilhermeblanco  路  3Comments

zhaoyao91 picture zhaoyao91  路  3Comments