Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-31-2012, 01:41 PM   PM User | #1
Fr33z
New to the CF scene

 
Join Date: Dec 2012
Location: Belgium
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Fr33z is an unknown quantity at this point
Arrow Overflow problem

Hi guys!

i've a problem with my overflow of 2 div's.

I want to be the product div holding a image, and the productinfo is a black cover. I want the productinfo div to position it down and later i want to use it with CSS3 transition to bring more info.

So with this code, at the moment, my 2nd div (productinfo) keeps visible when i move it down and I want it to be hidden. That why I use (overflow:hidden in my product CSS style.

Can someone help me?

CSS:
Code:
.product {
	width: 187px;
	height: 187px;
	margin-top: 10px;
	margin-left: 10px;
	margin-right: 10px;
	float: left;
	border: 1px solid #000;
	overflow: hidden;
             backrgound-image: ...;
}
.productinfo {
	background-color: rgba(0,0,0,0.7);
	border-radius: 11px;
	width: 187px;
	height: 187px;
	border: 1px solid #000;
	float: left;
	top: 125px;
	position: absolute;
}
and for my HTML
Code:
<div class="product">
    <div class="productinfo"></div></div>

Thanks for all the help!!
Fr33z is offline   Reply With Quote
Old 12-31-2012, 02:51 PM   PM User | #2
COBOLdinosaur
Regular Coder

 
COBOLdinosaur's Avatar
 
Join Date: Jul 2002
Location: Canada
Posts: 293
Thanks: 0
Thanked 18 Times in 18 Posts
COBOLdinosaur is an unknown quantity at this point
If you want it hidden then you need to use display:none;

overflow deals with how to handle content when it is too big to fit in its container.
__________________
100% standards compliant code is 100% correct 100% of the time.
one of my toys from my repository and perhaps some help getting help

Cd&
COBOLdinosaur is offline   Reply With Quote
Old 01-01-2013, 03:35 PM   PM User | #3
Fr33z
New to the CF scene

 
Join Date: Dec 2012
Location: Belgium
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Fr33z is an unknown quantity at this point
No, i think i've explained my problem to bad...

I've seen this example on YouTube... (http://www.youtube.com/watch?v=wZwnBkUDK9Q)

now i've used the CSS3 propetry, opacity, but it doesn't gives the perfect transistion...

Maybe someone can give the CSS style he used for getting the 2nd div positioning on the bottom..

And also, Happy Newyear!!!
Fr33z is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:07 AM.


Advertisement
Log in to turn off these ads.