473,782 Members | 2,531 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Firefox h1? spacing woes...

4 New Member
hi, i am going crazy trying to figure this out. it seems like it should be real easy and probably is, but im kind of a nube flying by night so any thoughts or suggestions would be greatly appreciated. So here's my dilemma my h1/h2 (brand) heading is seemingly 5 px higher in firefox than it is on safari (mac user) and its driving me nuts!!! I have tried going back through it and rebuild this simple page many times but alas to no avail. the code is valid, the css embeded. Why is there more space between the heading and the slideshow in firefox?!! Arghhh...
any help would be awesome...
thank you,
derker


here is the link

http://www.dmcfarland.net/index-6.html

here is the css and code

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <title>David McFarland - Director of Photography</title>
  6. <style type="text/css">
  7.  
  8. body {
  9.     background-color: #999999;
  10.     text-align: center;
  11.     margin: 0px;
  12.     padding: 0px;
  13. }
  14. #wrapper {
  15.     margin: auto;
  16.     height: 578px;
  17.     width: 922px;
  18.     background-color: #999999;
  19.     position: relative;
  20.     padding: 0px;
  21. }
  22. h1 {
  23.     font-family: Helvetica, Arial, sans-serif;
  24.     font-size: 1.4em;
  25.     font-style: normal;
  26.     line-height: normal;
  27.     font-weight: normal;
  28.     font-variant: normal;
  29.     text-transform: none;
  30.     color: #FFFFFF;
  31.     text-decoration: none;
  32.     text-align: left;
  33.     margin: 0px;
  34.     padding: 0px;
  35.     height: 21px;
  36.     width: 168px;
  37.     position: absolute;
  38.     left: 51px;
  39.     top: 197px;
  40. }
  41. h2 {
  42.     font-family: Helvetica, Arial, sans-serif;
  43.     font-size: 1.2em;
  44.     font-style: normal;
  45.     line-height: normal;
  46.     font-weight: normal;
  47.     font-variant: normal;
  48.     text-transform: none;
  49.     color: #e3e3e3;
  50.     text-decoration: none;
  51.     text-align: left;
  52.     margin: 0px;
  53.     padding: 0px;
  54.     height: 20px;
  55.     width: 210px;
  56.     position: absolute;
  57.     left: 51px;
  58.     top: 219px;
  59. }
  60. #slideshow {
  61.     padding: 0px;
  62.     height: 200px;
  63.     width: 820px;
  64.     left: 47px;
  65.     top: 250px;
  66.     margin: 0px;
  67.     position: absolute;
  68. }
  69. div#listnav {
  70.     font-size: 14px;
  71.     float: left;
  72.     width: 400px;
  73.     position: absolute;
  74.     top: 450px;
  75.     left: 255px;
  76.     margin: 0px;
  77.     padding: 0px;
  78. }
  79. div#listnav ul {
  80.     margin: 0px;
  81.     padding: 0px;
  82. }
  83. div#listnav li {
  84.     float: left;
  85.     list-style-type: none;
  86.     margin: 0px;
  87.     padding-top: 0;
  88.     padding-right: 6px;
  89.     padding-bottom: 0;
  90.     padding-left: 6px;
  91. }
  92. div#listnav a:link {
  93.     font-family: Helvetica, Arial, sans-serif;
  94.     font-size: 14px;
  95.     font-style: normal;
  96.     line-height: normal;
  97.     font-weight: normal;
  98.     font-variant: normal;
  99.     text-transform: none;
  100.     color: #d7d7d7;
  101.     text-decoration: none;
  102. }
  103. div#listnav a:visited {
  104.     font-family: Helvetica, Arial, sans-serif;
  105.     font-size: 14px;
  106.     font-style: normal;
  107.     line-height: normal;
  108.     font-weight: normal;
  109.     font-variant: normal;
  110.     text-transform: none;
  111.     color: #d7d7d7;
  112.     text-decoration: none;
  113. }
  114. div#listnav a:hover {
  115.     font-family: Helvetica, Arial, sans-serif;
  116.     font-size: None;
  117.     font-style: normal;
  118.     line-height: normal;
  119.     font-weight: normal;
  120.     font-variant: normal;
  121.     text-transform: none;
  122.     color: #FFFFFF;
  123.     text-decoration: none;
  124. }
  125. div#listnav a:active {
  126.     font-family: Helvetica, Arial, sans-serif;
  127.     font-size: 14px;
  128.     font-style: normal;
  129.     line-height: normal;
  130.     font-weight: normal;
  131.     font-variant: normal;
  132.     text-transform: none;
  133.     color: #e3e3e3;
  134.     text-decoration: none;
  135. }
  136.  
  137.  
  138. -->
  139. </style>
  140. <script type="text/javascript" src="swfobject.js"></script>
  141. <!-- SWFObject embed by Geoff Stearns geoff@deconcept.com http://blog.deconcept.com/ -->
  142. </head>
  143.  
  144. <body>
  145. <div id="wrapper">
  146. <h1>David McFarland</h1>
  147. <h2>Director of Photography</h2>
  148. <div id="slideshow">
  149. <script type="text/javascript">
  150.     // <![CDATA[
  151.  
  152.     var so = new SWFObject("dave-front.swf", "myMovie", "820", "200", "8", "#999999");
  153.     so.addParam("wmode","transparent");
  154.     so.write("slideshow");
  155.  
  156.     // ]]>
  157.       </script>
  158. </div>
  159. <div id="listnav">
  160.   <ul>
  161.  
  162.      <li><a href="#">Narrative</a></li>
  163.      <li><a href="#">Documentary</a></li>
  164.      <li><a href="#">Music Videos</a></li>
  165.      <li><a href="#">Stills</a></li>
  166.      <li><a href="#">Bio</a></li>
  167.      <li><a href="#">Contact</a></li>
  168.   </ul>   
  169. </div>
  170. </div>
  171.  
  172.  
  173.  
  174. </body>
  175. </html>
