CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 9th, 2012, 10:45 PM
binahsaurus binahsaurus is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 3 binahsaurus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 53 m 21 sec
Reputation Power: 0
New Member - Help with overlaying text

Hello,

I'm working on re-doing the website for my company and I've run into some trouble with the overlaying texts.

The trouble can be seen at this page:

http://mpcwebsitetesting.mpcmachining.com/about.html

When I resize my browser window the text and box don't resize as well. I tried setting the dimension as % and then switched back to pixels all with no change. Can someone please tell me what I'm missing? The code is below:

Code:

HTML
<div class="container">
	<div class="image">
		<div class="img_caption">
		<h5>About Us</h5>
		<p>Lorem Ipsum
		</div>
		<img src="img/image_010.jpg" width="100%" >
       </div>
</div>

CSS
#image{
	float: left;
	position: relative;
	}

div.img_caption {
	background: #000;
	background: rgba(0, 0, 0, 0.8);
	filter:alpha(opacity=60); /* IE transparency */  
	margin-top: 2%;
	margin-bottom: 2%;
	margin-left: .5%;
	width: 600px;
	height: auto;
	bottombottom:0px; /* position will be on bottom */  
	display:block;
	position: absolute;
	}
	
div.img_caption  p {
	font-family: 'Oxygen Mono', sans-serif;
	font-size:70%;
	color: #CCCCCC;
	margin-left: 2%;
	margin-right: 2%;
	}

Reply With Quote
  #2  
Old October 10th, 2012, 05:23 AM
HemZone HemZone is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2012
Posts: 7 HemZone User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 23 m 17 sec
Reputation Power: 0
Hi,

There is few ways to fix your issue.

I'm explaining one of them. Add/Edit your css with

div.img_caption {z-index: 500; position: relative;}
add style to <img src="img/image_010.jpg" width="100%" style="margin-top: -554px; z-index: 50;position: relative;">

I'm using inline css for your idea. You can make class and apply to tht image.

Thanks

Reply With Quote
  #3  
Old October 11th, 2012, 05:49 PM
binahsaurus binahsaurus is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 3 binahsaurus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 53 m 21 sec
Reputation Power: 0
Thanks so much! It fixed the problem with resizing, however now there's a huge gap between the nav bar and the image and blocks.

Here's what I entered:

HTML:
Code:
<div class="image">
<div class="img_caption">
<p>blah blah blah
<img src="img/image_010.jpg" width="100%" style="margin-top: -554px; z-index: 50; position: relative;">
</div>


CSS:

Code:
div.img_caption {
	background: #000;
	background: rgba(0, 0, 0, 0.8);
	filter:alpha(opacity=60); /* IE transparency */  
	margin-top: 2%;
	margin-bottom: 2%;
	margin-left: .5%;
	width: 45%;
	height: auto;
	bottombottom:0px; /* position will be on bottom */  
	display:block;
	z-index: 500; 
	position: relative;	
	}


I'm going to keep playing around with it. If you can think of any tips however they'd be greatly appreciated.

Thank you again.

Reply With Quote
  #4  
Old October 11th, 2012, 05:52 PM
binahsaurus binahsaurus is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 3 binahsaurus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 53 m 21 sec
Reputation Power: 0
Never mind .. looks like I solved it. Had a total "Oh, duh!" moment after I hit post. I just adjusted the

Code:
style="margin-top: -620px;




Thanks for your help!

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > New Member - Help with overlaying text

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap