Webmaster Forum


Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 10-12-2010, 10:39 PM
yangyang's Avatar
Contributing Member
 
Join Date: 08-30-07
Posts: 199
iTrader: 0 / 0%
Problem: Link button bg image not properly aligned in IE8

Problem page: http://www.scrapingweb.com/quote.html

Problem browser: IE8 (ff3, chrome and safari have no problems at all)

Problem description: Notice that there's an extra blue line (the middle background image, I think) at the right of the link button while all the other menu buttons have no such problem. It's the same when the link isn't in the current status. There's still an extra 1 or 2 pixels there.

Problem code:

Code:
<ul> <li><a href="/" title="Scraping Web home"><span>Home</span></a></li> <li><a href="/databases.html" title="All databases on sale"><span>Buy Databases</span></a></li> <li class="current"><a href="/quote.html" title="Contact us regarding your data needs"><span>Contact Us</span></a></li> <li><a href="/scripts.html" title="Custom build a website or web application from a content database"><span>Custom Build</span></a></li> <li><a href="/specials.html" title="Special discounts on our database products by using coupons!"><span>Coupons</span></a></li> <!-- <li><a href="/press/" class="specials" title="Blog publishing latest data products and coupons"><span>Data Blog</span></a></li> --> <li><a href="/press/" title="Blog publishing latest data products and coupons"><span>Data Blog</span></a></li> </ul>
Code:
#header li { float:left; margin:0 0 0 6px; } #header li a:hover { color:#000; } #header li a { font:bold 1.3em Trebuchet MS; color:#888; } #header li, #header li a, #header li a span { display:block; height:34px; cursor:pointer; } #header li { background:url(../images/tab_mid.gif) repeat-x 0 0; } #header li a { padding:0 0 0 1em; background:url(../images/tab_left.gif) no-repeat 0 0; width:9em; } #header li a.specials { color:#000; } #header li a span { padding:0 1em 0 0; background:url(../images/tab_right.gif) no-repeat 100% 0; width:8em; text-align:center; line-height:2.6; } #header li.current { background:url(../images/selected_tab_mid.gif) repeat-x 0 0; } #header li.current a { color:#fff; background:url(../images/selected_tab_left.gif) no-repeat 0 0; } #header li.current a:hover { color:#fff; } #header li.current a span { background:url(../images/selected_tab_right.gif) no-repeat 100% 0; }

Really hard to understand as the CSS for all the link buttons are identical. Why is the particular "Contact Us" button problematic?
__________________
Be sure to check out Rackspace Cloud, the cloud hosting pace-setter.
Kavoir is my personal journal about creating websites and make money off them. I also post my reviews and thoughts there.
 
Reply With Quote
  #2 (permalink)  
Old 10-13-2010, 04:27 PM
Luxmo's Avatar
Member
Latest Blog:
None

 
Join Date: 07-08-10
Location: City of Industry, California
Posts: 36
iTrader: 0 / 0%
Lightbulb

Quote:
Originally Posted by yangyang View Post
Well, to fix your problem without figuring out the problem you can use a css conditional comment to single out styles which will be enabled only under IE8 and greater:

Code:
<!--[if gte IE 8]> <link rel="stylesheet" type="text/css" href="http://www.yoursite.com/ie8-hacks.css" /> <![endif]-->
That stylesheet will only be loaded if the browser is IE8 or above. In that css file will be your IE8 specific styles.
__________________
Luxmo.com - Luxury & More
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to replace submit button with image? 2939195631902 Web Design Lobby 2 02-02-2009 05:04 AM
Please help: Google Referrals button problem Cifra Blogging Forum 2 11-05-2007 11:48 AM
CSS bottom aligned image problem, need help StrongInTheArm Coding Forum 15 08-21-2007 06:33 AM
Need Help: Form submit and IE Back button problem !!! cuongdm Coding Forum 4 10-27-2006 10:53 AM
Make a button or image enter something into a form? Leader of Men Coding Forum 2 11-13-2003 05:25 PM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 12:52 AM.
Powered by vBulletin
Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.