Log in

View Full Version : Coding in Expandables, I've managed to do it but..



Tim.
21-03-2008, 02:26 PM
basically,

Thanks to the tut on habboxforum, i've coded my first expandable box lol,
www.hotelnav.co.uk/coding (http://www.hotelnav.co.uk/coding) as you can see there, but really im a bit confused as to how i add boxes around it like here www.hotelnav.co.uk/site/home/home.htm (http://www.hotelnav.co.uk/site/home/home.htm)

if you could help me greatfully appreciated, or if anyone can give me a person tutorial, i would be able to pay.

Thanks very much
Tim.

Thread moved from design & development by --ss-- (Forum Super Moderator): Please post in the correct section ;).

kk.
21-03-2008, 02:31 PM
well done.

well, you would need to add some attributes to the divs:

float: left; (floats a box to the left, do this to the boxes you would like next to each other)
float: right; (same as above really but floats the the right)
clear: both; (this will place any box under the two the boxes taht are floating_
clear: left; (this will only go under floating left boxes)
clear:right; (same as above but right)

not very clear i know. Just google 'how to use float' and it should help

--ss--
21-03-2008, 02:31 PM
You will ahve to make another box just like the one you have in the exact same way (But with different div id's obviously) and then use float tags in the box's CSS to position them , eg , you would add float: left; to the container of the first box and float: right; to the container of the secound box , this way the first will go to the left and the secound will go to the right , or you can have it as bother float: left; so both are floated to the left right nect to each other and can use the margin tag's to make a margin space inbetween the two ;).

Want to hide these adverts? Register an account for free!