Last active
August 29, 2015 14:06
-
-
Save kshoufer/89ee5745e797129eb4fa to your computer and use it in GitHub Desktop.
Working with the DOM and Javascript - Example1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
<ul id="list1"> | |
<li><img id="image1" src="http://placehold.it/150x150/ff0000/fff&text=1"></li> | |
<li><img id="image2" src="http://placehold.it/150x150/00ff00/fff&text=2"></li> | |
<li><img id="image3" src="http://placehold.it/150x150/0000ff/fff&text=3"></li> | |
<li><img id="image4" src="http://placehold.it/150x150/555/fff&text=4"></li> | |
</ul> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ul { | |
display: inline-block; | |
} | |
ul li { | |
list-style: none; | |
float: left; | |
padding: 10px; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Working with the DOM and Javascript - Example1 | |
----------------------- | |
A [Pen](http://codepen.io/kshoufer/pen/ytgqK) by [Ken Shoufer](http://codepen.io/kshoufer) on [CodePen](http://codepen.io/). | |
[License](http://codepen.io/kshoufer/pen/ytgqK/license). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment