|
Convenient web based access to our favorite web design Usenet groups
|
 |
This is Interesting: Free Magazines for Graphics designers and webmasters
| Author |
| Thread |
 |
|
|
|
|
|
 |
 |
|
|
|
  02-27-06 - 11:17 PM
|
Please have a look at the following page:
http://www.timokleemann.com/index.php?page=photos
Can you see the photo gallery I made? I made it entirely in CSS without any
JavaScript :D and it works very well in most browsers.
BUT... it seems it doesn't work in Internet Explorer... :(
Why!!??? I have spent hours today trying to fix this, but NOTHING!
In the HTML each photo looks like this:
<div class="photo">
<a href="index.php?page=photo"><div id="thumb1"></div></a>
</div>
and so on...
The CSS looks like this (watch out, it's a long one!):
/********************* PHOTOS *********************/
.photo {
background: url(../images/drop_shadow.jpg) no-repeat;
height: 100px;
width: 100px;
padding: 10px;
margin: 0 10px 0 0;
float: left;
}
a:link #thumb1,
a:link #thumb2,
a:link #thumb3,
a:link #thumb4,
a:link #thumb5,
a:link #thumb6 {
position: absolute;
z-index: 98;
height: 80px;
width: 80px;
margin: 0;
padding: 0;
}
a:hover #thumb1,
a:hover #thumb2,
a:hover #thumb3,
a:hover #thumb4,
a:hover #thumb5,
a:hover #thumb6 {
position: absolute;
z-index: 99;
padding: 5px;
background: center no-repeat white;
border: 2px solid #f1f1f1;
}
a:link #thumb1 {
background-image: url(../images/thmb_alstervilla.jpg);
}
a:hover #thumb1 {
background-image: url(../images/img_alstervilla.jpg);
height: 390px;
width: 300px;
}
a:link #thumb2 {
background-image: url(../images/thmb_beach.jpg);
}
a:hover #thumb2 {
background-image: url(../images/img_beach.jpg);
height: 300px;
width: 390px;
}
a:link #thumb3 {
background-image: url(../images/thmb_library.jpg);
}
a:hover #thumb3 {
background-image: url(../images/img_library.jpg);
height: 390px;
width: 300px;
}
a:link #thumb4 {
background-image: url(../images/thmb_cambridge.jpg);
}
a:hover #thumb4 {
background-image: url(../images/img_cambridge.jpg);
height: 390px;
width: 300px;
}
a:link #thumb5 {
background-image: url(../images/thmb_graduation.jpg);
}
a:hover #thumb5 {
background-image: url(../images/img_graduation.jpg);
height: 300px;
width: 390px;
}
a:link #thumb6 {
background-image: url(../images/thmb_facade.jpg);
}
a:hover #thumb6 {
background-image: url(../images/img_facade.jpg);
height: 390px;
width: 300px;
}
Or check out http://www.timokleemann.com/css/timo.css
(if you have time...)
I really need some help here!!!
|
|
|
| [
Post Follow-Up to this message ]
|
|
|
|
|
 |
|
|
|
  02-27-06 - 11:17 PM
|
You're going around it kind of backwards - it can be a lot simpler. This
is a basic example. You can pretty it up by using your shadow
backgrounds on the DIV:
http://www.projectseven.com/testing/customers/trintin/
--
Al Sparber - PVII
http://www.projectseven.com
Popup Menu Systems - CSS Tutorials - CSS Templates
---------------------------------------------------------
Newsgroup: news://forums.projectseven.com/pviiwebdev/
CSS Newsgroup: news://forums.projectseven.com/css/
DW Newsgroup: news://forums.projectseven.com/dreamweaver/
"Tintin81" <webforumsuser@macromedia.com> wrote in message
news:dtvqve$kp$1@forums.macromedia.com...
> Please have a look at the following page:
>
> http://www.timokleemann.com/index.php?page=photos
>
> Can you see the photo gallery I made? I made it entirely in CSS
> without any
> JavaScript :D and it works very well in most browsers.
>
> BUT... it seems it doesn't work in Internet Explorer... :(
>
> Why!!??? I have spent hours today trying to fix this, but NOTHING!
>
>
>
> In the HTML each photo looks like this:
>
> <div class="photo">
> <a href="index.php?page=photo"><div id="thumb1"></div></a>
> </div>
>
> and so on...
>
>
>
> The CSS looks like this (watch out, it's a long one!):
>
> /********************* PHOTOS *********************/
>
> .photo {
> background: url(../images/drop_shadow.jpg) no-repeat;
> height: 100px;
> width: 100px;
> padding: 10px;
> margin: 0 10px 0 0;
> float: left;
> }
>
> a:link #thumb1,
> a:link #thumb2,
> a:link #thumb3,
> a:link #thumb4,
> a:link #thumb5,
> a:link #thumb6 {
> position: absolute;
> z-index: 98;
> height: 80px;
> width: 80px;
> margin: 0;
> padding: 0;
> }
>
> a:hover #thumb1,
> a:hover #thumb2,
> a:hover #thumb3,
> a:hover #thumb4,
> a:hover #thumb5,
> a:hover #thumb6 {
> position: absolute;
> z-index: 99;
> padding: 5px;
> background: center no-repeat white;
> border: 2px solid #f1f1f1;
> }
>
> a:link #thumb1 {
> background-image: url(../images/thmb_alstervilla.jpg);
> }
> a:hover #thumb1 {
> background-image: url(../images/img_alstervilla.jpg);
> height: 390px;
> width: 300px;
> }
>
> a:link #thumb2 {
> background-image: url(../images/thmb_beach.jpg);
> }
> a:hover #thumb2 {
> background-image: url(../images/img_beach.jpg);
> height: 300px;
> width: 390px;
> }
>
> a:link #thumb3 {
> background-image: url(../images/thmb_library.jpg);
> }
> a:hover #thumb3 {
> background-image: url(../images/img_library.jpg);
> height: 390px;
> width: 300px;
> }
>
> a:link #thumb4 {
> background-image: url(../images/thmb_cambridge.jpg);
> }
> a:hover #thumb4 {
> background-image: url(../images/img_cambridge.jpg);
> height: 390px;
> width: 300px;
> }
>
> a:link #thumb5 {
> background-image: url(../images/thmb_graduation.jpg);
> }
> a:hover #thumb5 {
> background-image: url(../images/img_graduation.jpg);
> height: 300px;
> width: 390px;
> }
>
> a:link #thumb6 {
> background-image: url(../images/thmb_facade.jpg);
> }
> a:hover #thumb6 {
> background-image: url(../images/img_facade.jpg);
> height: 390px;
> width: 300px;
> }
>
>
>
> Or check out http://www.timokleemann.com/css/timo.css
>
> (if you have time...)
>
> I really need some help here!!!
>
|
|
|
| [
Post Follow-Up to this message ]
|
|
|
|
|
 |
|
|
 |
|
|
|
  02-28-06 - 11:20 PM
|
Tintin81 wrote:
> Please have a look at the following page:
>
> http://www.timokleemann.com/index.php?page=photos
>
> Can you see the photo gallery I made? I made it entirely in CSS without a
ny
> JavaScript :D and it works very well in most browsers.
>
> BUT... it seems it doesn't work in Internet Explorer... :(
>
> Why!!??? I have spent hours today trying to fix this, but NOTHING!
>
>
>
> In the HTML each photo looks like this:
>
> <div class="photo">
> <a href="index.php?page=photo"><div id="thumb1"></div></a>
> </div>
>
> and so on...
>
>
>
> The CSS looks like this (watch out, it's a long one!):
>
> /********************* PHOTOS *********************/
>
> .photo {
> background: url(../images/drop_shadow.jpg) no-repeat;
> height: 100px;
> width: 100px;
> padding: 10px;
> margin: 0 10px 0 0;
> float: left;
> }
>
> a:link #thumb1,
> a:link #thumb2,
> a:link #thumb3,
> a:link #thumb4,
> a:link #thumb5,
> a:link #thumb6 {
> position: absolute;
> z-index: 98;
> height: 80px;
> width: 80px;
> margin: 0;
> padding: 0;
> }
>
> a:hover #thumb1,
> a:hover #thumb2,
> a:hover #thumb3,
> a:hover #thumb4,
> a:hover #thumb5,
> a:hover #thumb6 {
> position: absolute;
> z-index: 99;
> padding: 5px;
> background: center no-repeat white;
> border: 2px solid #f1f1f1;
> }
>
> a:link #thumb1 {
> background-image: url(../images/thmb_alstervilla.jpg);
> }
> a:hover #thumb1 {
> background-image: url(../images/img_alstervilla.jpg);
> height: 390px;
> width: 300px;
> }
>
> a:link #thumb2 {
> background-image: url(../images/thmb_beach.jpg);
> }
> a:hover #thumb2 {
> background-image: url(../images/img_beach.jpg);
> height: 300px;
> width: 390px;
> }
>
> a:link #thumb3 {
> background-image: url(../images/thmb_library.jpg);
> }
> a:hover #thumb3 {
> background-image: url(../images/img_library.jpg);
> height: 390px;
> width: 300px;
> }
>
> a:link #thumb4 {
> background-image: url(../images/thmb_cambridge.jpg);
> }
> a:hover #thumb4 {
> background-image: url(../images/img_cambridge.jpg);
> height: 390px;
> width: 300px;
> }
>
> a:link #thumb5 {
> background-image: url(../images/thmb_graduation.jpg);
> }
> a:hover #thumb5 {
> background-image: url(../images/img_graduation.jpg);
> height: 300px;
> width: 390px;
> }
>
> a:link #thumb6 {
> background-image: url(../images/thmb_facade.jpg);
> }
> a:hover #thumb6 {
> background-image: url(../images/img_facade.jpg);
> height: 390px;
> width: 300px;
> }
>
>
>
> Or check out http://www.timokleemann.com/css/timo.css
>
> (if you have time...)
>
> I really need some help here!!!
>
It is **not** working for me on Firefox: the pictures jump around,
cover each other up, or reveal big white boxes as I move the mouse
around. FWIW, and I see you are probably going a different route
anyway. :-)
--
Bonnie in California
kroko at
sbcglobal dot net
http://www.theanimalrescuesite.com/...ts/CTDSites.woa
|
|
|
| [
Post Follow-Up to this message ]
|
|
|
|
|
 |
| All times are GMT. The time now is 03:55 AM. |
 |
|
|
|
|
|  |
|