HighDots Forums  

div width problem in IE

alt.html alt.html


Discuss div width problem in IE in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Saber
 
Posts: n/a

Default div width problem in IE - 04-30-2008 , 07:36 PM






Hi all, 1st time poster here. I can't seem to get IE (ie7) to play
nicely with my a site I'm making, though FF and Safari both display it
properly. The background div is not as wide at the div above it (I have
2 because I have a semi-transparent background color over a picture
background and opaque text on top. Confusing, kinda, but it works).
Thing is, I have three separate instances of that on the site (header,
side menu bar and body). It works fine on the header and menu bar, but
not the body. Anyone have any idea why this might be?

the site is: http://s87369035.onlinehome.us/test/index.html

Oh, while I'm at it; the index page won't validate because of the
applet, but when I change it to object, the slide show breaks. I'll
admit, I'm not good at javascript and objects type things, so it's
probably a simple fix. If anyone knows that, I would appreciate the
enlightenment.

Thanks in advance for any help.

Reply With Quote
  #2  
Old   
dorayme
 
Posts: n/a

Default Re: div width problem in IE - 04-30-2008 , 10:57 PM






In article <481910a1$0$15206$607ed4bc (AT) cv (DOT) net>,
Saber <saber1 (AT) IEATSPAMMERSoptonline (DOT) net> wrote:

Quote:
The background div is not as wide at the div above it (I have
2 because I have a semi-transparent background color over a picture
background and opaque text on top. Confusing, kinda, ...
Yes, a bit. "*The* "background div" and "above" *it* are referenced as
if they are our well known uncle and aunt, obvious and familiar to us.
Not.

--
dorayme


Reply With Quote
  #3  
Old   
Bergamot
 
Posts: n/a

Default Re: div width problem in IE - 04-30-2008 , 11:15 PM




Saber wrote:
Quote:
I can't seem to get IE (ie7) to play
nicely with my a site I'm making, though FF and Safari both display it
properly.

http://s87369035.onlinehome.us/test/index.html
I doubt that this is "properly" displayed:
http://www.bergamotus.ws/screenshots/s87369035.png

Hint: zoom text up a couple notches.

--
Berg


Reply With Quote
  #4  
Old   
Saber
 
Posts: n/a

Default Re: div width problem in IE - 05-01-2008 , 10:36 AM



Bergamot wrote:
Quote:
Saber wrote:
I can't seem to get IE (ie7) to play
nicely with my a site I'm making, though FF and Safari both display it
properly.

http://s87369035.onlinehome.us/test/index.html

I doubt that this is "properly" displayed:
http://www.bergamotus.ws/screenshots/s87369035.png

Hint: zoom text up a couple notches.

That's odd, I don't have it like that on my computer, even when I lower
my resolution.
This is it in FF: http://s87369035.onlinehome.us/test/screenie.jpg
And in IE: http://s87369035.onlinehome.us/test/screenie2.jpg
Any suggestions on how to fix that? change the text to a percent maybe?
Thanks,
Saber


Reply With Quote
  #5  
Old   
Saber
 
Posts: n/a

Default Re: div width problem in IE - 05-01-2008 , 10:42 AM



dorayme wrote:
Quote:
In article <481910a1$0$15206$607ed4bc (AT) cv (DOT) net>,
Saber <saber1 (AT) IEATSPAMMERSoptonline (DOT) net> wrote:

The background div is not as wide at the div above it (I have
2 because I have a semi-transparent background color over a picture
background and opaque text on top. Confusing, kinda, ...

Yes, a bit. "*The* "background div" and "above" *it* are referenced as
if they are our well known uncle and aunt, obvious and familiar to us.
Not.

Sorry, re-reading that, I agree I could have been better.
I have a div in which the whole content of the site lays. it is 80% of
the page width and has white space on the top too. This container div
has a picture background (a marble type pattern). The content itself is
divided into 3 sections, the top header, the left sidebar and the body
sidebar. I have a background color (a brownish color) for each of these
with padding so they don't touch. But, I get the opacity of this
background div to 20% (or 0.2). Unfortunately, there isn't yet a code
(that I know of) that allows only the background color to be effected,
so I had to place another div exactly over each of the 3 background
color divs so that way the text is not effected.

I'm sure it's still a bit confusing, but if you look at the site or the
screenshot I took (http://s87369035.onlinehome.us/test/screenie.jpg),
you might understand it. Basically a bunch of nested div's.
Thanks;
Saber


Reply With Quote
  #6  
Old   
mrcakey
 
Posts: n/a

Default Re: div width problem in IE - 05-01-2008 , 11:33 AM



"Saber" <saber1 (AT) IEATSPAMMERSoptonline (DOT) net> wrote

Quote:
Bergamot wrote:
Saber wrote:
I can't seem to get IE (ie7) to play nicely with my a site I'm making,
though FF and Safari both display it properly.

http://s87369035.onlinehome.us/test/index.html

I doubt that this is "properly" displayed:
http://www.bergamotus.ws/screenshots/s87369035.png

Hint: zoom text up a couple notches.

That's odd, I don't have it like that on my computer, even when I lower my
resolution.
This is it in FF: http://s87369035.onlinehome.us/test/screenie.jpg
And in IE: http://s87369035.onlinehome.us/test/screenie2.jpg
Any suggestions on how to fix that? change the text to a percent maybe?
Thanks,
Saber
The screenshot is basically what we get, but the point the previous poster
was making is that if the user increases the text size in their browser (as
the user is wont to do), it breaks out all over the place. This is because
you've assigned fixed heights to your divs. I assume these are there
because you need the "semi transparent div behind the text" to grow to
accommodate the text you're laying on top. You can achieve the same effect
by saving your beige background image in a darker shade and using this as
the background. You can then contain the text within its own div and that
would then free you to remove the height declarations and everything will
flow neatly even if the user expands the text.

Also, you shouldn't really be displaying the W3C validated XHTML logo! ;-)

+mrcakey




Reply With Quote
  #7  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: div width problem in IE - 05-01-2008 , 11:55 AM



Saber wrote:

Quote:
That's odd, I don't have it like that on my computer, even when I lower
my resolution.
This is it in FF: http://s87369035.onlinehome.us/test/screenie.jpg
Lower your resolution? Not to change your monitor setting but the font
size. Hint: with Firefox look at your page. Press and hold down the
"CTRL" key then tap the "+" a couple of times and watch your
pixel-perfect layout disintegrate before your eyes. Then Google "liquid
layout web design"



--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


Reply With Quote
  #8  
Old   
Bergamot
 
Posts: n/a

Default Re: div width problem in IE - 05-02-2008 , 02:58 PM




Saber wrote:
Hmmm...
http://www.bergamotus.ws/screenshots/s87369035-IE.png

That's how it looks to me in IE7 on XP, at text size "Largest"

Quote:
Any suggestions on how to fix that? change the text to a percent maybe?
Text size set in % has nothing to do with the container size, but with
the parent font-size. Just don't set a fixed height on text blocks. Set
a min-height if you must, but not a fixed height.

Don't ask me what happened to the background graphics there. Or is that
background from the applet? If so, you need a better fall-back for when
Java is disabled.

--
Berg


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.