cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <div class="container-fluid">

	<h1 class="title">SUN SIGNS</h1>
		<div class="row">
			<div class="col-md-6 icon-group">
				
				<div class="cool-hover" id="Pisces"><a href="#" onclick="getHoro(1)"><img class="horoIcon" src="http://s13.postimg.org/bai43mjdz/pis.png"></a><br></div>
				<div class="cool-hover" id="Aquarius"><a href="#"onclick="getHoro(2)"><img class="horoIcon" src="http://s13.postimg.org/8k8s6fmp3/aqu.png"></a></div>
				<div class="cool-hover" id="Capricorn"><a href="#"onclick="getHoro(3)"><img class="horoIcon" src="http://s13.postimg.org/kd6lanj53/cap.png"></a></div>
				<div class="cool-hover" id="sagittarius"><a href="#" onclick="getHoro(4)"><img class="horoIcon" src="http://s13.postimg.org/osp0fwvjb/sag.png"></a></div><br>
				<div class="cool-hover" id="scorpio"><a href="#"onclick="getHoro(5)"><img class="horoIcon" src="http://s13.postimg.org/k87feq17r/scorp.png"></a></div>
				<div class="cool-hover" id="libra"><a href="#"onclick="getHoro(6)"><img class="horoIcon" src="http://s13.postimg.org/jrhmejo2v/libra.png"></a></div>
				<div class="cool-hover" id="virgo"><a href="#"onclick="getHoro(7)"><img class="horoIcon" src="http://s13.postimg.org/m2k9wgo87/virgo.png"></a></div>
				<div class="cool-hover" id="leo"><a href="#"onclick="getHoro(8)"><img class="horoIcon" src="http://s13.postimg.org/pd41ilorr/leo.png"></a></div><br>
				<div class="cool-hover" id="cancer"><a href="#"onclick="getHoro(9)"><img class="horoIcon" src="http://i67.tinypic.com/1zvx4q0.png"></a></div>
				<div class="cool-hover" id="gemini"><a href="#"onclick="getHoro(10)"><img class="horoIcon" src="http://s13.postimg.org/cj5zp9bc3/gem.png"></a></div>
				<div class="cool-hover" id="taurus"><a href="#"onclick="getHoro(11)"><img class="horoIcon" src="http://s13.postimg.org/gpvfic0br/taurus.png"></a></div>
				<div class="cool-hover" id="aries"><a href="#"onclick="getHoro(12)"><img class="horoIcon" src="http://s13.postimg.org/u7xqgvn3b/aries.png"></a></div>
		</div>

		<div class="col-md-6 horoscope-content">
			<h1 id="zodiac"></h2>
			<p id="fortune"></p>
		</div>

	</div>
            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Open+Sans:600);

body {
	background-color: #ffffff;
	color: black;
	font-family: 'Open Sans', sans-serif;
}

.title {
	letter-spacing: 1.0em;
}


.horoIcon {
	height: 50px;
	width: 50px;
	margin: 20px 15px 20px 15px;
	padding: 5px;
}

