Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > layout

Reply
Thread Tools

layout

 
 
King of Red Lions
Guest
Posts: n/a
 
      12-14-2004
Hi, is there anyway of putting two divs side by side without using the
float attribute? Many thanks.
 
Reply With Quote
 
 
 
 
Neal
Guest
Posts: n/a
 
      12-14-2004
King of Red Lions:

> Hi, is there anyway of putting two divs side by side without using the
> float attribute?


The position property works too. But you cannot reliably put another div
below two absolutely positioned side-by-side divs. Otherwise it's in some
ways better than a float.
 
Reply With Quote
 
 
 
 
rf
Guest
Posts: n/a
 
      12-14-2004
King of Red Lions

> Hi, is there anyway of putting two divs side by side without using the
> float attribute? Many thanks.


Begs the question: Why?

--
Cheers
Richard.


 
Reply With Quote
 
Steve Pugh
Guest
Posts: n/a
 
      12-14-2004
On Tue, 14 Dec 2004 11:22:57 +0000, King of Red Lions
<thaynes/no_spam/@gawab.com> wrote:

>Hi, is there anyway of putting two divs side by side without using the
>float attribute?


Use the position property.
Use display: table-cell (and/or other table display options).
Use display: inline-block (or inline-table).
Nest them inside an HTML table.
Use frames.

Each has pros and cons. Some of the cons can be quite major.

It often happens that float isn't the best choice but is often the
"least worst" choice.

Steve

 
Reply With Quote
 
Spartanicus
Guest
Posts: n/a
 
      12-14-2004
King of Red Lions <thaynes/no_spam/@gawab.com> wrote:

>is there anyway of putting two divs side by side without using the
>float attribute?


float is a css *property* (not attribute)

display:table-cell
display:inline-table
display:inline-block

Browser support varies.

Provide us with information on what you are actually trying to do for
more meaningful help.

--
Spartanicus
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Choosing Layout: Css-Layout or Table-Layout hpourfard@gmail.com ASP .Net 1 06-19-2006 10:06 AM
CSS Layout question - how to duplicate a table layout with CSS Eric ASP .Net 4 12-24-2004 04:54 PM
Oppinion regarding grid layout vs flow layout NWx ASP .Net 4 02-19-2004 08:56 PM
Converting from grid layout to flow layout. RobertH ASP .Net 1 11-04-2003 12:43 AM
DataList inside a Grid Layout Panel (<DIV>) item layout problem Rick Spiewak ASP .Net 3 08-26-2003 04:22 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57