Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 06-14-2010, 06:28 PM IE7 css problem
shivaji's Avatar
Ultra Talker

Posts: 321
Trades: 0
I have problem with IE7 (version 7.0.5730.13) because I cannot see gallery thumbs when page is first time loaded. When I click on link and load next gallery everythink is OK. In sourse code I can see thumbs but it is not on displayed. Z-index is not working I don't know why? Other browser, and some other IE7 show page correct. The problem is here...
http://aktiktak.hr/galerija.php

...and if anyone have some idea
__________________

Please login or register to view this content. Registration is FREE
- uncommon free scripts

Please login or register to view this content. Registration is FREE
- Städte, Sport, Party, Gourment, Apartments, Hotels

Last edited by shivaji; 06-15-2010 at 11:44 AM.. Reason: problem is SOLVED
shivaji is offline
Reply With Quote
View Public Profile Visit shivaji's homepage!
 
 
Register now for full access!
Old 06-14-2010, 08:20 PM Re: IE7 css problem
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Z-index only works on elements that are set to position:absolute or position: relative. Your thumbnails have the z-index, but are not positioned. To make things worse, IE7 has some nasty bugs related to positioning and z-index.

You might want to try putting the thumbnauils in an unordered list <ul> instead of a div for each one, and set the <ul> to position: relative if necessary.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 06-15-2010, 11:41 AM Re: IE7 css problem
shivaji's Avatar
Ultra Talker

Posts: 321
Trades: 0
Thanks Lady,
I figured out what is problem. I cannot change div in ul because I need float. All thumbs are in one parent div. This div was set to position: relative; and I try z-index but without result. On the end when I remove definition position:relative and div is without positioning IE7 show the thumbs. I was check in other browsers (except IE8) and it is looking good.
__________________

Please login or register to view this content. Registration is FREE
- uncommon free scripts

Please login or register to view this content. Registration is FREE
- Städte, Sport, Party, Gourment, Apartments, Hotels
shivaji is offline
Reply With Quote
View Public Profile Visit shivaji's homepage!
 
Old 06-15-2010, 06:01 PM Re: IE7 css problem
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
I cannot change div in ul because I need float
Who says you can't float a list item, or the ul, or even the <a>?? You can float ANY of them!
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 06-16-2010, 05:52 AM Re: IE7 css problem
shivaji's Avatar
Ultra Talker

Posts: 321
Trades: 0
Quote:
Originally Posted by LadynRed View Post
Who says you can't float a list item, or the ul, or even the <a>?? You can float ANY of them!
I know, I can float list item, etc. But php build this gallery and I don't like to change float in absolute. BTW I was try your sugestion and result is the same like with divs. Never ignore good suggestion - it is my way of life.
__________________

Please login or register to view this content. Registration is FREE
- uncommon free scripts

Please login or register to view this content. Registration is FREE
- Städte, Sport, Party, Gourment, Apartments, Hotels
shivaji is offline
Reply With Quote
View Public Profile Visit shivaji's homepage!
 
Old 06-16-2010, 06:29 AM Re: IE7 css problem
Phunk Rabbit's Avatar
Ultra Talker

Posts: 255
Name: John Nerush
Location: Milton Keynes, UK
Trades: 0
You can use css selectors (correct terminology?) to get to any element no matter what is generating it, all you need is somthing to grab on to.

For example,

Say PHP is generating a list:

list.php
PHP Code:

<?php

echo '<ul>';

$query //Some query pulling info from 2 table cells

while($result mysql_fetch_array($query)){

     echo 
'<li><strong>' $result['id'] . '</strong>' $result['name'] . '</li>';

}

echo 
'</ul>';

?>
Then you pull the file into a template or page wrapped in a div:

index.php
PHP Code:
<div id="someList">
<?php
     
require_once('list.php');
?>
</div>
You can style the li's with the following CSS:

Code:
#someList ul { float:left; list-style:none; }
#someList ul li { float:left; }
From you post it seems you are unsure of this meathod, sorry if you are and it seems i am telling you howto suck eggs
__________________

Please login or register to view this content. Registration is FREE

Learn professional skills from professional people, from $6.50 a month.
Phunk Rabbit is offline
Reply With Quote
View Public Profile Visit Phunk Rabbit's homepage!
 
Old 06-17-2010, 06:19 AM Re: IE7 css problem
shivaji's Avatar
Ultra Talker

Posts: 321
Trades: 0
I know how to create list with php but problem is in this sentence.
Quote:
Z-index only works on elements that are set to position:absolute or position: relative.
When I float divs or list or any other tag IE7 (my version) don't show it. I cannot use relative or absolute because I don't like to think how many thumbs is in the line. If customer want 7 php must build 7, if he write 20 it must build 20.

In that case I must find solution for floating and z-index. On the end, lucky me, I find it.
__________________

Please login or register to view this content. Registration is FREE
- uncommon free scripts

Please login or register to view this content. Registration is FREE
- Städte, Sport, Party, Gourment, Apartments, Hotels
shivaji is offline
Reply With Quote
View Public Profile Visit shivaji's homepage!
 
Old 06-17-2010, 11:10 AM Re: IE7 css problem
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,376
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
I'd suggest the answer is pretty simple!

employ somebody who understands CSS!
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-18-2010, 10:23 AM Re: IE7 css problem
shivaji's Avatar
Ultra Talker

Posts: 321
Trades: 0
I have somebody. ME!
__________________

Please login or register to view this content. Registration is FREE
- uncommon free scripts

Please login or register to view this content. Registration is FREE
- Städte, Sport, Party, Gourment, Apartments, Hotels
shivaji is offline
Reply With Quote
View Public Profile Visit shivaji's homepage!
 
Old 06-20-2010, 06:02 AM Re: IE7 css problem
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,376
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by shivaji View Post
I have somebody. ME!
Judging by your comments in this thread you don't know it as well as you think you do.


If you do not know how many elements are to be placed in a container floating the child elements is exactly what you need to do.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to IE7 css problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 2.17978 seconds with 12 queries