I think you will need to add a float attribute to both divs for them
to be positioned alongside each other.
It depends on how you want them to look, but you could have them both
float to the left or right, or one to the left and one to the right.
Just remember that the next html object needs to clear both floats.
This may be useful to you.
http://css.maxdesign.com.au/floatutorial/tutorial0801.htm
will clark // graphic design
www.willclarkdesigns.com/
will@willclarkdesigns.com
559 | 584 6785
559 | 380 2731 [ facsimile ]
On Jun 7, 2006, at 3:34 PM, Claus Guttesen wrote:
> Hi.
>
> I want to display some related information in two columns. Originally
> I wanted to use frames and googling led me to
> http://lists.rubyonrails.org/pipermail/rails/2006-May/037972.html
> which suggest divs instead.
>
> I modified my code to this:
>
> <body>
> <div style=''width: 300px; overflow: scroll''>
> <%= render :partial => "col1" %>
> </div>
>
> <div style=''width: 300px; overflow: scroll''>
> <%= render :partial => "col2" %>
> </div>
> </body>
>
> But col2 is placed below col1, not next to each other. I tried to add
> - (minus) to -%> in col1 but it did not make any difference.
>
> _col1.rhtml and _col2 are link_to_remote ajax-calls.
>
> regards
> Claus
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060607/9bcffd6f/attachment.html