In navigation display:block; property is giving problem in IE6

Reply

Join Date: Jan 2008
Posts: 1
Reputation: designer21 is an unknown quantity at this point 
Solved Threads: 0
designer21 designer21 is offline Offline
Newbie Poster

In navigation display:block; property is giving problem in IE6

 
0
  #1
Jan 31st, 2008
Hello

I have a navigation vertical bar on left hand side. I want to use two different text on one button in one line. first text should be align to left and second text align to right under that div. problem is in IE6, second text is coming down.in mozilla its working fine. i cannot fix width of bothe text because right text increases according to database vale.

In IE6 it is giving problem because of display:block property, if i removed dispaly:block property then text is coming in one line but on hover i want to change full square color of that link.

Here is the code
HTML and CSS Syntax (Toggle Plain Text)
  1. div#west {
  2. background: #EBEEF2 url(../images/navi_shadow.gif) repeat-y right; width:172px;
  3. height: 100%;}
  4.  
  5. .left_selected { display:block; width:165px; height:32px; text-decoration:none; background: url(../images/nav_Vbg.png) repeat-y right; text-indent:9px; font: bold 11px/28px Tahoma, Arial, Helvetica, sans-serif; color:#000;}
  6.  
  7. .leftnav {background: #EBEEF2; font: normal 11px/28px Tahoma, Arial, Helvetica, sans-serif; color: #004C85; text-decoration:none; text-indent:9px; vertical-align:top; display:block; width:165px; height:30px; border-top: 1px solid #fff; border-bottom: 1px solid #ccc;}
  8.  
  9. .leftnav a{background: #EBEEF2; font: normal 11px/28px Tahoma, Arial, Helvetica, sans-serif; color: #004C85; display:block; text-decoration:none; text-indent:9px; vertical-align:top; width:165px; height:30px;}
  10.  
  11. .leftnav a:hover{background: #fff url(../images/nav_Hbg.png) repeat-y right; color: #004C85; text-decoration:none; display:block; text-indent:9px; vertical-align:top; width:165px; height:30px;}
  12.  
  13. .left_bar_num {
  14. font-family: Tahoma;
  15. font-size: 11px;
  16. color: #333333;
  17. float:right;
  18. }

HTML Code:
HTML and CSS Syntax (Toggle Plain Text)
  1. <div id="west">
  2. <div class="leftnav"><a href="#">Job Search<span class="left_bar_num">32</span></a></div>
  3. <div class="leftnav"><a href="#">Find Traveler<span class="left_bar_num">5|232</span></a></div>
  4. </div>
  5. </div>

Hope you will understand the probelm. i am first time using this forum site.

Thanks in advance.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,080
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Solved Threads: 68
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: In navigation display:block; property is giving problem in IE6

 
0
  #2
Jan 31st, 2008
You can set the autoflow property so it doesn't wrap. Problem with this is that if the value is too large, it will most likely wrap ontop of your right value. But that depends on what kind of lengthy values you're using.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC