PDA

View Full Version : placing 'boxes'


looka
01-12-2006, 05:46 PM
i would like to place some 'boxes' in a table - like pictures or text. so, if i would place them one after another, they would continue from left to right and then to then next row.


is this possible?


thnx!

ronaldb66
01-13-2006, 07:47 AM
Yep! If you float all your boxes left, they will behave sort of like you decribed.
You'll have to give us a bit, or rather a lot, more info though for us to give any specific suggestions.

looka
01-13-2006, 10:21 AM
well... i have a cell with defined width and height, and in it i'd like to place those 'boxes'. in a box would be a picture and a little bit of text.

i am wondering what kind of html tag should i use for those box?
tables and divs, as long as i know, do not continue from left to right, but each in new line..

Tynan
01-13-2006, 11:33 AM
google 'float' as a css style for the divs, that's what it does

ronaldb66
01-13-2006, 02:08 PM
You could mark up your boxes using divs, with the img and a p for the text; more involved semanticists might suggest using a definition list with the dt for the image and a dd for the description. There likely are more possible solutions yet.

It doesn't really matter: CSS can control the presentation in either case.

looka
02-03-2006, 12:51 PM
huh... a problem appears when the content overflows my dimensions (100x100px). boxes in that case are not placed in line, but some places missing..

take a look (http://www.zto-kr.org/index.php?stran=galerije&style=1&gid=25&startpri=192&sub=galerije&edit=page)

Bogey
02-04-2006, 02:05 AM
Cont you use <divs>?

looka
02-05-2006, 03:37 PM
does <divs> exist? or you just meant <div>s:)

anyway, i use <div>s, and with style assigned floating:left. there is no problem if the content is smaller or equal to height(defined in css, height:100px).
if the content is higher (lets say box 'A'), the the box, that should have been shown under 'A' is shown one line below the expected (empty space).
just check the link i've given.