Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Anchor Large / Spacing bad on FireFox

Featured Replies

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 ?

 

  • 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 ?

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.

  • 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 by CreativeSheep

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.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.