Forum Moderators: not2easy

Message Too Old, No Replies

Div alignment question.

         

zshadow

7:09 am on Sep 3, 2006 (gmt 0)

10+ Year Member



Have a simple question on div alignment for a tableless site.

Basically I have one div with links to the left and right. I used 2 span classes with float: left and the other with float: right to accomplish this. Is it the best way to tackle this situation? The alignment looks the same in both IE and Firefox so seems to be ok compatiblity wise, I'm just not sure if its best to use the float property to do this.

Enlasenda

11:27 pm on Sep 5, 2006 (gmt 0)

10+ Year Member



The simple and clear way is the best way. If your css code works I think you should leave it. Anyway you can try to alignment your divs using margin properties: margin-top, margin-right, margin-bottom, margin-left.
A much harder way is to use position property, but I think float property is the best choice.