.cool-hover {
	display: inline-block;
	background-image: linear-gradient(to right, transparent 50%, #7313D3 50%);
	background-size: 200%;
	transition: all 0.4s;
}

.cool-hover:hover {
	background-position: -100%;
}


.icon-group{
	position: relative;
	left: 20px;
	top: 30px;
	
}

.horoscope-content {
	padding: 50px;
	line-height: 180%;
	font-size: 14px;
}

.icon-group p {
	position: relative;
	left: 15px;
}
            
          
!
            
              var capricornFortune = "Your position in your social circle is about to skyrocket, so get ready! You've got the connections and the ideas to make your friends amazingly happy right now, and they know it! So have a little bit more faith. You are still very much loved by your friends! They will prove it to you soon enough when they start calling about what to do next weekend. It's time to pull out that plan you've had in your back pocket -- you know, the one that you think they'll never go for? This time, they will."
var aquariusFortune = "People who do not realize what they are doing will exert a major influence over your day, so you need to stay extra-aware if you want to keep your cool right now. The drivers next to you? They're all chatting away on their cell phones, oblivious to the fact that their left turn signal has been on for ten miles. Zen it out. Don't let it get to you. Just keep your distance from clueless folks and realize that they will get their just desserts. Focus on what you're doing all the more."
var ariesFortune = "Your level of artistic inspiration is very high today, Aries. Dreams or meditation may have brought up some spiritual insights and revelations for you, and you may have promptly forgotten them upon coming out of your dream or meditative state. This could prove very frustrating for you! Try writing them down even if you only remember snatches. This can actually bring them to the surface again. You'll want a record of them anyway."
var taurusFortune = "A delivery of some kind that you were expecting to come from far away might be delayed, causing you to wonder if it might have been lost. It hasn't, Taurus; it's just delayed. Unfortunately, there isn't much you can do but wait. Equipment you use on the job could go out of whack today, necessitating calling in a repairman. This could set your work back some and make you a bit antsy. Try to find something else to do!"
var geminiFortune = "Today you're likely to be feeling especially passionate, sexy, and desirous of a romantic encounter, Gemini. You might even have a hot date scheduled. However, don't be surprised if it has to be postponed for reasons beyond the control of either you or your partner. If you can't do otherwise, you might try to sublimate those feelings through creative activities. Engrossing novels and movies could also prove a good outlet, although never as good as the real thing!"
var cancerFortune = "A female visitor who might have a few problems might come to your door wanting advice and sympathy, Cancer. She could have some other news that could come as a shock to you. A crisis on the job might make it necessary for you or your partner to spend most of the time today away from home and family. This could be frustrating, particularly if you have to cancel your plans. Hang in there!"
var leoFortune = "Tasks of any kind are all likely to seem like the labors of Hercules today, Leo. Overwork and nerve strain could have you feeling a little bit under the weather today, and it might be a good idea for you to take some time alone to rest. If you can't do that, at least try to take things easy. Some unexpected changes in your community might have your neighbors' tongues wagging. Be sure to check out the facts before jumping to any conclusions."
var virgoFortune = "Money matters might be weighing on the mind of a close friend or lover and your advice could be sought. A creative project of some kind may require a larger expenditure of money, time, or other resources than you originally thought, and this could have you wondering if you'll be able to continue with it. It might take a little corner cutting on your part, Virgo, but you should be able to complete it as planned."
var libraFortune = "You might have visitors, Libra, or even a hot date scheduled for tonight, but by mid-afternoon you might be feeling too tired to go through with it and wondering if you should cancel. It's best to keep your activities low key. Have coffee and snacks at home instead of going out, and get the snacks from the store! Your evening is likely to be full of exciting and stimulating conversations, so you'll be glad you stuck with your plans."
var scorpioFortune = "Deliveries you may be expecting could be delayed or held up. Today you might learn something shocking about a neighbor or relative, and gossip might spread very rapidly through your community. This could have you reeling even though it might be exaggerated. You could pay visits to a few people nearby, Scorpio, or spend a lot of time on the phone trying to learn the truth. Don't take anything you hear today at face value."
var sagittariusFortune = "Some good but surprising news about a group with which you may be affiliated could come your way today, Sagittarius. Perhaps fundraising activities have been more successful than you thought, or perhaps recognition is coming your way. A lot of paperwork may have to be completed before this can be made to work for you, however. Contracts or other legal papers might be involved. In the evening, go out with your friends and celebrate."
var piscesFortune = "Today may start out being a very frustrating day, Pisces. Be prepared! Some equipment with which you work might suddenly go out of order and it could take a while to get it fixed. A temporary separation from a romantic partner could also be disappointing. You may have a lot of physical energy for which you have little immediate outlet. Take a long walk. This could not only provide an energy outlet but clear your head as well."



function getHoro(x) {
	var zodiac = document.getElementById('zodiac')
	var fortune = document.getElementById('fortune')
	if(x === 1){
		zodiac.innerHTML = "Pisces"
		fortune.innerHTML = piscesFortune
	}else if(x === 2){
		zodiac.innerHTML = "Aquarius"
		fortune.innerHTML = aquariusFortune
	} else if(x === 3){
		zodiac.innerHTML = "Capricorn"
		fortune.innerHTML = capricornFortune
	} else if(x === 4){
		zodiac.innerHTML = "Sagittarius"
		fortune.innerHTML = sagittariusFortune
	} else if(x === 5){
		zodiac.innerHTML = "Scorpio"
		fortune.innerHTML = scorpioFortune
	} else if(x === 6){
		zodiac.innerHTML = "Libra"
		fortune.innerHTML = libraFortune
	} else if(x === 7){
		zodiac.innerHTML = "Virgo"
		fortune.innerHTML = virgoFortune
	} else if(x === 8){
		zodiac.innerHTML = "Leo"
		fortune.innerHTML = leoFortune
	} else if(x === 9){
		zodiac.innerHTML = "Cancer"
		fortune.innerHTML = cancerFortune
	} else if(x === 10){
		zodiac.innerHTML = "Gemini"
		fortune.innerHTML = geminiFortune
	} else if(x === 11){
		zodiac.innerHTML = "Taurus"
		fortune.innerHTML = taurusFortune
	} else if(x === 12){
		zodiac.innerHTML = "Aries"
		fortune.innerHTML = ariesFortune
	} 
}
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console