473,466 Members | 1,298 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Why do curved corners disappear when I ad a UL?

384 Contributor
I can get the curved corners to work grand but once I add a UL in they disappear.

This works grand:
Expand|Select|Wrap|Line Numbers
  1. <div id="menu_wrapper">
  2.   <div class="bl">
  3.     <div class="br">asd</div>
  4.   </div>
  5. </div>
  6.  
Expand|Select|Wrap|Line Numbers
  1. #menu_wrapper {
  2.     float: left;
  3.     width: 1000px;
  4.     height: 30px;
  5.     clear: left;
  6. }
  7. #menu_wrapper .bl {
  8.     width: 20em;
  9.     background: url('../images/layout/menu_bl.png') 0 100% no-repeat #330000;
  10. }
  11. #menu_wrapper .br {
  12.     background: url('../images/layout/menu_br.png') 100% 100% no-repeat;
  13. }
But once I change th code to this the curved corners disappear and I've tried everything to make them show up but no luck, any ideas?
Expand|Select|Wrap|Line Numbers
  1. <div id="menu_wrapper">
  2.   <div class="bl">
  3.     <div class="br">
  4.       <ul>
  5.         <li><a href="index.htm">Home</a></li>
  6.       </ul>
  7.     </div>
  8.   </div>
  9. </div>
Expand|Select|Wrap|Line Numbers
  1. #menu_wrapper {
  2.     float: left;
  3.     width: 1000px;
  4.     height: 30px;
  5.     clear: left;
  6. }
  7. #menu_wrapper .bl {
  8.     width: 20em;
  9.     background: url('../images/layout/menu_bl.png') 0 100% no-repeat #330000;
  10. }
  11. #menu_wrapper .br {
  12.     background: url('../images/layout/menu_br.png') 100% 100% no-repeat;
  13. }
  14. #menu_wrapper ul {
  15.     float: left;
  16.     width: 100%;
  17.     margin: 0px;
  18.     padding: 0px;
  19.     border-top: 1px #666666 solid;
  20.     background-color: #330000;
  21.     list-style: none;
  22.     clear: left;
  23. }
  24. #menu_wrapper ul li {
  25.     display: inline;
  26. }
  27. #menu_wrapper ul li a {
  28.     float: left;
  29.     width: 120px;
  30.     height: 24px;
  31.     padding: 6px 0 0 0;
  32.     color: #FFFFFF;
  33.     font-size: 12px;
  34.     text-decoration: none;
  35.     text-align: center;
  36.     display: block;
  37. }
  38. #menu_wrapper ul li a:hover {
  39.     float: left;
  40.     width: 120px;
  41.     height: 24px;
  42.     padding: 6px 0 0 0;
  43.     color: #330000;
  44.     background-color: #FFFFFF;
  45.     font-size: 12px;
  46.     text-decoration: underline;
  47.     display: block;
  48. }
Thanks in advance.
Oct 27 '10 #1
2 1867
Death Slaught
1,137 Top Contributor
Try removing the margin: 0px; from your ul rule.


Regards, Death
Oct 28 '10 #2
JKing
1,206 Recognized Expert Top Contributor
The background-color on your ul is overriding the background images on your div.

Also you need to add a clear after your ul.
Oct 28 '10 #3

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

Similar topics

8
by: Mark | last post by:
Hi My web site is looking too boxy, does anybody have any tips on how to make standard tables have curved edges. Or.. If I am inserting an images into html and then another image...
8
by: rdlebreton | last post by:
Hi, Folks! I've been trying to develop my own version of these draggable layers and I have been limiting myself to IE6...for now. I have looked at some other examples to get ideas of creating...
9
by: Rajat Tandon | last post by:
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am...
14
by: Bryan | last post by:
I am attempting to make a web page more Netscape friendly... <a href="http:www.gordonceilings.com"></a> I have already corrected the table issues in an offline staging site (where I do the...
8
by: johkar | last post by:
I have two problems I cannot work out in the following tab code with Netscape 6. Problems are marked with all cap comments. One is that the background image is not shown in NS 6 (two places in...
2
by: vivekian | last post by:
Hi , I am looking to divide a table on a curved column line . So the text content when entered takes care of itself along the curve, and does not overlap. Please suggest some way . Thanks in...
2
by: Possum | last post by:
Hi How would you get curved corners on tables. I would prefer not to use graphics but will try anything. Cheers Possum.. Pic Example
3
by: khurramarts | last post by:
Hi, I am new here. i need help from you peoples. i am stuck in making css in div for rounded corner image. the problem is that i want this css not to be fixed it should be in 100% in height and...
1
by: sharathITS | last post by:
Hello friends, can anyone help me to draw curved lines on image, when mouse is moved on a image
20
by: ChrisW | last post by:
Hi, I've not had many problems with differences between the IE and Firefox interpretation of the box-model before, but my current site seems to have the symptoms of being affected by it! ...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.