Jecxz
Jecxz

Reputation: 33

Best Way to Position ASP.NET Panels Side by Side

I'm looking for the best solution to position two or more containers side by side (left and right) as opposed to on top of eachother. I've looked up other posts and some say add style="float:left;" which is ok, others suggest adding style="display:inline;" which doesn't do anything. Is there a better suggestion?

Thank you in advance.

Upvotes: 0

Views: 7330

Answers (1)

Logard
Logard

Reputation: 1513

i use this kind of style very often:

      .rightCol
  {
    width: 60%;
    float: right;
    height: 30px;
  }

  .leftCol
  {
    width: 40%;
    float: left;
    height: 30px;
    text-indent: 10px;
  }

Define your own dimensions and you are good to go!

hope that helps!

Upvotes: 1

Related Questions