Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / August 2007



Tip: Looking for answers? Try searching our database.

CSS layout having problems in ie6

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Terry - 31 Aug 2007 07:28 GMT
Hi again folks.

I finally got my page to look the way I wanted in IE7, Netscape and
Firefox when I decided to try it in IE6. Unfortunately, my right
content moved directly below my left content.

I don't know why this is occurring.

Does anybody have any suggestions?

The url to my site is http://restaurant.atwebpages.com

--
Thanks,
Terry
John Hosking - 31 Aug 2007 09:01 GMT
> Hi again folks.
>
[quoted text clipped - 3 lines]
>
> I don't know why this is occurring.

I believe I do. It's called the border box model, an implementation
which differs between IE and other UAs.

> Does anybody have any suggestions?

Well, your doctype appears to avoid Quirks mode, which I would have
thought would avoid the problem. But there it is in IE, all because (I
making a bold claim here) of two pixels. You have

<div id="containerfx">
 <div id="container">
  <div id="contentcontainer">
   <div id="contentleft">floats next to div#contentright
   </div>
   <div id="contentright">floats next to div#contentleft
   </div>
  ...

and as CSS
#contentleft {
   float:left; width:239px; ... }
#contentright {
   float:left; width: 537px; border-left: 2px dotted #CCCCCC; }
#contentcontainer {
   width: 100%; margin-top: 10px; margin-bottom:0; }
#container {
  width: 778px; margin:auto; border: 2px solid #CCCCCC; }

with paddings and margins for the above otherwise 0.

#contentleft + #contentright next to each other are 776px, which ought
to fit into #container's 778px. It does in FF, which adds the border for
#container to its *outside*. But IE appears to be adding the border
(2+2=4, as you probably know ;-) ) to the *inside* (although I thought
this only happened in Quirks mode). 778 - 4 leaves 774px, too small for
both divs side by side. So #contentright drops down.

There could be something else adding in here which I don't see, but
that's my theory. Could just be the three-pixel shift (q.G.). You can
try adding two or three or five px to #contentright, or just don't give
it any particular width.

You see the trouble with pixel-perfact layouts...

> The url to my site is http://restaurant.atwebpages.com

Looks nice, Terry.

Signature

John
Pondering the value of the UIP: http://improve-usenet.org/

Steve Robinson - 31 Aug 2007 09:58 GMT
> It's called the border box model, an implementation which differs between
> IE and other UAs.

Yes I'm sure you are right.

>> The url to my site is http://restaurant.atwebpages.com
>
> Looks nice, Terry.

It does - well done! You might be sub-optimal for search engines (and
accessibility!) though as your headings are all in images. Use H1 for the
main heading and H2 for all the secondary headings and then use CSS to
substitute the images. Look at CSS Zen Garden to see how it's done.

While you are at it you could use CSS to set the bullets for the links at
the top.

Steve.
Terry - 31 Aug 2007 14:23 GMT
On Aug 31, 4:58 am, "Steve Robinson"
<stephen.p.robinson.butnotthis...@ntlworld.com> wrote:

> It does - well done! You might be sub-optimal for search engines (and
> accessibility!) though as your headings are all in images. Use H1 for the
> main heading and H2 for all the secondary headings and then use CSS to
> substitute the images. Look at CSS Zen Garden to see how it's done.

I will look into that method.
Thanks for the compliments guys.

> While you are at it you could use CSS to set the bullets for the links at
> the top.

I did try to use CSS to set the bullets for the links at the top.
Unfortunately, the bullet height only reached the height of the text
beside it.  Perhaps to remedy this problem I will have to give the div
containing the ul a height.

Is that correct?

--
Thanks,
Terry
dorayme - 31 Aug 2007 21:11 GMT
In article
<1188541695.516530.270740@x40g2000prg.googlegroups.com>,

> Hi again folks.
>
[quoted text clipped - 7 lines]
>
> The url to my site is http://restaurant.atwebpages.com

In Safari, things break a bit at above average but not fanciful
text sizes, especially in the grey menu strip at the bottom of
the header. The words about us etc actually get to disappear. But
most people won't need to have text so big so perhaps not to
worry.

Signature

dorayme

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.