Note that there are some explanatory texts on larger screens.

plurals
  1. POMy Simple CSS Gallery is working in Firefox but not safari or chrome
    primarykey
    data
    text
    <p>I have a (very) simple CSS image gallery, it is working in firefox but not on chrome or safari, i cant figure out why... I want the image to change in the bix preview box when the smaller thumbnail is clicked, I know this code is a bit messy buy Im still learning and I can seem to work out why it will work in firefox (which I used when building the site) but not in safari or chrome, also it would be nice if the image gallery could be used if the user is on an ipad but i cant get that to work either...</p> <pre><code>&lt;htmL&gt; &lt;div class="contentbox"&gt; &lt;div class="gallery" align="center"&gt; &lt;h3&gt;&lt;/h3&gt;&lt;br/&gt; &lt;div class="thumbnails"&gt; &lt;img onClick="preview.src=img1.src" id="img1" src="gallery/img1.jpg" alt="Image Not Loaded"/&gt; &lt;img onClick="preview.src=img2.src" id="img2" src="gallery/img2.jpg" alt="Image Not Loaded"/&gt; &lt;img onClick="preview.src=img3.src" id="img3" src="gallery/img3.jpg" alt="Image Not Loaded"/&gt; &lt;img onClick="preview.src=img4.src" id="img4" src="gallery/img4.jpg" alt="Image Not Loaded"/&gt; &lt;img onClick="preview.src=img5.src" id="img5" src="gallery/img5.jpg" alt="Image Not Loaded"/&gt; &lt;img onClick="preview.src=img6.src" id="img6" src="gallery/img6.jpg" alt="Image Not Loaded"/&gt; &lt;img onClick="preview.src=img7.src" id="img7" src="gallery/img7.jpg" alt="Image Not Loaded"/&gt; &lt;img onClick="preview.src=img8.src" id="img8" src="gallery/img8.jpg" alt="Image Not Loaded"/&gt; &lt;/div&gt;&lt;br/&gt; &lt;div class="preview" align="center"&gt; &lt;img id="preview" src="./gallery/img1.jpg" alt="No Image Loaded"/&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/html&gt; ----CSS---- .contentbox { width: 1200px; height: 790px; border: none; margin: auto; padding-top: 0px; margin-top: 40px; font-family: champagne; sans-serif; } .thumbnails img { height: 80px; border: 4px solid #555; padding: 1px; margin: 0 10px 10px 0; } .thumbnails img:hover { border: 4px solid #00ccff; cursor:pointer; } .thumbnails img:hover { border: 4px solid #00ccff; cursor:pointer; } .preview img { border: 4px solid #444; padding: 1px; height: 500px; } ------------ </code></pre> <p>Thanks in advance for any help :-)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload