Advertisement

08.23.2008 at 08:07PM PDT, ID: 23673206
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.0

GIF images with transparent backgrounds dont display on my page

Asked by BoggyBayouBoy in Cascading Style Sheets (CSS)

I have a CSS section entitled #ExtraDiv1.  It looks like so...

#extraDiv1 {
      position: absolute;
      top: 10px;
      left: 490px;
      background: url(../Data/Assets/theme_one/Misc/myImage.gif) no-repeat;
      width: 285px;
      height: 483px;
      }

When I try to put in an image that has a transparent background, I get nothing.  If I put in a regular GIF with a non-transparent background, it displays just fine.   aaarggh!  I'm banging my head.   Below is the full CSS.


#holderBody
{
      background:none;
}

#holderBody strong
{
      font-weight:bold;
}

#holderBody a
{
      text-decoration:underline;
}

#holderBody p
{
      margin:auto;
}

#holder
{
      border: 1px solid #ccc;
      padding: 10px;
      margin: 5px;
      text-align: left;
      font-size:14px;
}



/*
================================================
      Yahoo GUI Reset CSS
      http://developer.yahoo.com/yui/reset/
================================================
*/


body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {
      margin:0;
      padding:0;
}
table {
      border-collapse:collapse;
      border-spacing:0;
}
fieldset,img {
      border:0;
}
address,caption,cite,code,dfn,em,strong,th,var {
      font-style:normal;
      font-weight:normal;
}
ol,ul {
      list-style:none;
}
caption,th {
      text-align:left;
}
h1,h2,h3,h4,h5,h6 {
      font-size:100%;
      font-weight:normal;
}
q:before,q:after {
      content:'';
}
abbr,acronym { border:0;
}


/*
====================================
Start Theme One Styling
====================================
*/

body
{
      
      font: 11px arial, verdana, sans-serif;
      color: #fff;
      background: #000 url(../Data/Assets/theme_one/Misc/page_background2.gif) repeat-y;
      margin: 0px;

}

#Container
{
padding: 0px 0px 0px 0px;  
      margin: 0px 0px 0px 0px;
      width: 780px;
}

#Header
{
      background: url(../Data/Assets/theme_one/misc/topbg.jpg) no-repeat top left;
      margin-top: 0px;
      margin-bottom: 0px;
      width: 780px;
      height: 215px;
      /*text-indent: -1000px; */
}

h1#Logo
{
      background-image:url(../Data/Assets/theme_one/Feature/Home_Feature2.gif);
      text-indent:-10000px; /*Used to hide the text off screen */
      height:91px;
      width:221px;
      float:left;
}

h1#Logo a
{
      display:block;
      height:100%;
}


#Navi
{
      float:right;
      height:91px;
      font-size:20px;
}

#Navi li
{
      float:left;
      display:block;
      /*background-color:green;*/ /* Used for debug */
      line-height:91px;
      margin:0 0 0 17px;
}


#Navi li a
{
      color:#FFFFFF;
      text-decoration:none;
      display:block;
}

#Navi li a:hover, #Navi li.Selected a
{
      color:#FF6D00;
}


#Content
{
      padding:15px 0 0 0;
  clear:both;
}

#HomeFeature
{
      background-image:url(../Data/Assets/theme_one/Feature/Home_Feature.gif);
      background-repeat:no-repeat;
      height:168px;
      text-indent:-10000px; /*Used to hide the text off screen */
}

#ContentContainer
{
      margin:24px 0 0 15px;
      /*background-color:red;*/ /* Used for debug */
}

#MainContent
{
      width:515px;
      float:left;
      font-size:14px;
      /*background-color:purple;*/ /* Used for debug */
}

#MainContent h3
{
      font-size: 20px;
      color:#ff6300;
}

#MainContent p
{
      margin:10px 0 10px 0;
}

#MainContent a
{
      color:#FF6300;
      text-decoration:underline;
}

#MainContent a:hover
{
      color:#FF6300;
      text-decoration:none;
}

/*
==========================================
Gallery List
==========================================
*/