Feb 19 '08 #1
9 4015
just a feeling
87 New Member
Hi derker,

It's not only in FF. IE6 and Opera has the same space. To fix that, add 5px to the top position of h1 and h2, i.e
Expand|Select|Wrap|Line Numbers
  1. h2 {
  2. top: 224px;
  3. }
  4. h1 {
  5. top: 202px;
  6. }
I don't have Safari to see how it looks now !!!

Cheers,
Feb 19 '08 #2
drhowarddrfine
7,435 Recognized Expert Expert
It may have to do with the difference in font rendering between Windows and the Mac. Mac's fonts are optimized for publishing, which is why they look so much nicer, while Window fonts are set for text editing and the web. I'd have to look at Safari on my Windows box but, hopefully, someone else can do that before I can.
Feb 19 '08 #3
derker
4 New Member
It may have to do with the difference in font rendering between Windows and the Mac. Mac's fonts are optimized for publishing, which is why they look so much nicer, while Window fonts are set for text editing and the web. I'd have to look at Safari on my Windows box but, hopefully, someone else can do that before I can.
thx doc, any help would be great. these differences are both happening on the mac platform though. i haven't even gotten to the pc yet. its really strange. i do a simple lil test and i can't get the firefox to line up where i want it. its always a few pixels higher than the safari version. will i need to employ conditional css?
Feb 19 '08 #4
derker
4 New Member
Hi derker,

It's not only in FF. IE6 and Opera has the same space. To fix that, add 5px to the top position of h1 and h2, i.e
Expand|Select|Wrap|Line Numbers
  1. h2 {
  2. top: 224px;
  3. }
  4. h1 {
  5. top: 202px;
  6. }
I don't have Safari to see how it looks now !!!

Cheers,
thanks just a feelin, but then the safari version is to low, get it? i guess if i used conditional css for the browsers that would work but i never done that b4 sooo... and this seems like it should be far simpler than that. i mean i am just tryin to place an element in a defined consistent space...what gives?
Feb 19 '08 #5
drhowarddrfine
7,435 Recognized Expert Expert
Conditional comments are only for IE. I don't have Safari on my Windows box (don't know how that happened) but I'll get it shortly.
Feb 19 '08 #6
drhowarddrfine
7,435 Recognized Expert Expert
So here I am on Safari. How do I look?

You've set up your page differently and now things look the same.
Feb 19 '08 #7
derker
4 New Member
So here I am on Safari. How do I look?

