Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
Centered Image
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="BR4DLEY" data-source="post: 341583" data-attributes="member: 10966"><p>The CSS code?</p><p>[CODE]div.mc-image {</p><p> -webkit-transition: opacity 1s ease-in-out;</p><p> -moz-transition: opacity 1s ease-in-out;</p><p> -o-transition: opacity 1s ease-in-out;</p><p> transition: opacity 1s ease-in-out;</p><p> -webkit-background-size: cover;</p><p> -moz-background-size: cover;</p><p> -o-background-size: cover;</p><p> background-size: cover;</p><p> background-position: center center;</p><p> background-repeat: no-repeat;</p><p> height: 100%;</p><p> overflow: hidden;</p><p> width: 100%;</p><p>}</p><p></p><p>.in-slide-content div.info-slide {</p><p> background: #FFF url(images/info.png) no-repeat left bottom;</p><p> background-size: 46px 46px;</p><p> position: absolute;</p><p> top: 30px;</p><p> left: 30px;</p><p> width: 46px;</p><p> height: 46px;</p><p> margin: 0;</p><p> display: block;</p><p> text-indent: 10px;</p><p> -moz-border-radius: 23px;</p><p> -webkit-border-radius: 23px;</p><p> border-radius: 23px;</p><p> cursor: pointer;</p><p> z-index: 1000;</p><p> -ms-filter: "progid: DXImageTransform.Microsoft.Alpha(Opacity=50)";</p><p> filter: alpha(opacity=0.5);</p><p> opacity: 0.5;</p><p> -webkit-transition: all 0.3s;</p><p> -moz-transition: all 0.3s;</p><p> -o-transition: all 0.3s;</p><p> -ms-transition: all 0.3s;</p><p> transition: all 0.3s;</p><p>}</p><p></p><p>.in-slide-content div.info-slide:hover {</p><p> width: 200px;</p><p> background: #FFF;</p><p> position: absolute;</p><p> bottom: 40px;</p><p> padding: 10px 20px;</p><p> text-indent: 0px;</p><p> moz-border-radius: 0px;</p><p> -webkit-border-radius: 0px;</p><p> border-radius: 0px;</p><p> z-index: 1000;</p><p> -ms-filter: "progid: DXImageTransform.Microsoft.Alpha(Opacity=100)";</p><p> filter: alpha(opacity=1);</p><p> opacity: 1;</p><p>}</p><p></p><p>.in-slide-content h2, .in-slide-content p {</p><p> padding: 0;</p><p> margin: 0;</p><p> font-size: 12px;</p><p> line-height: 24px;</p><p>}</p><p></p><p>.in-slide-content h2 {</p><p> font-size: 14px;</p><p> color: #444;</p><p> text-shadow: none;</p><p> font-weight: normal;</p><p> text-transform: uppercase;</p><p> z-index: 1001;</p><p> position: relative;</p><p> white-space: nowrap;</p><p>}</p><p></p><p>.info-slide p {</p><p> color: #aaa;</p><p> font-size: 13px;</p><p> text-shadow: none;</p><p> z-index: 1001;</p><p> position: relative;</p><p> margin: 0;</p><p> font-weight: normal;</p><p> white-space: nowrap;</p><p>}</p><p></p><p>.in-slide-content div.info-slide h2 {</p><p> display: none;</p><p> padding: 10px 10px 0 10px;</p><p>}</p><p></p><p>.in-slide-content div.info-slide p {</p><p> display: none;</p><p> padding: 0px 10px 10px 10px;</p><p>}</p><p></p><p>.in-slide-content div.info-slide:hover h2, .in-slide-content div.info-slide:hover p {</p><p> display: inherit;</p><p> padding: 0;</p><p>}[/CODE]</p></blockquote><p></p>
[QUOTE="BR4DLEY, post: 341583, member: 10966"] The CSS code? [CODE]div.mc-image { -webkit-transition: opacity 1s ease-in-out; -moz-transition: opacity 1s ease-in-out; -o-transition: opacity 1s ease-in-out; transition: opacity 1s ease-in-out; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; background-position: center center; background-repeat: no-repeat; height: 100%; overflow: hidden; width: 100%; } .in-slide-content div.info-slide { background: #FFF url(images/info.png) no-repeat left bottom; background-size: 46px 46px; position: absolute; top: 30px; left: 30px; width: 46px; height: 46px; margin: 0; display: block; text-indent: 10px; -moz-border-radius: 23px; -webkit-border-radius: 23px; border-radius: 23px; cursor: pointer; z-index: 1000; -ms-filter: "progid: DXImageTransform.Microsoft.Alpha(Opacity=50)"; filter: alpha(opacity=0.5); opacity: 0.5; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; -o-transition: all 0.3s; -ms-transition: all 0.3s; transition: all 0.3s; } .in-slide-content div.info-slide:hover { width: 200px; background: #FFF; position: absolute; bottom: 40px; padding: 10px 20px; text-indent: 0px; moz-border-radius: 0px; -webkit-border-radius: 0px; border-radius: 0px; z-index: 1000; -ms-filter: "progid: DXImageTransform.Microsoft.Alpha(Opacity=100)"; filter: alpha(opacity=1); opacity: 1; } .in-slide-content h2, .in-slide-content p { padding: 0; margin: 0; font-size: 12px; line-height: 24px; } .in-slide-content h2 { font-size: 14px; color: #444; text-shadow: none; font-weight: normal; text-transform: uppercase; z-index: 1001; position: relative; white-space: nowrap; } .info-slide p { color: #aaa; font-size: 13px; text-shadow: none; z-index: 1001; position: relative; margin: 0; font-weight: normal; white-space: nowrap; } .in-slide-content div.info-slide h2 { display: none; padding: 10px 10px 0 10px; } .in-slide-content div.info-slide p { display: none; padding: 0px 10px 10px 10px; } .in-slide-content div.info-slide:hover h2, .in-slide-content div.info-slide:hover p { display: inherit; padding: 0; }[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Centered Image
Top