HighDots Forums  

Divs repositioning in Explorer

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Divs repositioning in Explorer in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Stan The Man
 
Posts: n/a

Default Divs repositioning in Explorer - 11-27-2008 , 12:58 PM






I would be grateful for a steer as to where I messed up this
(work-in-progress) page:
http://www.englishchecker.co.uk/elite/about.html

It displays fine in Safari on a Mac but in Explorer on a PC the left
column of white text (container #subs-left) is shoved to the right side
of the page while the second column of black text (container
#subs-right) is shoved down.

The page seems to validate ok and the really annoying thing is that
these columns did once display properly on both my Mac and PC but my
subsequent addition of an image across the top of the main #subs
container (where there was originally a text container) and other
revisions (blunders) have caused these two divs to head east and south
respectively.

I'm at the stage now where I can't see the wood for the trees and it's
probably something which should be staring me in the face. So if
someone would kindly slap me with it, I would be extremely grateful.

Stan


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

Default Re: Divs repositioning in Explorer - 11-27-2008 , 06:20 PM






In article <492edfa9$0$1345$fa0fcedb (AT) news (DOT) zen.co.uk>,
Stan The Man <man (AT) pr100 (DOT) com> wrote:

Quote:
I would be grateful for a steer as to where I messed up this
(work-in-progress) page:
http://www.englishchecker.co.uk/elite/about.html

It displays fine in Safari on a Mac but in Explorer on a PC the left
column of white text (container #subs-left) is shoved to the right side
of the page while the second column of black text (container
#subs-right) is shoved down.

The page seems to validate ok and the really annoying thing is that
these columns did once display properly on both my Mac and PC but my
subsequent addition of an image across the top of the main #subs
container (where there was originally a text container) and other
revisions (blunders) have caused these two divs to head east and south
respectively.

I'm at the stage now where I can't see the wood for the trees and it's
probably something which should be staring me in the face. So if
someone would kindly slap me with it, I would be extremely grateful.

Replace

<h2><img class="dsR17" src="images/teamwork.jpg" alt="" align="left"
border="0" /></h2>

with like:

<h2><img class="dsR17" src="images/teamwork.jpg" alt="" /></h2>

and matters will improve for you in IE7. There is then a float drop
problem on the far right (floats are tricky in IE) I am sure you will
solve by attending to dimensioning your elements to leave room.

Not sure why you are using XHTML and why Transitional? But anyway...

--
dorayme


Reply With Quote
  #3  
Old   
Stan The Man
 
Posts: n/a

Default Re: Divs repositioning in Explorer - 11-27-2008 , 07:37 PM



On 2008-11-27 23:20:32 +0000, dorayme <doraymeRidThis (AT) optusnet (DOT) com.au> said:

Quote:
In article <492edfa9$0$1345$fa0fcedb (AT) news (DOT) zen.co.uk>,
Stan The Man <man (AT) pr100 (DOT) com> wrote:

I would be grateful for a steer as to where I messed up this
(work-in-progress) page:
http://www.englishchecker.co.uk/elite/about.html

It displays fine in Safari on a Mac but in Explorer on a PC the left
column of white text (container #subs-left) is shoved to the right side
of the page while the second column of black text (container
#subs-right) is shoved down.

The page seems to validate ok and the really annoying thing is that
these columns did once display properly on both my Mac and PC but my
subsequent addition of an image across the top of the main #subs
container (where there was originally a text container) and other
revisions (blunders) have caused these two divs to head east and south
respectively.

I'm at the stage now where I can't see the wood for the trees and it's
probably something which should be staring me in the face. So if
someone would kindly slap me with it, I would be extremely grateful.


Replace

h2><img class="dsR17" src="images/teamwork.jpg" alt="" align="left"
border="0" /></h2

with like:

h2><img class="dsR17" src="images/teamwork.jpg" alt="" /></h2

and matters will improve for you in IE7. There is then a float drop
problem on the far right (floats are tricky in IE) I am sure you will
solve by attending to dimensioning your elements to leave room.

Not sure why you are using XHTML and why Transitional? But anyway...
Thank you so much. That did the trick and I will play with element dimensions.

I was originally using xhtml1-strict but was having a similar problem
with another page, a mouseover image gallery
(http://www.englishchecker.co.uk/elite/gallery.html) which displayed
fine in Mac Safari but went haywire in IE7/WinXP. Changing the doc type
made it work in both.

Stan



Reply With Quote
  #4  
Old   
Peter May
 
Posts: n/a

Default Re: Divs repositioning in Explorer - 11-28-2008 , 07:14 AM



Stan The Man pisze:
Quote:
I was originally using xhtml1-strict but was having a similar problem
with another page, a mouseover image gallery
(http://www.englishchecker.co.uk/elite/gallery.html) which displayed
fine in Mac Safari but went haywire in IE7/WinXP. Changing the doc type
made it work in both.
Are you sure that your code will be interpreted as XHTML? Without header
application/xhtml+xml is sent XHTML be interpreted as a normal HTML.

--
Peter


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

Default Re: Divs repositioning in Explorer - 11-28-2008 , 07:42 AM




Stan The Man wrote:
Quote:
I would be grateful for a steer as to where I messed up this
(work-in-progress) page:
http://www.englishchecker.co.uk/elite/about.html
You really need to examine the code Tidy is generating. There are some
pretty bad mistakes in there.
- numerous empty elements
- bogus heading markup
- unordered lists not marked up as such

Not to mention those silly classes and added spans for explicit font
sizes. They all need to go away. Leave body text at font-size:100% and
only change those few elements that actually need it.

Fix the code, run it all through the W3C validation services, then worry
about IE.

--
Berg


Reply With Quote
  #6  
Old   
Stan The Man
 
Posts: n/a

Default Re: Divs repositioning in Explorer - 11-28-2008 , 10:57 AM



On 2008-11-28 12:14:02 +0000, Peter May <peter.may (AT) poczta (DOT) fm> said:

Quote:
Stan The Man pisze:
I was originally using xhtml1-strict but was having a similar problem
with another page, a mouseover image gallery
(http://www.englishchecker.co.uk/elite/gallery.html) which displayed
fine in Mac Safari but went haywire in IE7/WinXP. Changing the doc type
made it work in both.

Are you sure that your code will be interpreted as XHTML? Without
header application/xhtml+xml is sent XHTML be interpreted as a normal
HTML.
Not at all sure, no. I fixed the validator's reported errors and still
my image gallery didn't work in IE so I tried changing the doctype to
what it now is and everything fell into place. It may not be right but
if it works for that page, I'm greatly tempted not to touch it again
(heresy, I know).

Stan



Reply With Quote
  #7  
Old   
Stan The Man
 
Posts: n/a

Default Re: Divs repositioning in Explorer - 11-28-2008 , 11:04 AM



On 2008-11-28 12:42:59 +0000, Bergamot <bergamot (AT) visi (DOT) com> said:

Quote:
Stan The Man wrote:
I would be grateful for a steer as to where I messed up this
(work-in-progress) page:
http://www.englishchecker.co.uk/elite/about.html

You really need to examine the code Tidy is generating. There are some
pretty bad mistakes in there.
- numerous empty elements
- bogus heading markup
- unordered lists not marked up as such

Not to mention those silly classes and added spans for explicit font
sizes. They all need to go away. Leave body text at font-size:100% and
only change those few elements that actually need it.

Fix the code, run it all through the W3C validation services, then
worry about IE.
To be fair to Tidy, it didn't generate most of the code. I did try
using its re-write in its entirety but it gave me too much work to do
in re-laying out the page so I took bits of the Tidy code -- enough to
get me through the W3 validator without any errors - albeit, I realise
there are still errors in there.

Stan



Reply With Quote
  #8  
Old   
Peter May
 
Posts: n/a

Default Re: Divs repositioning in Explorer - 11-28-2008 , 02:45 PM



Stan The Man pisze:
Quote:
On 2008-11-28 12:14:02 +0000, Peter May <peter.may (AT) poczta (DOT) fm> said:

Stan The Man pisze:
I was originally using xhtml1-strict but was having a similar problem
with another page, a mouseover image gallery
(http://www.englishchecker.co.uk/elite/gallery.html) which displayed
fine in Mac Safari but went haywire in IE7/WinXP. Changing the doc
type made it work in both.

Are you sure that your code will be interpreted as XHTML? Without
header application/xhtml+xml is sent XHTML be interpreted as a normal
HTML.

Not at all sure, no. I fixed the validator's reported errors and still
my image gallery didn't work in IE so I tried changing the doctype to
what it now is and everything fell into place. It may not be right but
if it works for that page, I'm greatly tempted not to touch it again
(heresy, I know).
In IE6 works well. I checked it.

--
Peter


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 - 2009, Jelsoft Enterprises Ltd.