beta.blog

Programming

CSS: Display two div’s next to eachother (left: dynamic, right: fixed size)

by on Jan.03, 2017, under Programming

Result:

divB
divA

HTML Code

<div id="container">
    <div id="divB">divB</div>
    <div id="divA">divA</div>
</div>

CSS Code

#divB
{
  float:right;
  border:1px solid red;
  width: 100px;
}
#divA
{
  border:1px solid aqua;
  display: flex;
}
Leave a Comment : more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!