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

Bizarre nifty corners behaviour

Hi, I'm trying to implement the traditional CSS-only nifty corners on two panes that are floating within the same DIV. With one pane, it works great. But with 2 panes, the border (and rounded corners) for the bottom of the first pain adopts the second pane's color. This happens on Win XP FF 2, Opera 9, and IE 7. Firebug shows that the bottom part of the first pane is using style tags for the second pane! I can't figure it out. I've tried changing from IDs to classes and back again. No luck. Please help.

CSS:
Expand|Select|Wrap|Line Numbers
  1. #right {        /* right pane within container */
  2.     float: left;
  3.     min-width: 15%;
  4.     width: 25%;
  5.     color: white;
  6.     padding-left: 2%;
  7.     font-size: 0.8em;
  8.     }        
  9.     #top_pane, #bot_pane{
  10.         float: left;
  11.         min-width: 50%;
  12.         margin:0 2em 1em 2em;
  13.         }
  14.     #top_pane {
  15.         background-color: #a08e64;
  16.         }
  17.     #bot_pane{    
  18.         background-color: #083a08;
  19.         }
  20.  
  21.         /* nifty corners  */
  22.         #right  b.rtop, b.rbottom{display:block;background: #384f7f;}
  23.  
  24.         #top_pane  b.rtop b, b.rbottom b{display:block;height: 1px;
  25.             overflow: hidden; background: #a08e64;}    
  26.  
  27.         #bot_pane b.rtop b, b.rbottom b{display:block;height: 1px;
  28.             overflow: hidden; background: #083a08;}
  29.  
  30.         #right  b.r1{margin: 0 5px;}  
  31.         #right  b.r2{margin: 0 3px;}
  32.         #right  b.r3{margin: 0 2px;}
  33.         #right  b.rtop b.r4, b.rbottom b.r4{margin: 0 1px;height: 2px;}    
  34.  
  35.  
HTML:
Expand|Select|Wrap|Line Numbers
  1.         <div id="right">
  2.  
  3.             <div id="top_pane">
  4.                 <b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
  5.                     <div id="top"> 
  6.                         &nbsp
  7.                     </div>    
  8.                 <b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b>
  9.             </div>
  10.  
  11.             <div id="bot_pane">
  12.                 <b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
  13.                     <div id="bottom"> 
  14.                         &nbsp
  15.                     </div>    
  16.                 <b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b>
  17.             </div>
  18.  
  19.         </div>
May 29 '07 #1
0 1362

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

Similar topics

4
by: The Plankmeister | last post by:
This really is very strange... Have a look at this: http://www.plankmeister.org.uk/new/index.html in IE6. When it loads, the top section is blank. If you mouseover anything in the menu half of...
2
by: Michael Kalina | last post by:
Hi! On my website http://michaelsremarks.com I use an elastic layout and I would like the top left and top right corner to be "rounded". Now I am facing two problems, which I could not solve...
3
by: Francisco J. Jurado | last post by:
Is there anybody who knows how Microsoft programmers get rounded corners in the windows and bottons wihout using graphical corners (if there any) Best Regards
6
by: Schraalhans Keukenmeester | last post by:
I want to achieve the following: A small image in each of the corners of a box, like below: +-------------------------------+ | + | + | + | + | + | +
14
by: Nick Maclaren | last post by:
x = (1.234567890125, 1.2345678901255) print x print x, x Is there a rational reason, or is that simply an artifact of the way that the code has evolved? It is clearly not a bug :-) ...
4
by: Sean Inglis | last post by:
Well bizarre to me, anyway. I've distilled it down to two small files: testtop.htm =============================== <html> <head> <script language="Javascript">
9
by: ckfan.painter | last post by:
I've run into a seemingly bizarre problem with insert() for std::vector. (This was done on Microsoft Visual C++ 2005 express version 8...maybe it is a compiler specific bug?) Here's the code: ...
1
by: raven1 | last post by:
I'm using the niftyCorners design by Alessandro Fulciniti as posted here: http://www.html.it/articoli/niftycube/index.html Everything works great locally but when I upload to my ISP, no corners...
0
by: =?Utf-8?B?bXVzb3NkZXY=?= | last post by:
Hi guys I'm using a URLRewrite module to redirect certain URLs in my .net 2.0 website. However I am getting som really bizarre behaviour public void UrlRewriter_BeginRequest(object sender,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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?

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.