473,786 Members | 2,399 Online
Bytes | Software Development & Data Engineering Community
+ 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 1882
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
5186
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 below/alongside it, do I have to add any code in order to make it fit exactly.
8
2569
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 an alternative to pop-up windows in a web page. The code I have works (sort of). The problem is that I can move these layers around when I move the mouse slowly, however, if I move it fast the web browser looses track of the motion and leaves the...
9
2824
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 facing. Please please help me to solve this as soon as possible. So here we go ... I am not able to take the screen shot of the windows form based "Smart
14
1938
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 building and then move it to the live site when ready), so don't worry about those. My problem lies in the menu on the left. It shows up and the initial links work in Netscape 8, but the menu will not drop down to show the sub-selections. I can get the...
8
1990
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 CSS). The second problem is that the top right rounded corner is not showing up in the Tier 2 tabs. Could you have a look and tell me if it is possible to correct? This code seems to work fine in IE 5+ and Firefox. Note that since I can't post...
2
1367
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 advance , vivekian
2
6318
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
1582
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 width. i have maked this in table with css and its work fine but when i use div then i really screw up and didn't get any trick to solve it. can any one help me how to make this. i have uploaded the image please see the image below. you will notice...
1
1290
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
1974
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! http://www.srcf.ucam.org/~ccw34/index_ff.html Although I understand how it comes about, I don't fully understand a couple of the hacks I've read to counter it. I've also read that the
0
9492
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10360
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10108
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9960
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8988
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7510
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5532
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4064
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.