
October 9th, 2012, 10:45 PM
|
|
Registered User
|
|
Join Date: Oct 2012
Posts: 3
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%;
}
|