Log in

View Full Version : aligning divs



chechu
09-09-2007, 06:44 PM
Hey guys,
I have a site devided in divs. THis is how it looks like, where + is an iframe, and = a div (http://www.hetbestevoordeel.be)


==++
==++
====
====

When I want to place a div next to the iframe, it looks like this, leaving the space next to the iframe empty(0).


==++00
==++00
======
======

But this what I need, where the divs go around the iframe.


==++==
==++==
======
======

Hopefully this is clearly explained, and can someone help me how to get the alignement correctly. Thanks !
You can find the stylesheets here: http://www.hetbestevoordeel.be/style/stylesheet.css

chechu
09-18-2007, 08:00 AM
None can help me with this ?

TimFA
09-18-2007, 04:55 PM
Does iframe have the float property in CSS? I don't use iframes, but have you tried using float left then using one big DIV to contain them all? If thats what your doing, then I'm clueless. Just trying to give a little help if I can.

chechu
09-19-2007, 01:15 PM
don't really see what you mean.

boogyman
09-19-2007, 01:27 PM
having the iframe in the middle of 2 lines of text could get very very confusing unless it will never have the possibility of containing anything but a none textual media type, image / movie clip, and thus should be avoided at all costs, as it breaks convention.

sirmikey1
09-23-2007, 08:53 PM
I would try adding display inline to
see what happens before trying float.

Besides iframes, you might try using
object tags instead.
http://www.w3schools.com/media/media_object.asp

sm

chechu
09-24-2007, 08:20 AM
What's the difference between the object tags and iframes ?
I now use iframes because the content around it takes a while to load.
I would try adding display inline to
see what happens before trying float
like this ?

inline: top;

boogyman
09-24-2007, 01:04 PM
display: inline and
vertical-align: top

two different tags. The first will create a horizontal list, while the latter will just attempt to move all of the text to the very top of the element, rather then centering it vertically.

TimFA
09-24-2007, 11:43 PM
Just to clarify what I mean.
I---------I
I ==++== I
I ==++== I
I ====== I
I ====== I
I---------I

The outline is the DIV, then give it a maximum forced height and width, so that it might force it to align. Idk.