Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > side-by-side divs

Reply
Thread Tools

side-by-side divs

 
 
Sam Takoy
Guest
Posts: n/a
 
      08-25-2010
Hi,

This question has been asked before many times, but I'm yet to find a
solution that works on Chrome/FF/IE.

How does one display block objects, such as divs or tables, in
horizontal fashion? What's the robust solution? Combinations of floats
and clears do not seem to work in IE.

Thanks,

Sam
 
Reply With Quote
 
 
 
 
Jonathan N. Little
Guest
Posts: n/a
 
      08-25-2010
Sam Takoy wrote:
> Hi,
>
> This question has been asked before many times, but I'm yet to find a
> solution that works on Chrome/FF/IE.
>
> How does one display block objects, such as divs or tables, in
> horizontal fashion? What's the robust solution? Combinations of floats
> and clears do not seem to work in IE.


What have you tried? In other words, if you which help provide a URL to
what you have tried that "does not work" for you.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
 
 
 
Sam Takoy
Guest
Posts: n/a
 
      08-25-2010
On 8/25/2010 11:39 AM, Jonathan N. Little wrote:
> Sam Takoy wrote:
>> Hi,
>>
>> This question has been asked before many times, but I'm yet to find a
>> solution that works on Chrome/FF/IE.
>>
>> How does one display block objects, such as divs or tables, in
>> horizontal fashion? What's the robust solution? Combinations of floats
>> and clears do not seem to work in IE.

>
> What have you tried? In other words, if you which help provide a URL to
> what you have tried that "does not work" for you.
>


Everything here:

http://www.google.com/search?hl=en&c...i=&safe=images
 
Reply With Quote
 
Neredbojias
Guest
Posts: n/a
 
      08-25-2010
On 25 Aug 2010, Sam Takoy <> wrote:

> Hi,
>
> This question has been asked before many times, but I'm yet to find a
> solution that works on Chrome/FF/IE.
>
> How does one display block objects, such as divs or tables, in
> horizontal fashion? What's the robust solution? Combinations of
> floats and clears do not seem to work in IE.


I don't have any trouble. But then I don't support the obsolete ie6,
either, and ie7 sometimes needs "conditionals". Anyway, you might wish
to try the styling "display:inline-block;" and make hacks for older
browsers as necessary.

--
Neredbojias

http://www.neredbojias.org/
http://www.neredbojias.net/
 
Reply With Quote
 
dorayme
Guest
Posts: n/a
 
      08-25-2010
In article <i53b1i$aoc$>,
Sam Takoy <> wrote:

> Hi,
>
> This question has been asked before many times, but I'm yet to find a
> solution that works on Chrome/FF/IE.
>
> How does one display block objects, such as divs or tables, in
> horizontal fashion? What's the robust solution? Combinations of floats
> and clears do not seem to work in IE.
>


<http://netweaver.com.au/floatHouse/page12.php>

should be ok in IE? And if you read a few of the other pages, you
might get to know some of the tricks and pitfalls of doing things
with floats. It's fun, so roll up your sleeves. Here are some
more still kicking about on servers, I *think* these worked even
in IE6:

<http://dorayme.netweaver.com.au/alt/simpleTwoCol.html>

<http://dorayme.netweaver.com.au/alt/floatStopDrop.html>

<http://dorayme.netweaver.com.au/sideBySide.html>

This is a bit more obscure but some block elements see to be side
by side:

<http://dorayme.netweaver.com.au/alt/dt_Inline.html>

As for two tables side by side, same principles really as you see
in the above. Just be careful with tables not to over confidently
specify their widths because tables don't hear too good on such
things. Here is a couple of pairs of tables, they are just
sketchy but should give you an idea:

<http://dorayme.netweaver.com.au/sideBySideTables.html>

Notice the ugly for IE eyes only (conditional commented) div in
there (probably only needed for IE6 but I just left it for all IE
to show a proper and healthy contempt). But if you leave it out,
it will be good for most modern browsers.

--
dorayme
 
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
swapping divs -- when divs NOT positioned absolutely.. maya Javascript 4 11-16-2007 05:11 PM
Managing divs within divs.... rich HTML 0 02-02-2006 07:38 PM
Nested DIVs - is there a better way? Guadala Harry ASP .Net 2 10-26-2004 07:30 PM
asp.net and divs mikieg_99 ASP .Net 6 07-30-2004 01:19 PM
Re: DIVs and overflow scroll bars S. Justin Gengo ASP .Net 0 07-18-2003 02:18 PM



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