CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: box not showing

  1. #1
    Join Date
    Aug 2006
    Dallas, TX

    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.

        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.

  2. #2
    Join Date
    Apr 2000
    Belgium (Europe)

    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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.