javascript - CSS Rectangle As links -
i have 3 rectangles i've created css. want them clickable , link them file called "index.html". i've been searching on web not find way it. there way hovering mouse on rectangle have index.html file pop not open in new window? here snippet of have far:
.rec { height: 100px; width: 125px; } #d1 { background : lightgreen; border: 2px solid black; display: inline-block; left: 0%; } #r1 { background : red; border: 2px solid black; display: inline-block; left: 10%; position: relative; } #r3 { background : white; border: 2px solid black; display: inline-block; left: 20%; position: relative; }
you should see javascript , jquery tutorials. it's what, mostly, makes web pages interactive. although in here, best solution use
<a href="index.html"> it learn them, , incredible power. check fiddle here: http://jsfiddle.net/qjntjyyr/
as can see, it's quite simple. in next fiddle, i'm using event when mouse goes on squares. http://jsfiddle.net/qjntjyyr/1/
have fun it, can manipulate want.
Comments
Post a Comment