I have no idea how to add img src next to a li so it will show the image next to the text and i wasted 30 minutes of my life trying to find a way, so please, i think this isnt a hard one for you guys, please tell me where/how to place and type it:

.container
    .row

        .ul.list-group

            .li
            .list-group-item Samsung Galaxy S5

            .li
            .list-group-item Samsung Galaxy S4

            .li
            .list-group-item Samsung Galaxy S3

            .li
            .list-group-item Samsung Galaxy S2

            .li
            .list-group-item Samsung Galaxy S1

            .li
            .list-group-item Samsung Galaxy S0

This is my current Jade Code, Thanks for helping out!

有帮助吗?

解决方案

Do you mean like this?

.container
    .row
        ul.list-group
            li.list-group-item
                | Samsung Galaxy S5
                img(src='http//myUrl')
            li.list-group-item
                | Samsung Galaxy S4
                img(src='http//myUrl')

其他提示

Try this:

.container
    .row
        ul.list-group
            li
                img(src='url-to-page')
                .list-group-item Samsung Galaxy S5

            li
                img(src='url-to-page')
                .list-group-item Samsung Galaxy S4

            li
                img(src='url-to-page')
                .list-group-item Samsung Galaxy S3

            li
                img(src='url-to-page')
                .list-group-item Samsung Galaxy S2

            li
                img(src='url-to-page')
                .list-group-item Samsung Galaxy S1

            li
                img(src='url-to-page')
                .list-group-item Samsung Galaxy S0

. is a class notation, and if you want HTML tags, use it without .

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top