#MainContent .GalleryList
{
      margin:15px 0 0 -10px;
      width:424px;
}

#MainContent .GalleryList .Item
{
      float:left;
      width:96px;
      margin:0 0 10px 10px;
}


#MainContent .GalleryList .Item a img
{
      padding:2px;
      border:1px solid black;
}

#MainContent .GalleryList .Item a:hover img
{
      padding:2px;
      border:1px solid black;
      background-color:black;
}

#MainContent .GalleryList .Item strong a
{
      display:block;
      margin:5px 0 0 0;
}

#MainContent .GalleryList .Item em
{
      display:block;
      font-size:12px;
}


#MainContent .Photo img
{
      /* This ensures the photos is resized to fit the div */
      max-width:100%;
}

#MainContent .Photo .PhotoNav
{
      display:block;
}

#MainContent .Photo .PhotoNav .Left
{
      float:left;
}

#MainContent .Photo .PhotoNav .Right
{
      float:right;
}

/*
==========================================
News List
==========================================
*/

#MainContent ul.NewsList
{
 margin:15px 0 0 0;
}


#MainContent ul.NewsList li
{
 margin:0 0 15px 0;
}

#MainContent ul.NewsList li a
{
 display:block;
}

#MainContent ul.NewsList li a.Event
{
      background-image:url(../Data/Assets/theme_one/Misc/event_icon.gif);
      background-repeat:no-repeat;
      background-position:0px 8px;
      padding:6px 8px 7px 18px;
}

#MainContent ul.NewsList li a.News
{
      background-image:url(../Data/Assets/theme_one/Misc/news_icon.gif);
      background-repeat:no-repeat;
      background-position:0px 8px;
      padding:6px 8px 7px 18px;
}

#MainContent .EventItem strong
{
      display:block;
}


/*
==========================================
Contact Form
==========================================
*/
#MainContent .ContactForm .Error
{
      border-top:2px solid #FFD324;
      border-bottom:2px solid #FFD324;
      background-color:#FFF6BF;
      color:#000000;
      font-weight:bold;
      margin:18px 25px 31px 0;
      padding:9px 0 10px 50px;
      background-image:url(../Data/Assets/theme_one/Misc/error_icon.gif);
      background-repeat:no-repeat;
      /*background-position:15px 50%;*/
      background-position:15px 12px;
}

#MainContent .ContactForm .Error li
{
      font-weight:normal;
}

#MainContent .ContactForm fieldset
{
      border:0px solid #000000;
      display:block;
      margin:15px 0 15px 0;
      width:90%;
}

#MainContent .ContactForm legend
{
      display:none;
}

#MainContent .ContactForm label
{
      color:#000000;
      font-weight:bold;
}

#MainContent .ContactForm .TextBox
{
      border:1px solid #CACACA;
      display:block;
      font-family:Arial,Helvetica,sans-serif;
      font-size:12px;
      font-weight:normal;
      padding:3px 4px 2px 3px;
      width:100%;
}

#MainContent .ContactForm .TextArea
{
      border:1px solid #CACACA;
      display:block;
      font-family:Arial,Helvetica,sans-serif;
      font-size:12px;
      font-weight:normal;
      padding:3px 4px 2px 3px;
      height:90px;
      width:100%;
}

/*
==========================================
VCard Styling
==========================================
*/

.vcard .n
{
      font-weight:bold;
}

.vcard .tel
{
      background-image:url(../Data/Assets/theme_one/Misc/phone_icon.gif);
      background-repeat:no-repeat;
      background-position:6px 0px; /* Left:6px Top:0px */
      padding:2px 0 3px 22px;
      margin:15px 0 0 0;
      display:block;
      color:#000000;
}

.vcard .email
{
      background-image:url(../Data/Assets/theme_one/Misc/email_icon.gif);
      background-repeat:no-repeat;
      background-position:0px 2px; /* Left:0px Top:2px */
      text-decoration:underline;
      padding:0 0 1px 22px;
      margin:0;
      display:block;
      color:#000000;
}

