Google Groups Home
Help | Sign in
How to center 1 to n floating div boxes on a page?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
bay  
View profile
 More options Jun 30, 8:25 am
Newsgroups: comp.infosystems.www.authoring.stylesheets
From: bay <bay_...@yahoo.com>
Date: Mon, 30 Jun 2008 05:25:44 -0700 (PDT)
Local: Mon, Jun 30 2008 8:25 am
Subject: How to center 1 to n floating div boxes on a page?

I’m trying to create a page, so that if one has a widescreen monitor,
they will be able to see as many centered divs on a row as possible.
So I’m floating these div boxes left so they are not stacking
vertically, but horizontally. The problem is, they don’t center. Do
you know a way do to it with CSS.

Thanks


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dorayme  
View profile
 More options Jun 30, 9:04 am
Newsgroups: comp.infosystems.www.authoring.stylesheets
From: dorayme <doraymeRidT...@optusnet.com.au>
Date: Mon, 30 Jun 2008 23:04:19 +1000
Local: Mon, Jun 30 2008 9:04 am
Subject: Re: How to center 1 to n floating div boxes on a page?
In article
<3a9bb275-e071-4e17-afaf-99159c2ce...@y38g2000hsy.googlegroups.com>,

 bay <bay_...@yahoo.com> wrote:
> I¹m trying to create a page, so that if one has a widescreen monitor,
> they will be able to see as many centered divs on a row as possible.
> So I¹m floating these div boxes left so they are not stacking
> vertically, but horizontally. The problem is, they don¹t center. Do
> you know a way do to it with CSS.

No, you can't perfect centre with css as I understand you want. You can
get awfully close but.

But there is a way with some extra:

<http://tinyurl.com/2jcs5r>

--
dorayme


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bay  
View profile
 More options Jul 1, 9:56 am
Newsgroups: comp.infosystems.www.authoring.stylesheets
From: bay <bay_...@yahoo.com>
Date: Tue, 1 Jul 2008 06:56:18 -0700 (PDT)
Local: Tues, Jul 1 2008 9:56 am
Subject: Re: How to center 1 to n floating div boxes on a page?
Cool, it worked, but I had to fix the Javascript for it to work in IE
for some reason. Worked in FF fine.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dorayme  
View profile
 More options Jul 1, 7:07 pm
Newsgroups: comp.infosystems.www.authoring.stylesheets
From: dorayme <doraymeRidT...@optusnet.com.au>
Date: Wed, 02 Jul 2008 09:07:43 +1000
Local: Tues, Jul 1 2008 7:07 pm
Subject: Re: How to center 1 to n floating div boxes on a page?
In article
<db4c1dd2-ef59-4900-ba33-208c37371...@m73g2000hsh.googlegroups.com>,

 bay <bay_...@yahoo.com> wrote:
> Cool, it worked, but I had to fix the Javascript for it to work in IE
> for some reason. Worked in FF fine.

> > No, you can't perfect centre with css as I understand you want. You can
> > get awfully close but.

> > But there is a way with some extra:

> > <http://tinyurl.com/2jcs5r>

Feel free to give a URL so that your js could be traced by us all, it
might prove useful. I have clean forgot now if the mass of floats as a
whole centred properly in Internet Explorer, I think I would have
checked in IE6 at the time, but likely not in IE7? The javascript on
those pages at my URL is named in honour of its maker. And it was
fashioned probably with the details of my page in mind. So anything you
come up with that makes it more general would likely be helpful.

--
dorayme


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
BootNic  
View profile
 More options Jul 2, 1:21 am
Newsgroups: comp.infosystems.www.authoring.stylesheets
From: BootNic <bootnic.bou...@gmail.com>
Date: Wed, 2 Jul 2008 01:21:29 -0400
Local: Wed, Jul 2 2008 1:21 am
Subject: Re: How to center 1 to n floating div boxes on a page?

On Wed, 02 Jul 2008 09:07:43 +1000
dorayme <doraymeRidT...@optusnet.com.au> wrote in:
<doraymeRidThis-948361.09074302072...@news-vip.optusnet.com.au>

CSS version. I did not even try to make this work with older mozilla
type browsers. Not really the same but close, and no js.

[url] http://tinyurl.com/637o7j [/url]

--

BootNic                                        Wed Jul 2, 2008 01:21 am
  "I suppose they are vicious rascals, but it scarcely matters what they
  are. I'm after what they know."
  *Gibson-Sterling, The Difference Engine*

  signature.asc
< 1K Download

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dorayme  
View profile
 More options Jul 2, 1:58 am
Newsgroups: comp.infosystems.www.authoring.stylesheets
From: dorayme <doraymeRidT...@optusnet.com.au>
Date: Wed, 02 Jul 2008 15:58:02 +1000
Local: Wed, Jul 2 2008 1:58 am
Subject: Re: How to center 1 to n floating div boxes on a page?
In article <20080702012129.773f3...@bootnic.motzarella.org>,

This is interesting. Nice in my Safari 2 but there is no wrapping at all
in FF 2.

--
dorayme


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
BootNic  
View profile
 More options Jul 2, 12:00 pm
Newsgroups: comp.infosystems.www.authoring.stylesheets
From: BootNic <bootnic.bou...@gmail.com>
Date: Wed, 2 Jul 2008 12:00:14 -0400
Local: Wed, Jul 2 2008 12:00 pm
Subject: Re: How to center 1 to n floating div boxes on a page?

On Wed, 02 Jul 2008 15:58:02 +1000
dorayme <doraymeRidT...@optusnet.com.au> wrote in:
<doraymeRidThis-F64B4F.15580202072...@news-vip.optusnet.com.au>

> In article <20080702012129.773f3...@bootnic.motzarella.org>,
>  BootNic <bootnic.bou...@gmail.com> wrote:

[snip]

>> CSS version. I did not even try to make this work with older mozilla
>> type browsers. Not really the same but close, and no js.

>> [url] http://tinyurl.com/637o7j [/url]

> This is interesting. Nice in my Safari 2 but there is no wrapping at
> all  in FF 2.

FF2 does not support inline-block, though FF3 does. It would also fail
in most other mozilla browsers.

What I have confirmed it works in:

IE 6
IE 7
Safari 3
FF 3
Opera 9.5
Galeon 2.0.5

--

BootNic                                        Wed Jul 2, 2008 12:00 pm
  Happiness for the average person may be said to flow largely from
  common sense - adapting one-self to circumstances - and a sense of
  humor.
  *Beatrice Lillie (1898-1989) English comedienne*

  signature.asc
< 1K Download

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dorayme  
View profile
 More options Jul 2, 9:22 pm
Newsgroups: comp.infosystems.www.authoring.stylesheets
From: dorayme <doraymeRidT...@optusnet.com.au>
Date: Thu, 03 Jul 2008 11:22:10 +1000
Local: Wed, Jul 2 2008 9:22 pm
Subject: Re: How to center 1 to n floating div boxes on a page?
In article <20080702120014.2c33c...@bootnic.motzarella.org>,

Right, well that covers a lot of users.

(But, aside from this exercise, for a feature that is not essential,
namely centering a mass of floated thumbs, I am still happier with the
the original, employing some js and not inconveniencing anyone at all).

--
dorayme


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google