Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to either resize a div and move it or slide to hidden div?
    primarykey
    data
    text
    <p>I have a layout set up with my links as images for 4 of them 320x320px. They have a opacity change on hover. What i am looking to do now it either on click the box will expand to a pre-determined size with new content if at all possible. If not then navigate to a hidden div on the same page with the new content. Hope this makes sense.</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;link href="css/styles.css" rel="stylesheet" type="text/css"&gt; &lt;title&gt;Adam Sackfield's Portfolio&lt;/title&gt; &lt;script src="scripts/jquery-2.0.3.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(document).ready(function() { $("nav a").hover(function() { $(this).stop().animate({ opacity: 1 }, 300); }, function() { $(this).stop().animate({ opacity: 0.3 }, 300); }); }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="wrapper"&gt; &lt;header&gt; &lt;div id="logo"&gt; &lt;img src="images/logoarrows.jpg"&gt; &lt;/div&gt;&lt;!-- Logo Close --&gt; &lt;div id="social"&gt; &lt;/div&gt;&lt;!-- Social Close --&gt; &lt;/header&gt; &lt;nav&gt; &lt;a href="#" class="yellow"&gt;&lt;p class="yelinner"&gt;Home&lt;/p&gt;&lt;/a&gt; &lt;a href="#" class="pink"&gt;&lt;p class="pinkinner"&gt;About Me&lt;/p&gt;&lt;/a&gt; &lt;a href="#" class="purple"&gt;&lt;p class="purpinner"&gt;Portfolio&lt;/p&gt;&lt;/a&gt; &lt;a href="#" class="green"&gt;&lt;p class="greinner"&gt;Contact Me&lt;/p&gt;&lt;/a&gt; &lt;/nav&gt; &lt;section&gt; &lt;article&gt; &lt;/article&gt; &lt;aside&gt; &lt;/aside&gt; &lt;/section&gt; &lt;footer&gt; &lt;/footer&gt; &lt;/div&gt;&lt;!-- Wrapper Close --&gt; &lt;/body&gt; &lt;/html&gt; CSS * { margin: 0; padding: 0; } #wrapper { width: 800px; margin-left: auto; margin-right: auto; background-color: #000000; } header { width:1000px; height: 220px; } #wrapper header #logo { width: 400px; padding-left: 200px; } body { background: #111111; color: #FFF; font-family:’Open Sans’, sans-serif; font-weight: 300; font-size: 16pt; } a { color: #FFF; text-decoration: none; } nav { width: 800px; margin-top: 60px; padding-left: 75px; } #wrapper nav a { width: 320px; line-height: 320px; display: inline-block; margin: 4px; opacity: 0.3; text-align: center; } .yellow { background-image: url(../images/tiles/yellow.jpg); background-repeat:no-repeat; } .purple { background-image: url(../images/tiles/purple.jpg); background-repeat:no-repeat; } .pink { background-image: url(../images/tiles/pink.jpg); background-repeat:no-repeat; } .green { background-image: url(../images/tiles/green.jpg); background-repeat:no-repeat; } </code></pre>
    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