12

I need segment with text(inside <p> ), and button on next row on the right

I try next markup, but it seems not working properly( button overflow segment border):

<div class="ui container">
    <div class=" ui segment">
        <p> Some Text.</p>
        <button class="ui right floated primary button"> Some Action</button>
    </div>
</div>

How to do it, using semantic-ui framework?

1
  • 4
    have you tried defining the <p> as ui left floated? Commented Jun 24, 2016 at 19:22

1 Answer 1

22

I found an answer:

In addition to using right floated on the button, also change the segment class from ui segment to ui clearing segment.

Sign up to request clarification or add additional context in comments.

2 Comments

'ui clearing segment' only changes the transparency of the segment, it does not make the segment right aligned as indicated in your original question. But 'ui right floated primary button' works.
@SaeedD. add this class to segment, not to button

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.