473,394 Members | 2,052 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

divs transparency problem

roula
18
Hi,

I have the following nested divs, that I am not able to set them transparent in IE, but in firefox they are working fine:

Expand|Select|Wrap|Line Numbers
  1. <div id=&quot;dhtmlgoodies_scrolldiv&quot; style=&quot;background-color:transparent !important;position:relative;top:255px;left:257px;&quot;>
  2.         <div id=&quot;scrolldiv_parentContainer&quot; style=&quot;background-color:transparent !important;&quot;>
  3.             <div id=&quot;scrolldiv_content&quot; style=&quot;background-color:transparent !important;&quot;>
  4.  
and here is the css for each of the divs above:
Expand|Select|Wrap|Line Numbers
  1. #dhtmlgoodies_scrolldiv{
  2.         /* The total width of the scrolling div including scrollbar */
  3.         width:530px;
  4.         height:500px;    /* The height of the scrolling div */
  5.     }
  6.     #scrolldiv_parentContainer{
  7.         width:500px;    /* Width of the scrolling text */
  8.         height:100%;
  9.         overflow:hidden;
  10.         border:none;
  11.         float:left;
  12.         position:relative;
  13.         background-image:none;
  14.     }
  15.  
  16.     /*
  17.     CSS for the scrolling content 
  18.     */
  19.     #scrolldiv_content{
  20.         padding: 5px;
  21.         position:relative;
  22.         font-family: Trebuchet MS, Lucida Sans Unicode, Arial, sans-serif;
  23.         font-size: 0.9em;
  24.         line-height:130%;
  25.         color: #333;
  26.     }
  27.  
thanks for your help.
Mar 12 '07 #1
3 1612
drhowarddrfine
7,435 Expert 4TB
You cannot use the &quote entity for id names. That might be confusing IE. Just use the regular "
Mar 12 '07 #2
roula
18
You cannot use the &quote entity for id names. That might be confusing IE. Just use the regular "
Oh I'm not using them, it's just when I pasted the code in the editor it changed the " to that, here is the actual code:

Expand|Select|Wrap|Line Numbers
  1. <div id="dhtmlgoodies_scrolldiv" style="background-color:transparent !important;position:relative;top:255px;left:257px;">
  2.    <div id="scrolldiv_parentContainer" style="background-color:transparent !important;">
  3.       <div id="scrolldiv_content" style="background-color:transparent !important;">
  4.          (my content here)
  5.       </div>
  6.    </div>
  7. </div>
also there is a parent div that all 3 divs above are inside it, and this parent div has a background that i want it to appear, that's why i'm trying to make the other divs transparent, which is not working in IE (6) and the background is covered with white.

here is the code for the parent div:

Expand|Select|Wrap|Line Numbers
  1. <div style="width:800px;height:800px;margin:0 auto;background: url('/img/bge.jpg') center no-repeat;}">
Mar 12 '07 #3
roula
18
oops it was my fault, one of the divs had a white background specified which i just remembered.. sorry and thanks :) the problem is solved now.
Mar 12 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Marek Mänd | last post by:
This posting will express my concern about the future of css3 forthcoming recommendation. I think for long time now, that the current implementation of CSS attribute opacity is less than usable...
20
by: Nathan Sokalski | last post by:
I am trying to create graphics with GDI+ that include transparency. However, the transparency never seems to show up, even though my colors have an alpha value of 0. How can I generate a graphic...
2
by: Ben Wall | last post by:
I have a page with six or seven absolutely positioned DIV blocks ... they all contain form elements .. text boxes, buttons, etc. and they all reside within a containing "master" DIV. What I need to...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.