Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Re: centering a div

Thread Tools

Re: centering a div

David Graham
Posts: n/a

"DU" <(E-Mail Removed)> wrote in message
news:bea5vp$31g$(E-Mail Removed)...
> David Graham wrote:
> > I know this has been done to death but I never thought IE6 behaved as

> > as IE5 and IE5.5 as regards centering. The code below should not center

> > red bordered child div but it does. NN7 gets it right and leaves the red

> > left aligned. See screen shot of appearance in IE6
> >
> > whats going on? - you can see from code in screen shot that IE6 is not

> > quirk mode.
> >
> > Any thoughts please
> >
> > David
> >
> >
> >

> and see bug #3.
> If you remove text-align:center, which serve no purpose really in your
> external div, then all W3C web standards DOM-1 compliant browsers will
> (should?) render the page exactly the same.
> David, please avoid loading images like that: instead, just give an url
> otherwise people paying for traffic get to pay for considerable bytes
> even though they might not read at all this thread.
> DU
> --
> Javascript and Browser bugs:

Sorry about the image - will provide URL next time. My point, was I thought
text-align: center was only supposed to align inline elements like text or
images (in modern browsers in standard mode) - I was surprised that IE6 made
the same mistake as older versions i.e. IE5.5 or IE5

or am I not understanding this properly?

Reply With Quote

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
centering <div> in <TD> shank HTML 3 07-27-2012 01:38 PM
<div ... /> and <div ...></div> K Viltersten ASP .Net 4 03-31-2009 07:33 PM
centering div within a div Steve Richter ASP .Net 4 07-16-2007 11:27 PM
NS/FF don't change div offsetWidth when div innerHTML is added toand div becomes wider mscir Javascript 3 06-26-2005 04:04 PM
Q: Div A inside Div B is larger than Div B Dwayne Madsen Javascript 1 06-01-2005 03:02 PM