You've set up your page differently and now things look the same.
I know. Im not sure what was happening. i think it must of been all the absolute positioning. so i found some clear all defaults css on the web and then went back to a simpler layout. just kept it all in the flow with static positioning and laid it out using margins and padding on the different elements or divs. i just checked it across on the pc fox and ie6 and all seems good there too. so maybe i'll just settle down and remember not to make things harder than they have to be. thanks for your help doc. if you wanna try to figure it out, the page in question is still up at this address
http://www.dmcfarland. net/index-2.html
it baffles me, so any thoughts would be welcome
cheers and thanks again for your help,
derker
Feb 19 '08 #8
rob0210
1 New Member
Hi,

Not sure how old this thread is but thought I would post to mention that your problem is to do with how Firefox (mac) renders Helvetica. If you alter your headings to Arial for example, the line height issues sorts itself.

I am still working on a fix for this myself but thought I would share the love!
Jun 16 '10 #9
Dormilich
8,658 Recognized Expert Moderator Expert
Not sure how old this thread is
February 2008
Jun 17 '10 #10

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

Similar topics

2
6755
by: StarQuake | last post by:
At this site: http://forwarding.robas.com You can see in IE there is cell padding in 'Berkman Bedrijven' and with Firefox there isn't. I don't want any cell padding. Anyone? -- -----------------------------------------
12
9411
by: skeeterbug | last post by:
http://www.geocities.com/operationsengineer1/test2.htm the extra space between the logoHeader and the menu bar occurs when i add the <ul>. if i comment out the ul and and all the li, the 1em space disappears in firefox. http://www.geocities.com/operationsengineer1/test3.htm it never shows in ie6. if i increase the margin of hmenu to 1 em, there is no effect on the top and bottom, but the right and left are
8
6874
by: lkrubner | last post by:
Am I wrong, or do paragraphs have extra space on top in FireFox, when compared to Microsoft IE. The top of this page is an example: http://www.publicdomainsoftware.org/index.php?pageId=299 The text in the box at top looks like it has an extra 10 or 20 pixels of padding at the top, when FireFox is compared to IE. Why is that?
1
1462
by: newspost2000 | last post by:
If anyone could help me out here. I am the webmaster of the following corporate website: http://www.otpp.com/. When I load this page in IE or Netscape for PC the postion of all of the elements on the homepage is generally the same between these two browsers. When you navigate into the site the Teachers' logo is always in the same position on all pages. In Firefox the Corporate/Teachers' logo sites significantly lower but only on the...
6
1834
by: Giggle Girl | last post by:
I have an embedded style sheet that works perfect in IE6, and looks wrong in Firefox 1.7. Here is a link to an online sample: http://c.1asphost.com/giggy/tree02h/main/default.htm It works for the most part, in that the text of a Nav Tree becomes underlined onmouseover. But, when you click an item, it should receive a Yellow background with a border around it, which it does in IE but not in Firefox.
6
1819
by: InfiniteVoid | last post by:
Hello on my page when viewed with IE the spacing between the text in the tables is close together. When I view my page in firefox the spacing between the text lines it very spaced out. Any way to fix this to make it look the same on both? Here is the page: http://wtv-zone.com/knockmedown/ Thank you for your time.
6
3810
by: greynium | last post by:
hi Please see http://thatshindi.oneindia.in in Firefox and IE7. The spacing between the lines are different. What we see in Firefox is what we desire. How do we fix things to make it look right in IE7. To make things simpler we have uploaded only part of the text on http://images.oneindia.in/temp/spacing.html The space between the bullets in IE7 is more than what we want.
1
4197
by: John Nagle | last post by:
I'm having problems with excessive line spacing in FireFox. This seems to happen when "line-height" is set to "normal" when a large font is in effect, then there's a font change to a smaller font in HTML at a lower level. It looks like line height gets "stuck" at the value in effect in the outer block. DOM inspector shows the line height as "normal" on the small text, but the line spacing renders too big. This is with Firefox 2, so it...
4
1321
Curtis Rutland
by: Curtis Rutland | last post by:
Sorry, me again. Now I have the opposite problem. Actually, I'm fairly certain Firefox is spacing them right, I just can't see what is wrong with my code. I've got the site live at http://www.curtisrutland.com, so I won't repaste all my code. Here's a link to my stylesheet. If you load the site in IE, and then Firefox, the problem is fairly obvious.
0
9639
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9479
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
10146
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10080
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
8967
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
7492
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
6733
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5378
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...
3
2874
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.