.vcard .url
{
      background-image:url(../Data/Assets/theme_one/Misc/web_icon.gif);
      background-repeat:no-repeat;
      background-position:0px 2px; /* Left:0px Top:2px */
      text-decoration:underline;
      padding:1px 0 2px 22px;
      margin:0;
      display:block;
      color:#000000;
}

.vCardDl
{
      background-image:url(../Data/Assets/theme_one/Misc/vcard_icon.gif);
      background-repeat:no-repeat;
      background-position:0px 2px; /* Left:0px Top:2px */
      padding:0 0 0 22px;
      margin:15px 0 50px 0;
      color:#000000;
}


/*
==========================================
Email A Friend
==========================================
*/
#MainContent .EmailFriendForm .Error
{
      border-top:2px solid #FFD324;
      border-bottom:2px solid #FFD324;
      background-color:#FFF6BF;
      color:#000000;
      font-weight:bold;
      margin:18px 25px 31px 0;
      padding:9px 0 10px 50px;
      background-image:url(../Data/Assets/theme_one/Misc/error_icon.gif);
      background-repeat:no-repeat;
      /*background-position:15px 50%;*/
      background-position:15px 12px;
}

#MainContent .EmailFriendForm .Error li
{
      font-weight:normal;
}

#MainContent .EmailFriendForm fieldset
{
      border:0px solid #000000;
      display:block;
      margin:15px 0 15px 0;
      width:90%;
}

#MainContent .EmailFriendForm legend
{
      display:none;
}

#MainContent .EmailFriendForm label
{
      color:#000000;
      font-weight:bold;
}

#MainContent .EmailFriendForm .TextBox
{
      border:1px solid #CACACA;
      display:block;
      font-family:Arial,Helvetica,sans-serif;
      font-size:12px;
      font-weight:normal;
      padding:3px 4px 2px 3px;
      width:100%;
}

#MainContent .EmailFriendForm .TextArea
{
      border:1px solid #CACACA;
      display:block;
      font-family:Arial,Helvetica,sans-serif;
      font-size:12px;
      font-weight:normal;
      padding:3px 4px 2px 3px;
      height:90px;
      width:100%;
}



/*
==========================================
Search Results
==========================================
*/


#MainContent #xsltsearch #xsltsearch_summary strong
{
      font-weight:bold;
}

#MainContent #xsltsearch .xsltsearch_description strong
{
      background-color:#FFF6BF;
      padding:0 2px 0 2px;
}

#MainContent #xsltsearch .xsltsearch_form .input
{
      border:1px solid #bcbcbc;
      padding:3px 7px 4px 4px;
      font-size:11px;
}

#MainContent #xsltsearch #xsltsearch_stats
{
      font-size:12px;
      font-style:italic;
}


/*
==========================================
Secondary Content
==========================================
*/


#SecondaryContent
{
      float:right;
      width:240px;
      font-size:13px;
      /*background-color:blue;*//* Used for debug */
      padding:0 0 80px 0;
}

#SecondaryContent h3
{
      font-size: 20px;
      color:#ff6300;
}

#SecondaryContent a
{
      color:#000000;
      text-decoration:underline;
}

#SecondaryContent a:hover
{
      color:#000000;
      text-decoration:none;
}

#SecondaryContent a.RSSLink
{
      background-image:url(../Data/Assets/theme_one/Misc/rss_icon.gif);
      background-repeat:no-repeat;
      background-position:0 3px;
      padding:0 0 8px 23px;
      text-decoration:underline;
      display:block;
}

#SecondaryContent a.RSSLink:hover
{
      text-decoration:none;
      display:block;
}

#NewsSecondaryHeader
{
      background-image:url(../Data/Assets/theme_one/Misc/rss_icon.gif);
      background-repeat:no-repeat;
      background-position:0 6px;
      padding:0 0 0 23px;
}

#SecondaryContent ul#NewsList
{
      margin:12px 0 0 0;
}

#SecondaryContent ul#NewsList li
{
      margin:0 0 6px 0;
      font-size:13px;
}

#SecondaryContent ul#NewsList li strong
{
      font-weight:bold;
}

#SecondaryContent ul#NewsList li.Event a
{
      display:block;
      background-color:#F9F9F9;
      border-top:3px solid #E2E2E2;
      border-bottom:3px solid #E2E2E2;
      padding:8px 8px 7px 27px;
      color:#808080;
      text-decoration:none;
      background-image:url(../Data/Assets/theme_one/Misc/event_icon.gif);
      background-repeat:no-repeat;
      background-position:7px 8px;
}

#SecondaryContent ul#NewsList li.News a
{
      display:block;
      background-color:#F9F9F9;
      border-top:3px solid #E2E2E2;
      border-bottom:3px solid #E2E2E2;
      padding:8px 8px 7px 27px;
      color:#808080;
      text-decoration:none;
      background-image:url(../Data/Assets/theme_one/Misc/news_icon.gif);;
      background-repeat:no-repeat;
      background-position:7px 8px;
}

#SecondaryContent ul#NewsList li a:hover
{
      background-color:#FFECCC;
      border-top:3px solid #FFA200;
      border-bottom:3px solid #FFA200;
      color:#FF6300;
      text-decoration:none;
}

#SecondaryContent #SearchSecondaryHeader
{
      margin:30px 0 0 0;
}

#SecondaryContent form
{
      margin:0 0 30px 0;
}

#SecondaryContent form input.Submit
{
      cursor:pointer;
      background-color:transparent;
      background-image:url(../Data/Assets/theme_one/Misc/search_button.gif);
      background-repeat:no-repeat;
      background-position:0px -16px;
      border:none;
      height:16px;
      text-indent:-10000px;
      width:18px;
      padding:0;
      margin:0;
}

#SecondaryContent form input.Submit:hover, #SecondaryContent form input.Submit:active
{
      cursor:pointer;
      background-color:transparent;
      background-image:url(../Data/Assets/theme_one/Misc/search_button.gif);
      background-repeat:no-repeat;
      background-position:0px 0px;
      border:none;
      height:16px;
      text-indent:-10000px;
      width:18px;
}

#SecondaryContent form input
{
      border:1px solid #bcbcbc;
      padding:3px 7px 4px 4px;
      font-size:11px;
      width:150px;
}

#SecondaryContent a.EmailFriend
{
      background-image:url(../Data/Assets/theme_one/Misc/email_a_friend.gif);
      background-repeat:no-repeat;
      background-position: top left;
      padding:0 0 0 22px;
      text-decoration:underline;
      color:#000000;
}

#SecondaryContent a.EmailFriend:hover
{
      text-decoration:none;
}

#Footer
{
      clear:both;
      min-height:40px;
      line-height:40px; /* This vertically centers the text */
      font-size:12px;
      padding:0 0 0 15px;
}

#Footer a
{
      color:#808080;
      text-decoration:none;
}

#Footer a:hover
{
      color:#808080;
      text-decoration:underline;
}

#Footer .ValidXhtml
{
      padding:0 0 0 19px;
      background-image:url(../Data/Assets/theme_one/Misc/valid_icon.gif);
      background-repeat:no-repeat;
      margin:0 0 0 15px;
      color:#61AB49;
}

#Footer a.ValidXhtml:hover
{
      color:#61AB49;
      text-decoration:underline;
}
#extraDiv1 {
      position: absolute;
      top: 10px;
      left: 490px;
      background: url(../Data/Assets/theme_one/Misc/valid_icon.gif) no-repeat;
      width: 285px;
      height: 483px;
      }
      
#extraDiv2 {
      position: absolute;
      top: 1000px;
      left: 0px;
      background: url(flyerdude.jpg) no-repeat;
      width: 255px;
      height: 339px;
      }
Start Free Trial
[+][-]08.24.2008 at 09:17AM PDT, ID: 22301135

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.24.2008 at 10:10AM PDT, ID: 22301318

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.24.2008 at 05:11PM PDT, ID: 22302499

View this solution now by starting your 14-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Cascading Style Sheets (CSS)
Sign Up Now!
Solution Provided By: scrathcyboy
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20081112-EE-VQP-43 / EE_QW_2_20070628