473,386 Members | 1,752 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,386 software developers and data experts.

The Clashing of Elements

The Page in Question:
http://www.deborahbrakeley.com/faq.html

Hello,
If you visit the above page, you will see that when you open the drop-down menu (which is contained in transparent boxes), it clashes with the transparent box beneath it which runs the width of the page, and which will hold the page title. This is a problem because it sees through and also triggers the menu to close.

If I take the opacity css code out of the transparent box in the background then it gets covered up by the menu as it is supposed to.... does anyone know of a way to keep that box transparent as well as stop it from clashing with the menu?

The same problem also happens when I absolutely position the Page Title text in that box... it shows through the menu as well. It has to be absolutely position so that it rests on top of the transparent box, so maybe you also might know how to fix this problem as well...

Thanks to anyone that can help.

Alex
Aug 21 '07 #1
9 2213
the problem with the transparent box is only in Safari so far... both mozilla and opera properly cover up the transparent box when the list drops down. Still, the absolute positioned Page Title text shows through.....
Aug 21 '07 #2
gits
5,390 Expert Mod 4TB
hi ...

it seems to me that FF has the same problem too that you desribed for safari? and may be you are after the z-index styleproperty? ;) refer to it here

kind regards
Aug 21 '07 #3
drhowarddrfine
7,435 Expert 4TB
You have 166 html errors and about 20 CSS errors. Fix those first.
Also, 'filters' are an IE only thing and not standard. They don't work in any other browser.
Aug 21 '07 #4
You have 166 html errors and about 20 CSS errors. Fix those first.
Also, 'filters' are an IE only thing and not standard. They don't work in any other browser.
The errors in my html are saying:

"I can't have the tag: div within a <ul>"
and
"I can't have a <li> with the <div> tag"

why is it saying that, (I understand this structure is fine), and if it is wrong how do I get around it?
Aug 21 '07 #5
hi ...

it seems to me that FF has the same problem too that you desribed for safari? and may be you are after the z-index styleproperty? ;) refer to it here

kind regards
I'm reading through it now... this looks like what I am looking for. Thanks :) Do either of you have any suggestions for the way I'm doing this menu bar?

Also, I want to make rounded corners on all the transparent boxes behind the menu bar and page title and throughout the rest of the pagebody. To do this, do I have to make images for each corner and then apply them within the background of a <div> and then apply the opacity settings....? I wish it could be easier.
Aug 21 '07 #6
drhowarddrfine
7,435 Expert 4TB
Look at the new CSS3 properties that have 'radius' in their name for rounded corners. But they only work in modern browsers and not IE. It will be at least eight years before IE catches up with the current state of things.

'Opacity' also works in modern browsers but not IE6 so that makes it easier.

So, yes, you may just have to create the images.

I would concentrate on fixing all the errors first. They will only create more grief as you go along.
Aug 21 '07 #7
I would concentrate on fixing all the errors first. They will only create more grief as you go along.
Could you help me with this? :
Drop Down Menu in question: http://www.deborahbrakeley.com/faq.html
Please preview in any browser other than IE since i haven't fixed for IE yet

All the errors that are coming up are due to the fact that I have multiple <div> elements nested within my <ul> elements... The errors state that I cannot have a <div> element within a <ul> element and then it gets confused thinking that the <li> elements are floating in the middle of nowhere with no opening and closing <ul></ul> tags.

