March 13, 201412 yr I've run into an issue, the anchor for the word contact is too large ? One other thing, the site looks fine on IE/Chrome, with the exception of margins etc, but on FireFox the margins and spacing are bad ?
March 14, 201412 yr h3.contact a { font-size: 8em; margin-left: 34px; } This is causing the font size issue.
March 14, 201412 yr Author I changed the font-size, but reverted it back to 8em. I removed the margin-left property, the text looks fine in Chrome. The text is too small in FireFox and the word 'contact' & 'gallery' are overlapping. In IE the text size is fine, but the words 'contact' & 'gallery' are overlapping ? Can you adjust an anchor size, because in Chrome it's huge, I should hover over part of the 'gallery' word and 'contact' changes color, that isn't right, you know what I mean ?
March 14, 201412 yr nav li { display: block; position: relative; left: 500px; bottom: 300px; All of your nav li elements are set to be positioned at the same relative position on the screen, with FF this will cause a problem because FF tends to create a space at the top of the header when it is inside a div. Moving the relative positioning into your nav from the nav li may be the answer. You may also need to declare position: relative for the header element for this to work as near to the same as possible in all browsers.
March 14, 201412 yr Author I don't understand why the font size is different in FireFox, I would have thought IE doing this, not FireFox. Instead IE and Chrome display the font size how I want the font size. I'm trying to remove the spacing between the words, any suggestions, line-spacing works but, if you use FireBug the anchor is huge, how come the anchor doesn't hug the word instead it hugs the outside works as well, that I don't like. Edit: I changed some of the rules, prior to writing this message. Edited March 14, 201412 yr by CreativeSheep
March 15, 201412 yr I always use the approach of setting a 'default' font-size for the html element in my css in pixels (i.e font-size: 16px;), then I set the font-size of all other elements in 'rem' (i.e font-size: 1.8rem;). This smooths most of the browser bugs out quite well, plus it can be used for spacing, widths, heights, and as a unit of measure for properties like the 'white-space', 'word-spacing', and 'letter-spacing' that you will need to control the gaps between words and individual characters. Using the rem unit is also easier when working with a responsive layout. To get the exact effect you want will take some experimenting with the above properties though. Many browsers now also fully understand the view-width and view-height (vw, vh) units of measurement as well which may make it easier to control the 'density' on screen if used with a fall back to conventional units.
March 16, 201412 yr Author Thanks, I'll give REM a try as well as pixels. I always though EM was the best for fonts !
Create an account or sign in to comment