Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
149 views
in Technique[技术] by (71.8m points)

html - I am trying to set a col to the right

Well I am trying bootstrap 4 and playing around with col and row etc.... I want to float a part of the contact form to the right I tried justify-content-end float right and many styling ways none of them worked i am new with development and stuff so excuse me thanks this is my code

<div class="col-md-3">
    <div class="contact-info">
      <h2>Contact Us</h2>
      <h4>We would love to hear from you !</h4>
    </div>
  </div>
<style>.col-md-3{background: #EF7F1A; padding: 3%;height: 35em;border-top-left-radius: 0.5rem;border-bottom-left-radius: 0.5rem;} </style>

https://ibb.co/1n4ynmp


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Just put the rest of the form into a col-md-9 element and place that before the col-md-3 element in your HTML.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...