Results 1 to 5 of 5

Thread: Cmotion wrapping in Firefox

  1. #1
    Join Date
    Jun 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Cmotion wrapping in Firefox

    1) Script Title: CMotion Image Gallery

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...iongallery.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

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You have (in your style2.css stylesheet):

    Code:
    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:

    Code:
    #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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jun 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Get rid of the line breaks between the link tags in the gallery portion of your source code.

    Go from:

    Code:
    <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:

    Code:
    <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>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Jun 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks again, John.

    -WDA

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •