• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

CSS woes (IE6 crashes)

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
5 posts • Page 1 of 1

Postby pinup57 » Fri Mar 09, 2007 4:39 pm

Hi

This took me 4 hours of headscratching but I finally tracked it down:

I want to have the room-names text change color when I hover the mouse over the tabs (to have a consistent look with the rest of my site), but if I do this:

Code: Select all
}
ul#pfc_channels_list li > div:hover {
color: #990000;
}

it crashes IE6: it takes a 5 minutes to load, takes up all the memory on the client PC, than eats the whole pagefile, and IE6 poofs, causing lots of other apps to crash as well including AVG anti-virus.

This does not happen at all in Firefox, where the same code works perfectly.

Took me a while to find out where this behaviour came from!!!

Any suggestions??

Edit: I would like to add that I feel the tabs are extremely complicated, and as soon as we try to style them somewhat different than the default style (especially important if your site style is based on a dark background) the results are highly unpredictible between different browsers, and it's really realy hard to figure out what goes where, there are soooo many divs and layers in such a tiny space.... I just wanted to have the tabs look like the other buttons on my site, well I can tell you I'm having a hard time achieving such a simple goal!!

Dirk
Last edited by pinup57 on Fri Mar 09, 2007 4:59 pm, edited 1 time in total.
pinup57
Member
 
Posts: 89
Joined: Sat Feb 24, 2007 8:13 am
Top

Postby phpfreechat » Fri Mar 09, 2007 5:26 pm

I have had the same problem with IE6 ...
I plan to add a documentation page with a list of CSS rules that crashes IE6.
I think the '>' operator is guilty, could you try with :
Code: Select all
ul#pfc_channels_list li div:hover {
color: #990000;
}

Moreover, from my own experience, I can tell your that using ',' to separate rules will crash IE6 too.
Ex that crash IE6 :
Code: Select all
p, div { color: red; }

Maybe there is other bad rules, the list is to do...
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby pinup57 » Fri Mar 09, 2007 5:41 pm

Hmm, all I can say is that IE6 doesn't crash anymore, but hovering over the tab doesn't change the text color either.....

Dirk
pinup57
Member
 
Posts: 89
Joined: Sat Feb 24, 2007 8:13 am
Top

Postby phpfreechat » Fri Mar 09, 2007 6:21 pm

Try something like that :
Code: Select all
ul#pfc_channels_list li div:hover a {
color: #990000;
}

Tip: use firebug to understand quickly the HTML structure.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby pinup57 » Sat Mar 10, 2007 11:06 am

Doesn't work either :( although no IE6 crash. Yes, of course, firebug is my fav tool for webdevelopment, as well as webdeveloper.

I really have a hard time with the tabs!! IE7 does weird things too: I wanted to have the tabclose image moved upwards, so I did:

Code: Select all
ul#pfc_channels_list li a.pfc_tabclose img {
  padding-bottom: 20px;
  }

which works in IE6 and FF, but in IE7 this moves the background image of the tab 20px up as well!!

Also, I can't seem to add fixed width to tabs, and neither can I re-position the prompt dialog background:

Code: Select all
div#pfc_promptbgbox {
position: absolute;
top: 284px;
left: 192px;
}

has no effect whatsoever in any browser.

Dirk
pinup57
Member
 
Posts: 89
Joined: Sat Feb 24, 2007 8:13 am
Top


Post a reply
5 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 29 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub