CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 6th, 2008, 05:34 PM
navajas navajas is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 3 navajas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 15 m 50 sec
Reputation Power: 0
Image fine in Firefox, clipped in IE 7

Basic, I know. I've probably just been staring at this thing too long. The building image to the right of the navbar displays correctly in Firefox, and has its top clipped off in IE 7 (not caring at this point about 6).

Hmm... I guess I can't post a link.

Crumbs. Well, not sure if its even possible to get help with this thing but maybe describing it with code will make the solution pop to my head.

I'm doing a quick rebuild of palladio-tours .com to sort of bring the code into this millennia. In my first run through using Firefox to check (mistake) I changed the navbar to a horizontal text CSS based <ul> underneath the Palladio Tours <img> with a <br>.

Now, in Firefox this works just fine, but in IE 7 (and 6, but again, not caring at this point), the yellow-ish building to the right of the nav list is clipped off exactly above the upper boundary of the list before it.

Let's see if I can post the relevant code. Html:

html4strict Code:
Original - html4strict Code
  1. <div id="header">
  2. <div id="navwrap">
  3.     <img id="logo" src="images/logo.gif" alt="Palladio Tours Logo"><br>
  4.     <ul id="nav">
  5.     <li id="t-home"><a href="index.html">home</a></li>
  6.     <li id="t-company"><a href="company.html">company</a></li>
  7.     <li id="t-daily"><a href="daily.html">daily</a></li>
  8.     <li id="t-weekly"><a href="weekly.html">weekly</a></li>
  9.     <li id="t-brochure"><a href="brochure.html">brochure</a></li>
  10.     <li id="t-faq"><a href="faq.html">faq</a></li>
  11.     <li id="t-contact"><a href="mailto:palladio@aol.com"><img src="images/contact.gif" alt="Contact Us"></a></li>
  12.     </ul>
  13. </div>
  14. </div>


And the relevant CSS;

css Code:
Original - css Code
  1. body {
  2.     margin: 0px 0px 0px 0px;
  3.     padding: 0px;
  4.     border: 0px;
  5.     background: #ffffff url(images/header-bg.gif) no-repeat top left;
  6.     font-family: "times", serif;
  7.     color: #000000;
  8.     font-size: small;
  9.     text-align: left;
  10.     }
  11.    
  12. * html body {
  13.     font-size: x-small; /* for IE */
  14.     f\ont-size: small; /* for IE 6+ */
  15.     }
  16.  
  17. #header {
  18.     text-align: left;
  19. }
  20.  
  21. #nav {
  22.     float: left;
  23.     list-style: none;
  24.     margin: 0px 0px 0px 0px;
  25. }
  26.  
  27. #nav li {
  28.     float: left;
  29.     font-family: "times", serif;
  30.     font-size: 120%;
  31.     font-weight: normal;
  32.     margin: 0px 0px 0px 0px;
  33.     padding: 0px 0px 0px 0px;
  34. }
  35.  
  36. #nav a {
  37.     float: left;
  38.     display: block;
  39.     text-decoration: none;
  40.     color: #000000;
  41.     border: 1px solid #000000;
  42.     border-left: none;
  43.     margin: 0px;
  44.     padding: 0px 4px 0px 4px;
  45. }
  46.  
  47. #t-home a {
  48.     padding: 0px 4px 0px 12px;
  49. }
  50.  
  51. #t-faq a {
  52.     border-right: none;
  53.     padding: 0px 12px 0px 4px;
  54. }
  55.  
  56. #t-contact a {
  57.     border: none;
  58.     padding: 0px 0px 0px 0px;
  59. }
  60.  
  61. #t-contact a img {
  62.     border: none;
  63.     margin: -37px 0px 0px 0px;
  64.     padding: 0px 0px 0px 0px;
  65.     background: none;
  66. }
  67.  
  68. #nav a:hover {
  69.     background: #FFCE63;
  70. }
  71.  
  72. #nav t-contact a:hover {
  73.     background: #ffffff;
  74. }
  75.  
  76. #navwrap {
  77.     margin: 0px 0px 0px 0px;
  78.     padding: 65px 0px 0px 90px;
  79. }
  80.  
  81. #logo {
  82.     margin: 0px 0px 6px 50px;
  83. }


I wish I could post a link to the live example. It's a file called "shell.html" in the "css-test" folder at the above site. My brain obviously has gas, any help with this fart will be appreciated!

Reply With Quote
  #2  
Old May 6th, 2008, 09:34 PM
Kravvitz's Avatar
Kravvitz Kravvitz is offline
CSS & JS/DOM Adept
Click here for more information.
 
Join Date: Jul 2004
Location: USA
Posts: 15,149 Kravvitz User rank is General 5th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 5th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 5th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 5th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 5th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 5th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 5th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 5th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 5th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 5th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 5th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 5th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 5th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 5th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 5th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 5th Grade (Above 100000 Reputation Level) 
Time spent in forums: 3 Months 2 Weeks 2 Days 2 h 47 m 18 sec
Reputation Power: 1294
Welcome to DevShed Forums, navajas.

Give that <img> position:relative.

You're using an incomplete doctype, so browsers are rendering the page in quirks mode, which is a bad thing. You should use a complete doctype (one that includes a URL) to get browsers to render as close to the same as possible. I recommend HTML 4.01 Strict. The doctype tells the browser which rendering mode to use for the page.
Activating the Right Layout Mode Using the Doctype Declaration
Fix Your Site With the Right DOCTYPE!
Choosing a DOCTYPE
Doctype switching
Rendering Mode and Doctype Switching
http://www.w3.org/QA/2002/04/valid-dtd-list.html

As you found out new users are restricted from posting URLs until they have made 5 posts. You may need to get around this by leaving out the "http://" and putting a space before each ".".
__________________
Spreading knowledge, one newbie at a time.

Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions

IE7: the generation 7 browser new in a world of generation 8 browsers.
Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around.

Reply With Quote
  #3  
Old May 7th, 2008, 10:37 AM
navajas navajas is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 3 navajas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 15 m 50 sec
Reputation Power: 0
Kabong. That did it, thanks man!

Thanks for the welcome, this appears to be a nice place. I think I'll hang out!

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Image fine in Firefox, clipped in IE 7


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway