[Solved] Album css ok in IE but not FF

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
dlpirl

[Solved] Album css ok in IE but not FF

Post by dlpirl »

Take a look at http://s2pmarketsignal.com/MatxainEtxea ... hoto-album in both IE and FF and you will see that in IE text is correctly centered over album thumbnails, but in FF it is not.  Any ideas how to fix?
Last edited by dlpirl on Thu Dec 06, 2007 4:18 pm, edited 1 time in total.
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm

Re: Album css ok in IE but not FF

Post by KO »

Actually text is aligned correctly but image is not. In IE that is done with text-align:center. For Firefox you need margin: 0 auto;
So...

.thumb a
{
display:block;
height:72px;
/* Set link formatting*/
width:100px;
/* Thumb width*/

/* Thumb height*/
padding:10px;
/* Thumb padding to form thumb frame */
/* You can set the above to 0px = no frame - but no hover indication!*/
margin:0 auto; <-- Modify this
background-color:white;
/*Background of thumb */
border-top:1px solid #eee;
/* Borders of thumb frame */
border-right:2px solid #ccc;
border-bottom:2px solid #ccc;
border-left:1px solid #eee;
text-decoration:none;
}

Should fix it.

Br, K
dlpirl

Re: Album css ok in IE but not FF

Post by dlpirl »

That did it. Thanks!
Locked

Return to “CMSMS Core”