PDA

View Full Version : Cmotion wrapping in Firefox



wda
06-16-2008, 12:20 AM
1) Script Title: CMotion Image Gallery

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/cmotiongallery.htm

3) Describe problem: Images are wrapping in Firefox 2.0 despite nowrap setting. Works fine in IE 7.0. Removing the links to the images fixes the wrapping problem, but obviously I want the links. Have searched and searched, tried everything. Any ideas? (PS. yes, it does link to another script - Lightbox, but the same problem occurs with any other normal link).
http://www.wdarchitects.com.au/gallery4.htm
Help would be appreciated.
Thanks,
WDA

jscheuer1
06-16-2008, 03:46 AM
You have (in your style2.css stylesheet):


a {
font-family: "Arial Rounded MT Bold", Arial, Helvetica, sans-serif;
text-transform: capitalize;
color: #FFFFFF;
font-weight: normal;
font-size: 10px;
border: thin none;
letter-spacing: .2em;
display: table-row-group;
text-decoration: none;
line-height: 12px;
overflow: visible;
}

You can either get rid of that (but I think you may need it for other stuff on the page, so you could make it more specific) or just add:


#trueContainer a {
display:inline;
}

to your gallerystyle.css stylesheet (it can go in either stylesheet, actually).

There may still be other issues, but that should kill the wrap.

wda
06-16-2008, 08:10 AM
Hi John,

Thanks so much, that worked (the second option). I do need to clean up the rest of my code, but it's functional.

While I'm here, any idea how to get rid of the space between images (both IE and Firefox)?

Thanks again.

-WDA

jscheuer1
06-16-2008, 09:01 AM
Get rid of the line breaks between the link tags in the gallery portion of your source code.

Go from:


<a href="images/res/slater1.jpg" rel="lightbox[slater]"><img src="0.gif" alt="Slater Residence, Airlie Beach"></a>
<a href="images/med/www0.jpg" rel="lightbox[wlw]"><img src="5.gif" alt="Wildlife Warriors Hospital, Beerwah"></a>
<a href="images/res/duffy1.jpg" rel="lightbox[duffy]" title="Duffy Residence, Cooran"><img src="r1.gif" alt="Duffy Residence, Cooran"></a>
<a href="images/com/duffield1.jpg" rel="lightbox[duffield]" title="8-10 Duffield Road, Margate"><img src="2.gif"alt="8-10 Duffield Road, Margate"></a>
<a href="images/edu/manjushri1.jpg" rel="lightbox[manjushri]" title="Manjushri School, Ladakh, India"><img src="23.gif" alt="Manjushri School, Ladakh, India"></a>
<a href="images/com/ker1.jpg" rel="lightbox[kerman]" title="Kerman Contracting Head Offfice - Designed by BSPL with Andrew Webb. Winner of RAIA 2003 WA awards."><img src="1.gif" alt="Kerman Contracting Head Offfice, Western Australia"></a>
<a href="images/res/sch2.jpg" rel="lightbox[sch]" title="Scheenhouwer Residence, Margate"><img src="r0.gif" alt="Scheenhouwer Residence, Margate"></a>
<a href="images/com/lwa1.jpg" rel="lightbox[lwa]" title="Ladakh Women's Alliance, India"><img src="c3.gif" alt="Ladakh Women's Alliance, India"></a>
<a href="images/res/baxter0.jpg" rel="lightbox[baxter]" title="Baxter Residence, Ocean View"><img src="37.jpg" alt="Baxter Residence, Ocean View"></a>

to:


<a href="images/res/slater1.jpg" rel="lightbox[slater]"><img src="0.gif" alt="Slater Residence, Airlie Beach"></a><a href="images/med/www0.jpg" rel="lightbox[wlw]"><img src="5.gif" alt="Wildlife Warriors Hospital, Beerwah"></a><a href="images/res/duffy1.jpg" rel="lightbox[duffy]" title="Duffy Residence, Cooran"><img src="r1.gif" alt="Duffy Residence, Cooran"></a><a href="images/com/duffield1.jpg" rel="lightbox[duffield]" title="8-10 Duffield Road, Margate"><img src="2.gif"alt="8-10 Duffield Road, Margate"></a><a href="images/edu/manjushri1.jpg" rel="lightbox[manjushri]" title="Manjushri School, Ladakh, India"><img src="23.gif" alt="Manjushri School, Ladakh, India"></a><a href="images/com/ker1.jpg" rel="lightbox[kerman]" title="Kerman Contracting Head Offfice - Designed by BSPL with Andrew Webb. Winner of RAIA 2003 WA awards."><img src="1.gif" alt="Kerman Contracting Head Offfice, Western Australia"></a><a href="images/res/sch2.jpg" rel="lightbox[sch]" title="Scheenhouwer Residence, Margate"><img src="r0.gif" alt="Scheenhouwer Residence, Margate"></a><a href="images/com/lwa1.jpg" rel="lightbox[lwa]" title="Ladakh Women's Alliance, India"><img src="c3.gif" alt="Ladakh Women's Alliance, India"></a><a href="images/res/baxter0.jpg" rel="lightbox[baxter]" title="Baxter Residence, Ocean View"><img src="37.jpg" alt="Baxter Residence, Ocean View"></a>

wda
06-17-2008, 09:24 AM
Thanks again, John.

-WDA