я создал следующее:CSS плавать копию правой
И я хотел бы верхнюю часть «независимых», чтобы быть более вправо, как в разделе «интерактивный». Я попытался плавать: правильно; но это неверно.
Мой код:
.badgesblock{style: 'padding-left: 30px;'}
.independent
= image_tag 'independent.png', style: 'float:left;'
.independentcopy{style: ''}
%p{style: 'font-weight: bold;'} Independent
%p{style: 'width: 450px;'} We’re the only independent user review site for wedding suppliers. Businesses can’t vet reviews on their listing – that’s why your customers trust us.
%br
%br
.verified
= image_tag 'verified.png', style: 'float:right;'
%p{style: 'font-weight: bold;'} Verified
%p{style: 'width: 450px;'} All reviews and reviewers are verified. Each user fills in their personal details and verifies their profile with a wedding date and a picture. The result is an authentic, trustworthy review system.
%br
%br
.interactive
= image_tag 'interactive.png', style: 'float:left;'
.interactivecopy{style: 'float:right;'}
%p{style: 'font-weight: bold;'} Interactive
%p{style: 'width: 450px;'} Passive display advertising has limited impact. We provide a unique opportunity to actively engage with potential customers and showcase the great service at the heart of your business.
Что я упускаю в CSS?
Вы ответили на свой вопрос. Используйте точный css, который вы использовали для своего класса '.interactive', и все должно быть хорошо. Однако вы не должны использовать css в html. – Vlad
Когда я ставлю float: прямо в нем не работает. Это то, что вы имели ввиду? – tessad
(Я переведу css. Хорошая точка) – tessad