www.webdeveloper.com
Results 1 to 2 of 2

Thread: 2 divs on the same line: alternatives to 'float' and tables?

  1. #1
    Join Date
    Jul 2004
    Posts
    4

    2 divs on the same line: alternatives to 'float' and tables?

    Hi, a very straight forward question:
    I need to put 2 divs on the same line (meaning 1 beside the other). The obvious - and this is what I have done so far - is to use the css 'float' attribute, like 'float: left'. An alternative would be to use a table, and put the 2 divs in 2 adjacent td.
    Now I have the problem (would be too long to explain, so just believe me), that I can't use 'float', and I am not allowed to use tables for layout purposes. So the question is: are there any other ways to accomplish this task, other than using floats and tables?

    Thanks for any help/suggestions

  2. #2
    Join Date
    Jul 2004
    Location
    Sendai, Japan
    Posts
    1,273
    Absolute positioning

    [edit]Sometimes the explanation - rather than 'just believe me' can come in really handy. I'm guessing this thread on another forum is about the same thing? I think you're answer's there.
    Having said that - it would be better if you showed people the page - then it's easier to help you.[/edit]

    [note-to-mods]Can't you do something with edit tags?[/note-to-mods]

    [edit]...and maybe 'note-to-mods' tags too.[/edit]
    Last edited by BonRouge; 08-04-2005 at 10:55 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles