Jump to content

Side By Side DIV


hackalive

Recommended Posts

Well i don't use face book alot. But letting div's sit next to each other would require the float property. (as long as they fit in to the container that is holding them)

the css would be:
.myfloatingdiv{
float:left;
  width:200px;
  height:200px;
  border:2px solid red;
  margin:1px;
}

the html would be:

<div class="myfloatingdiv">bla1</div>
<div class="myfloatingdiv">bla2</div>
<div class="myfloatingdiv">bla3</div>

 

If you want to show the div's  above all other things (on a higher level on the z-axis) you require a position  absolute or relative or fixed, + a higher z-index.

 

I recommend to just google for the keywords in bold text and after you read a bit about it, play with it and when you need help with actual code you wrote post it in the css forum.

 

Hope this helps!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.