IE 7 CSS Problems
am 21.06.2007 21:38:20 von imsoper
I'm having with CSS on one section of a site that I am working on:
http://demo.vabb.com/faq.php
In IE 6, Firefox 2 and Safari 2 it looks great. But in IE 7 it shifts
the background image of the Body tag to the right, unless I open up
the elements in the FAQ. If all the
elements are shown, then the
background image shifts back centered like it is supposed to be. It is
using a Javascript to show/hide elements which are the answer to
the questions contained in elements.
Anyone have any ideas why IE 7 is causing this shift?
Re: IE 7 CSS Problems
am 21.06.2007 23:37:32 von RvT
I would suggest rewriting the code using DIVs and SPANs rather than
DDs and DTs. The way your want your site is so simple, yet your CSS is
apparently so complex that you had to implement more than a dozen IE
fixes and 2 style-sheets for different IE versions. That is already a
very bad basis and makes your code very vulnerable for any browser
update to come. Also, with this setup you should easily be able to
make your page scalable instead of going for absolute positions.
Better redo it now and do it good instead of getting into problems
later on.
imsoper@gmail.com schreef:
> I'm having with CSS on one section of a site that I am working on:
>
> http://demo.vabb.com/faq.php
>
> In IE 6, Firefox 2 and Safari 2 it looks great. But in IE 7 it shifts
> the background image of the Body tag to the right, unless I open up
> the elements in the FAQ. If all the
elements are shown, then the
> background image shifts back centered like it is supposed to be. It is
> using a Javascript to show/hide elements which are the answer to
> the questions contained in elements.
>
> Anyone have any ideas why IE 7 is causing this shift?
Re: IE 7 CSS Problems
am 22.06.2007 02:29:32 von imsoper
On Jun 21, 5:37 pm, RvT wrote:
> I would suggest rewriting the code using DIVs and SPANs rather than
> DDs and DTs. The way your want your site is so simple, yet your CSS is
> apparently so complex that you had to implement more than a dozen IE
> fixes and 2 style-sheets for different IE versions. That is already a
> very bad basis and makes your code very vulnerable for any browser
> update to come. Also, with this setup you should easily be able to
> make your page scalable instead of going for absolute positions.
> Better redo it now and do it good instead of getting into problems
> later on.
>
> imso...@gmail.com schreef:
>
> > I'm having with CSS on one section of a site that I am working on:
>
> >http://demo.vabb.com/faq.php
>
> > In IE 6, Firefox 2 and Safari 2 it looks great. But in IE 7 it shifts
> > the background image of the Body tag to the right, unless I open up
> > the elements in the FAQ. If all the elements are shown, then the
> > background image shifts back centered like it is supposed to be. It is
> > using a Javascript to show/hide elements which are the answer to
> > the questions contained in elements.
>
> > Anyone have any ideas why IE 7 is causing this shift?
Thanks for the advice. I'll give it a shot and mark this one as a
learning experience.
Re: IE 7 CSS Problems
am 22.06.2007 06:04:11 von Bergamot
RvT wrote:
> I would suggest rewriting the code using DIVs and SPANs rather than
> DDs and DTs.
That would be foolish. Div and span should not be used when there are
more meaningful elements to do the job. Using a definition list for an
FAQ might be debatable, but that's better than your suggestion, I think.
And please stop top posting. If you spent any time lurking in this group
before jumping in, you'd know the accepted posting practices.
> you had to implement more than a dozen IE
> fixes and 2 style-sheets for different IE versions. That is already a
> very bad basis
I haven't looked at the OP's code, but this does sound overly
complicated. Maintenance will surely be a PITA.
--
Berg
Re: IE 7 CSS Problems
am 22.06.2007 17:07:53 von RvT
On 21 jun, 23:04, Bergamot wrote:
> RvT wrote:
> > I would suggest rewriting the code using DIVs and SPANs rather than
> > DDs and DTs.
>
> That would be foolish. Div and span should not be used when there are
> more meaningful elements to do the job. Using a definition list for an
> FAQ might be debatable, but that's better than your suggestion, I think.
>
You could very easily use SPAN in this case for it is a small page, I
don't see any reason why this should not be "meaningful". The page is
rather small and you could easily limit the SPAN to the DIV that
contains the FAQ list.
> And please stop top posting. If you spent any time lurking in this group
> before jumping in, you'd know the accepted posting practices.
>
I see a question and I answer it in order to help someone out. If you
don't like it, so be it, but I find your hostility quite out of place.
Re: IE 7 CSS Problems
am 22.06.2007 19:06:15 von John Hosking
RvT wrote:
> On 21 jun, 23:04, Bergamot wrote:
>
>> And please stop top posting. If you spent any time lurking in this group
>> before jumping in, you'd know the accepted posting practices.
>>
>
> I see a question and I answer it in order to help someone out. If you
> don't like it, so be it, but I find your hostility quite out of place.
It's not hostility, friend. It's a useful tip about how to get along in
the NG. Like somebody advising which fork to use for the salad, or that
you should cover your mouth when you yawn. (And BTW, don't yawn.)
Top-posting is, indeed, very much disliked here. I, too, would
appreciate it if you'd avoid it. No hostility intended.
Lurking and reading FAQs seem to be lost skills these days, but they're
useful for those folks (surely this includes you) who really want to be
helpful in a NG.
--
John
Re: IE 7 CSS Problems
am 22.06.2007 22:20:30 von Sherm Pendley
RvT writes:
> I would suggest rewriting the code using DIVs and SPANs rather than
> DDs and DTs.
That's absurd. DD and DT have a semantic meaning - a list of terms and
definitions. DIV is *not* an adequate replacement.
sherm--
Re: IE 7 CSS Problems
am 22.06.2007 22:34:31 von Sherm Pendley
RvT writes:
> On 21 jun, 23:04, Bergamot wrote:
>> RvT wrote:
>> > I would suggest rewriting the code using DIVs and SPANs rather than
>> > DDs and DTs.
>>
>> That would be foolish. Div and span should not be used when there are
>> more meaningful elements to do the job. Using a definition list for an
>> FAQ might be debatable, but that's better than your suggestion, I think.
>
> You could very easily use SPAN
Equally foolish.
> don't see any reason why this should not be "meaningful".
Then learn some HTML. SPAN has no semantic meaning whatsoever. There is no
way for it to be as meaningful as correct markup.
>> And please stop top posting. If you spent any time lurking in this group
>> before jumping in, you'd know the accepted posting practices.
>
> I see a question and I answer it in order to help someone out.
Irrelevant. Bad advice is bad advice, even when it's well-intentioned.
sherm--
Re: IE 7 CSS Problems
am 22.06.2007 23:35:52 von Bergamot
John Hosking wrote:
>
> Lurking and reading FAQs seem to be lost skills these days,
Indeed.
Google groups is the worst thing that has ever happened to Usenet. :-(
--
Berg
Re: IE 7 CSS Problems
am 23.06.2007 00:36:35 von Blinky the Shark
Bergamot wrote:
> Google groups is the worst thing that has ever happened to Usenet. :-(
May I quote that (with credit) in the "Other Voices" section on the page
linked in my sig? Always on the lookout for testimonials. :)
--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: IE 7 CSS Problems
am 23.06.2007 01:02:53 von dorayme
In article ,
Sherm Pendley wrote:
> > don't see any reason why this should not be "meaningful".
>
> Then learn some HTML. SPAN has no semantic meaning whatsoever. There is no
> way for it to be as meaningful as correct markup.
OP probably has no idea what is really being said. Perhaps a
decko by him of
will help.
--
dorayme
Re: IE 7 CSS Problems
am 24.06.2007 02:44:05 von Bergamot
Blinky the Shark wrote:
> Bergamot wrote:
>
>> Google groups is the worst thing that has ever happened to Usenet. :-(
>
> May I quote that (with credit) in the "Other Voices" section on the page
> linked in my sig? Always on the lookout for testimonials. :)
I'd be honored :)
--
Berg
Re: IE 7 CSS Problems
am 24.06.2007 03:28:41 von Blinky the Shark
Bergamot wrote:
> Blinky the Shark wrote:
>> Bergamot wrote:
>>
>>> Google groups is the worst thing that has ever happened to Usenet. :-(
>>
>> May I quote that (with credit) in the "Other Voices" section on the page
>> linked in my sig? Always on the lookout for testimonials. :)
>
> I'd be honored :)
Done. Thanks.
--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html