Register  |  Login




Advertisement

Start Your Own Q&A Site

Create your own Q&A site easily, allowing you to quickly grow a new community around any subject matter or generate new organic traffic for your existing website.

Question

Status: Closed Points: 125 Time: 00:31 - Apr 20, 2007  

multani.sarbjit

How to position dynamic floating column?

Dear All,


in my recent project i need to display dynamic data..(coming from data base).

div containing these data suppose to come in multiple column if enough width is available..(because UI is of liquid width).

i have assigned float: left do divs needed to come into multiple columns.

and its working fine..but only if blocks in a row r of same height.

suppost float:left creates two columns.
then 1st and 2nd div'll come in a row and 3rd row'll start from next row.

in this case if height of 1st and 2nd div is different then next row will start where height of 1st and 2nd div will end. in this case 2nd row will take extra padding or spacing from top which is not required.

in short i want to create multiple column data presentation which is not needed to come in multiple rows.

i just want equal spacing div to div vertical or horizontal.

to make it in more contrast.

suppose 1st div's height is 100px, 2nd div's height is 70px,

then 3rd div will go under 2nd div(2nd column).

height of 3rd div is 100px.

4th div will com under 1st div(1st column) but its row will start where height of 3rd div will end. so 4th div will have extra spacing of 70px on top with 1st div.

..i think its enough to describe my problem..

it is very critical situation and help is needed in urgent.

thanks in advance.

Categories

Answer Discussion
Tutorials

 

danmacryan

Date:: May 04, 2007

Time:: 10:15

Is there a reason you can't use tables?
Tables were originally designed for displaying data, and were then "improperly" used as layout for many years. Now there is a new Tableless Layout trend that sometimes gets taken too far and tables are deemed unusable for any reason.

Without seeing code examples, it looks like you need to work on clearing some of your floats, and playing with margins to get all the math to work out. Or simply making everything the same height.
Usually simplifying the layout will fix many problems.

admin

Date:: Jun 25, 2007

Time:: 06:16

multani.sarbjit, please close this question and distribute the points.
If you didn't get a solution to your problem or you found it yourself, please leave a comment here to let the experts know.
Thanks,
Quomon Admin

Question Answered

This question has been closed, and points have been rewarded to the following experts:


danmacryan: 125

You're welcome however to comment or give additional information or if you wish, you have the ability to write a Tutorial in the Tutorial Area.

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

No tutorials have been submitted yet. Want to be the first?

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

Ask a Question

Have a new question? Ask!

You have 100 characters to use



Top Experts

View More

Rank

Expert

Points

1.

nidhi

10354

2.

oracleofDelphi

6493

3.

rcastagna

5596

4.

LAGM

4848

5.

PeterNZ

3487

6.

gonzalo

2840

7.

Mason

2770

8.

jgivoni

2303

9.

xarcus

1820

10.

Anpanman

917

Become an Expert

Register today to share your knowledge with the community and be recognized and rewarded for your contributions.


Register Here




"Psst, Quomon is a great site. Pass it on."     Tell a Friend  |   Link To Us  |   Save to Delicious  |   Digg! Digg it



Language Options

English:

www.quomon.com

Español:

www.quomon.es