Forum Discussion

rwj6001's avatar
rwj6001
Copper Contributor
Jul 17, 2024

Unable to make columns in new web part

I'm creating a new web part and using what I think to be fairly simple coding to create columns in a web part and it just doesn't work. I've tried it with "no framework" and "React" framework options and it displays the same. Each line above one another instead of next to one another, etc. The code below is from React framework.

 

<div className="ms-Grid" dir="ltr">
  <div className="ms-Grid-row">
    <div className="ms-Grid-col ms-sm6 ms-md4 ms-lg2">Aaaaaaa aaaaaaaaaaaa</div>
    <div className="ms-Grid-col ms-sm6 ms-md8 ms-lg10">Bbbbbbb bbbbbb bbbbbbbb</div>
  </div>
</div>

 

What am I missing here?

 

I'd appreciate any assistance.


No RepliesBe the first to reply

Resources