Here is an example of my code:
Expand|Select|Wrap|Line Numbers
  1. <div id="menubox"></div>
  2. <div id="menu">
  3.     <ul id="nav">
  4.  
  5.      <li>Home
  6.             <div id="home"> (hook for positioning drop down list)
  7.  
  8.             <ul> (list that opens when "<li>Home" is hovered)
  9.  
  10.                 <div class="listbox"></div> (hook for transparent background)
  11.  
  12.                 <div class="col1"> (absolutely positioned column of text that appears in drop down list... needs to be absolutely positioned so the columns to the right of it stack up to the right and so it goes over top the transparent background.. may be another way to do this part)
  13.  
  14.                     <li><a href="home.html">Home</a></li>
  15.                     <li><a href="contact.html">Contact Us</a></li>
  16.                     <li><a href="about.html">About GBK</a></li>
  17.                     <li><a href="">Meet the Artisans</a></li>
  18.                     <li><a href="">Travel Information</a></li>
  19.                     <li><a href="">GBK Photos</a></li>
  20.                     <li><a href="">Fair Trade</a></li>
  21.                     <li id="divider">.....................</li>
  22.                     <li><a href="">Shipping</a></li>
  23.                     <li><a href="faq.html">FAQ</a></li>
  24.                     <li><a href="">Site Map</a></li>
  25.                 </div>
  26.                 <div class="footbox"></div>
  27.                 <div class="listfooter">
  28.                 <p>Welcome...</p>
  29.                   </div>
  30.             </ul>
  31.             </div>
  32.         </li>
  33.  
  34. <li>India
  35.             <div id="india">
  36.             <ul>
  37.                 <div class="listbox"></div>
  38.                   <div class="col1">
  39.                     <li><h1>Men's</h1></li>
  40.                     <li><a href="">Shirts &amp; Tops</a></li>
  41.                     <li><a href="">Jackets</a></li>
  42.                     <li><a href="">Sweaters</a></li>
  43.                     <li><a href="">Beanies &amp; Hats</a></li>
  44.                     <li><a href="">Pants</a></li>
  45.                     <li><a href="">Scarves</a></li>
  46.                     <li><a href="">Belts</a></li>
  47.                     <li><a href="">Sunglasses</a></li>
  48.                 </div>
  49.                 <div class="div1"></div>
  50.                 <div class="col2">
  51.                     <li><h1>Women's</h1></li>
  52.                     <li><a href="">Shirts &amp; Tops</a></li>
  53.                     <li><a href="">Jackets</a></li>
  54.                     <li><a href="">Sweaters</a></li>
  55.                     <li><a href="">Beanies &amp; Hats</a></li>
  56.                     <li><a href="">Pants</a></li>
  57.                     <li><a href="">Dresses &amp; Skirts</a></li>
  58.                     <li><a href="">Scarves</a></li>
  59.                     <li><a href="">Belts</a></li>
  60.                     <li><a href="">Purses</a></li>
  61.                     <li><a href="">Sunglasses</a></li>
  62.                     <li><a href="">Hair Accessories</a></li>
  63.                 </div>
  64. etc............
Here are the errors generated:
1. document type does not allow element "div" here; assuming missing "li" start-tag.
<div class="listbox"></div>

2. document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag.
<li><a href="home.html">Home</a></li>


The <div> tags in bold are necessary to contain a transparent box behind the text. If the text in the lists were to be placed within the same element as the transparent box then the text too would become transparent.

Also, the transparent div's and the list div's have to be within the <ul> tags so that they open and close when they are hovered upon...

so basically, I am wondering if I should just ignore these errors because they are necessary or if there is another way to do this that complies to web standards?

thanks for reading through this...
Alex
Aug 21 '07 #8
drhowarddrfine
7,435 Expert 4TB
Just as it states, a <ul> contains a list of items. These items are marked with <li>, 'list item'. So while a list item can contain a div, a div cannot exist as the content of a list.
Aug 21 '07 #9
Just as it states, a <ul> contains a list of items. These items are marked with <li>, 'list item'. So while a list item can contain a div, a div cannot exist as the content of a list.
So how do I get around the need for having a hook within the <ul>s to apply transparent background and positioning too?
Aug 21 '07 #10

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

Similar topics

19
by: deko | last post by:
I'm kind of lost on this one - I need to modify 2 files based on user input: $data_array = file($data_file); $counter_array = file($counter_file); // There is a line-for-line relationship...
1
by: Wolfgang Lipp | last post by:
my question is: do we need container elements for repeating elements in data-centric xml documents? or is it for some reason very advisable to introduce containers in xml documents even where not...
0
by: Wolfgang Lipp | last post by:
From: Lipp, Wolfgang Sent: Tuesday, 27?January?2004 13:26 <annotation> the first eleven contributions in this thread started as an off-list email discussion; i have posted them here with...
8
by: Generic Usenet Account | last post by:
To settle the dispute regarding what happens when an "erase" method is invoked on an STL container (i.e. whether the element is merely removed from the container or whether it also gets deleted in...
34
by: Adam Hartshorne | last post by:
Hi All, I have the following problem, and I would be extremely grateful if somebody would be kind enough to suggest an efficient solution to it. I create an instance of a Class A, and...
22
by: Luke | last post by:
Elements with name attribute: form, input, textarea, a, frame, iframe, button, select, map, meta, applet, object, param, img (if you know more reply...) Methods of addresing html elements:...
0
by: Louie.PH.Access | last post by:
Hello everyone! I need some help about the clashing events/appointment Allen Browne of Utteraccess.com post his solution to this problem which is really easy to understand. Prompting the...
37
by: Prisoner at War | last post by:
Actually, it doesn't have to be a blockquote...but I'm at my wits' end: I want to make bold several lines of text which have a pair of <br /tags between them...seems like the <b></bdo not "carry...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...

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.