Solved

Create a new template

Posted on 2016-11-12
9
30 Views
Last Modified: 2016-11-13
I want to do a div just like this:
website: https://www.tomsplanner.com/template-example/construction/
I just want this part:
And how when you hoover over it it turns
Could anyone help me out in this?
0
Comment
Question by:Jasmine Ikhreishi
  • 5
  • 4
9 Comments
 
LVL 52

Expert Comment

by:Julian Hansen
ID: 41884605
Why not use bootstrap
<stye type="text/css">
.blocks {
  background: #ff8416;
  color: white;
}
.blocks .div:nth-child(odd) {
   background: #fe5a0d;
} 
</style>

Open in new window

<div class="row blocks">
  <div class="col-md-4">Row 1 Col 1</div>
  <div class="col-md-4">Row 1 Col 2</div>
  <div class="col-md-4">Row 1 Col 3</div>
  <div class="col-md-4">Row 2 Col 1</div>
  <div class="col-md-4">Row 2 Col 2</div>
  <div class="col-md-4">Row 2 Col 3</div>
  <div class="col-md-4">Row 3 Col 1</div>
  <div class="col-md-4">Row 3 Col 2</div>
  <div class="col-md-4">Row 3 Col 3</div>
</div>

Open in new window

0
 
LVL 1

Author Comment

by:Jasmine Ikhreishi
ID: 41884608
Would it work for them to flip back when i hover over it with bootstrap?
0
 
LVL 1

Author Comment

by:Jasmine Ikhreishi
ID: 41884609
Ok so for each click I put an image correct, do I need a javascript code for it to flip and show the text?
0
 
LVL 52

Accepted Solution

by:
Julian Hansen earned 500 total points
ID: 41884619
Working sample for the above here
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 52

Expert Comment

by:Julian Hansen
ID: 41884620
Would it work for them to flip back when i hover over it with bootstrap?
Bootstrap provides the styling - you need to provide the code to flip it to show text.
0
 
LVL 1

Author Comment

by:Jasmine Ikhreishi
ID: 41884624
ok so I came up with this code on how to flip my images:
.panel {
    width: 300px;
    height: 300px;
    margin: auto;
    position: relative;
}

.card {
    width: 100%;
    height: 100%;
    -o-transition: all .5s;
    -ms-transition: all .5s;
    -moz-transition: all .5s;
    -webkit-transition: all .5s;
    transition: all .5s;
    -webkit-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    position: absolute;
    top: 0px;
    left: 0px;
}

.front {
    z-index: 2;
    background-image: url(http://img.afreecodec.com/images/v3/wp-content/uploads/2011/05/00_chrome_icon.jpg);
}

.back {
    z-index: 1;
    -webkit-transform: rotateX(-180deg);
    -ms-transform: rotateX(-180deg);
    -moz-transform: rotateX(-180deg);  
    transform: rotateX(-180deg);  
    background-image: url(http://www.digitaltrends.com/wp-content/uploads/2011/03/ie-9-icon.jpg);
}

.panel:hover .front {
    z-index: 1;
    -webkit-transform: rotateX(180deg);
    -ms-transform: rotateX(180deg);
    -moz-transform: rotateX(180deg);
    transform: rotateX(180deg);
}

.panel:hover .back {
    z-index: 2;   
    -webkit-transform: rotateX(0deg);
    -ms-transform: rotateX(0deg);
    -moz-transform: rotateX(0deg);
    transform: rotateX(0deg);
}

Open in new window

And this is my html code:
<div class="panel">
    <div class="front card">
    </div>
    <div class="back card">  
    </div>
</div>

Open in new window

But when I put it on my sign (which has contents in it), it clashes with my content, how can I put these images at the bottom?
0
 
LVL 1

Author Comment

by:Jasmine Ikhreishi
ID: 41884636
I opened a new question on my javascript, can you help?
0
 
LVL 1

Author Comment

by:Jasmine Ikhreishi
ID: 41884736
Hey it shows as one column and one on each row, how can i make it 2 columns with 2 on each row?
0
 
LVL 52

Expert Comment

by:Julian Hansen
ID: 41885820
Change the background images to content images - take them out of the style and update your markup
<div class="panel">
    <div class="front card">
		<p>Your custom content goes here</p>
		<img src="http://img.afreecodec.com/images/v3/wp-content/uploads/2011/05/00_chrome_icon.jpg" />
    </div>
    <div class="back card">  
		<p>Your custom content goes here</p>
		<img src="http://www.digitaltrends.com/wp-content/uploads/2011/03/ie-9-icon.jpg">
    </div>
</div>

Open in new window

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

939 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now