Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Semantic UI Card with image on the left

Is it possible using Semantic UI Card have the image on the left? The documentation shows example where the image is always on the top. What i want to obtain is something like the Semantic UI Item (but of course i want use cards), like this:

enter image description here

What i want to obtain is something like this:

enter image description here

As you can see the image is on the left and it is something similar to a Semantic UI card.

like image 222
Andorath Avatar asked Nov 11 '17 18:11

Andorath


People also ask

Is Semantic UI abandoned?

Semantic UI is not dead. There is a community that wants to keep it going. I think it would be helpful to create an RFC repo to discuss future direction of the project and the planning of the implementations of the decisions we make.

Is Semantic UI customizable?

Semantic provides several ways to modify UI elements. For big projects that rely on building a personalized brand-aware visual language, site themes allow you to modify the underlying variables powering Semantic UI, as well as specify alternative overriding css.

How do you center text in semantic UI?

To change the text alignment of the semantic UI card, we use the “center/left/right aligned” class in the section of the card where we want the alignment.

What font does semantic UI use?

Semantic includes a complete port of Font Awesome 5.0. 8 designed by the FontAwesome team for its standard icon set.


1 Answers

The best you can do with semantic components would be this:

<div class="ui card" style="max-width: 100%; min-width: 100%;">
    <div class="content" style="padding: 0;">
        <div class="ui items">
            <div class="item">
                <div class="ui medium image">
                    <img src="https://semantic-ui.com/images/wireframe/image.png">
                </div>
                <div class="content" style="padding: 1rem;">
                    <a class="header">12 Years a Slave</a>
                    <div class="meta">
                        <span class="cinema">Union Square 14</span>
                    </div>
                    <div class="description">
                        <p></p>
                    </div>
                    <div class="extra">
                        <div class="ui label">IMAX</div>
                        <div class="ui label"><i class="globe icon"></i> Additional Languages</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="extra content">
        <a>
            More Info
        </a>
    </div>
</div>

I have changed the padding on the content but that's the only custom CSS used.

To get it to look exactly like your image you will need to make your own component/style it your self.

like image 156
hami Avatar answered Sep 28 '22 09:09

hami