-
June 25th, 2013, 07:43 PM
#1
box not showing
Still somewhat of a beginning programmer. But having a small issue.
the box is obviously there as the information that goes within it populates when the link is clicked to populate the area. however the background does not show.
Code:
#main{
position: absolute;
display: block;
top: 183px;
width: 1280px;
min-height: 500px;
color: #ffffff;
}
#main background{
background-color: #000000;
opacity: 0.7;
}
i need the background element out separate so that only it goes transparent. Don't want the text transparent. If i modify the code to move the background-color property inside the #main id it will show the background. Can't figure out what i'm doing wrong. Any assistance would be helpful. Thank you.
Last edited by cypher5783; June 25th, 2013 at 07:55 PM.
-
June 26th, 2013, 07:06 AM
#2
Re: box not showing
your CSS is invalid, there's no tag named <background>.
if you created a <background> inside a tag with id #main that background tag will simply get ignored, you can't css it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|