The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

(Phpbb2/CSS) Request : A simple caption effect in CSS

View previous topic View next topic Go down

Completed (Phpbb2/CSS) Request : A simple caption effect in CSS

Post by Raziel21 on April 5th 2013, 12:31 pm

Hello. I want to add a small popup description next to the images (not on top of them).
I need a simple guide of how to implement this (link provided, picture no.4) without using the image.
Description will be in the categories/sub-forum place - in the "Description" for the forum.

If possible, box corners should be rounded and box color should be #7B8052

http://css-tricks.com/examples/SlideinCaptions/




Last edited by Raziel21 on April 5th 2013, 2:54 pm; edited 1 time in total

Raziel21
Forumember

Male Posts : 86
Reputation : 0
Language : Serbian, English, Russian, Italiano, Espanol
Location : Belgrade, Serbia

http://mizuchi.forumotion.com/forum

Back to top Go down

Completed Re: (Phpbb2/CSS) Request : A simple caption effect in CSS

Post by levy on April 5th 2013, 1:03 pm

Add that in the description of category :
Code:
<figure class="cap-left">
   <img src="IMAGE LINK" alt="">
   <figcaption>
      yay!!!
   </figcaption>
</figure>

Replace Image link with your image and yahy!!! with your text , after that you add that in ACP ~> Display ~> Colours ~> CSS

Code:
figure {
  display: block;
  position: relative;
  float: left;
  overflow: hidden;
  margin: 0 20px 20px 0;
}
figcaption {
  position: absolute;
  background: black;
  background: rgba(0,0,0,0.75);
  color: white;
  padding: 10px 20px;
  opacity: 0;
  -webkit-transition: all 0.6s ease;
  -moz-transition:    all 0.6s ease;
  -o-transition:      all 0.6s ease;
}
figure:hover figcaption {
  opacity: 1;
}
figure:before {
  content: "?";
  position: absolute;
  font-weight: 800;
  background: black;
  background: rgba(255,255,255,0.75);
  text-shadow: 0 0 5px white;
  color: black;
  width: 24px;
  height: 24px;
  -webkit-border-radius: 12px;
  -moz-border-radius:    12px;
  border-radius:        12px;
  text-align: center;
  font-size: 14px;
  line-height: 24px;
  -moz-transition: all 0.6s ease;
  opacity: 0.75;
}
figure:hover:before {
  opacity: 0;
}

.cap-left:before {  bottom: 10px; left: 10px; }
.cap-left figcaption { bottom: 0; left: -30%; }
.cap-left:hover figcaption { left: 0; }

.cap-right:before { bottom: 10px; right: 10px; }
.cap-right figcaption { bottom: 0; right: -30%; }
.cap-right:hover figcaption { right: 0; }

.cap-top:before { top: 10px; left: 10px; }
.cap-top figcaption { left: 0; top: -30%; }
.cap-top:hover figcaption { top: 0; }

.cap-bot:before { bottom: 10px; left: 10px; }
.cap-bot figcaption { left: 0; bottom: -30%;}
.cap-bot:hover figcaption { bottom: 0; }

Good luck.

levy
Hyperactive

Male Posts : 2566
Reputation : 344
Language : Romanian, English
Location : Romania | Feel free to tag me into your topic if you have a problem

http://help.forumotion.com/

Back to top Go down

Completed Re: (Phpbb2/CSS) Request : A simple caption effect in CSS

Post by Raziel21 on April 5th 2013, 1:22 pm

That's fine, really, but that isn't what I asked.

myself wrote:Hello. I want to add a small popup description next to the images (not on top of them).
I need a simple guide of how to implement this (link provided, picture no.4) without using the image.
Description will be in the categories/sub-forum place - in the "Description" for the forum.

If possible, box corners should be rounded and box color should be #7B8052

Raziel21
Forumember

Male Posts : 86
Reputation : 0
Language : Serbian, English, Russian, Italiano, Espanol
Location : Belgrade, Serbia

http://mizuchi.forumotion.com/forum

Back to top Go down

Completed Re: (Phpbb2/CSS) Request : A simple caption effect in CSS

Post by BetterHax on April 5th 2013, 1:39 pm

its really nice Very Happy it woks Very Happy

BetterHax
Forumember

Posts : 304
Reputation : 3
Language : English,Tagalog
Location : United State, Philippines

Back to top Go down

Completed Re: (Phpbb2/CSS) Request : A simple caption effect in CSS

Post by Sir Chivas™ on April 5th 2013, 2:37 pm




Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please mark it as solved.



Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6756
Reputation : 428
Language : English, Spanish, and French
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Completed Re: (Phpbb2/CSS) Request : A simple caption effect in CSS

Post by Raziel21 on April 5th 2013, 2:44 pm

Excellent!

I'll make it to suit the style.

Raziel21
Forumember

Male Posts : 86
Reputation : 0
Language : Serbian, English, Russian, Italiano, Espanol
Location : Belgrade, Serbia

http://mizuchi.forumotion.com/forum

Back to top Go down

Completed Re: (Phpbb2/CSS) Request : A simple caption effect in CSS

Post by Sir Chivas™ on April 5th 2013, 2:48 pm

Is this solved? Or should I leave it open that's if you request help?



Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please mark it as solved.



Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6756
Reputation : 428
Language : English, Spanish, and French
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Completed Re: (Phpbb2/CSS) Request : A simple caption effect in CSS

Post by Jophy on April 5th 2013, 3:02 pm

Since this was marked complete, I'll move this now.

Last edited by Raziel21 on Fri 5 Apr - 1:54; edited 1 time in total

Topic Solved & Locked



Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum