Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old March 8th, 2006, 09:55 PM
Sebastian Gohres
Guest
 
Posts: n/a
Default <div> positioning

Hi!

I want three DIV-Container side by side in another DIV-Container:
____________________________________
|text text text text text text text |
| __________ __________ __________ |
||__________||__________||__________||
|____________________________________|

I have some play around like

<div style="width: 500px;">
<div style="width: 33%; position: relative; "></div>
<div style="width: 33%; position: relative; "></div>
<div style="width: 33%; position: relative; "></div>
</div>

But the three Container are one below the other:

____________________________________
|text text text text text text text |
| __________ |
||__________| |
||__________|________________________|
|__________|


If I add the attribute "float" the DIV Container are side by side but no
longer in the surrounding DIV:

____________________________________
|text text text text text text text |
|____________________________________|
__________ __________ __________
|__________||__________||__________|

What's wrong? I try to design with DIVs now, in the past I have done it
with tables.

Thanks four your help and sorry for my english :)

S. Gohres
  #2  
Old March 8th, 2006, 11:25 PM
Jim Moe
Guest
 
Posts: n/a
Default Re: <div> positioning

Sebastian Gohres wrote:[color=blue]
>
> I want three DIV-Container side by side in another DIV-Container:
>[/color]
<http://www.positioniseverything.net/>
<http://css.maxdesign.com.au/>

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
  #3  
Old March 8th, 2006, 11:35 PM
Sebastian Gohres
Guest
 
Posts: n/a
Default Re: <div> positioning

Jim Moe schrieb:[color=blue]
> Sebastian Gohres wrote:
>[color=green]
>>I want three DIV-Container side by side in another DIV-Container:
>>[/color]
>
> <http://www.positioniseverything.net/>
> <http://css.maxdesign.com.au/>[/color]

Thanks for your fast and qualified answer.
Two new links for my bookmarks :)
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles