CSS help, dynamic Divs

C++, C#, Java, PHP, ect...
Post Reply
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

CSS help, dynamic Divs

Post by hallsofvallhalla »

okay i need some help form the css gurus

i am dynamically creating div tags to store locations. if you notice in my example the tags are going straight down and not left to right. I need them to go across the maparea div then drop to another line.

http://indie-resource.com/projectbattle/index.php

Any ideas?

here is code
Fixed!
User avatar
Chris
Posts: 1581
Joined: Wed Sep 30, 2009 7:22 pm

Re: CSS help, dynamic Divs

Post by Chris »

float: left;
Fighting for peace is declaring war on war. If you want peace be peaceful.
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: CSS help, dynamic Divs

Post by hallsofvallhalla »

haha damn you!

I tried float left in the javascript side but not in the css section.

Thanks you!
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: CSS help, dynamic Divs

Post by hallsofvallhalla »

User avatar
rockinliam
Posts: 466
Joined: Sun Jun 07, 2009 11:26 am

Re: CSS help, dynamic Divs

Post by rockinliam »

Or if you wanted to get really adventurous, you could try throwing in a few "float:right;" 's !
Skillset: C/C++, OpenGL, C#, Lua, PHP, MySql, Web Dev etc.
Website: https://liam-griffiths.co.uk/
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: CSS help, dynamic Divs

Post by hallsofvallhalla »

i know i can't believe I missed something so simple :roll:
User avatar
rockinliam
Posts: 466
Joined: Sun Jun 07, 2009 11:26 am

Re: CSS help, dynamic Divs

Post by rockinliam »

It happens to all of us. I like to keep a few references nearby to make sure that what i am doing is correct.
Skillset: C/C++, OpenGL, C#, Lua, PHP, MySql, Web Dev etc.
Website: https://liam-griffiths.co.uk/
Post Reply

Return to “Coding”