You're looking at all articles on The Hickensian tagged 'solutions'

Moving navigation solved

One of the headaches I’ve had with the position: fixed navigation on the journal pages is a bug that has reared its head in WebKit based browsers (Safari, Omniweb, NetNewswire etc).

OK, a little background. To avoid the IE flicker problem, my navigation’s rollover states are set as the background of a list item in a numbered list, and the ‘normal’ state is set as the background of the link. On hover the link background is set to none – revealing the rollover state below. With me so far?

When combined with position:fixed, the nav had a strange effect when scrolling. As you scroll down, the background of the anchor tag scrolls with it, but not the background of the <li> item:

Progressive screenshots showing navigation problem in Safari

This didn’t occur in Firefox or Opera (IE doesn’t support position:fixed of course, so it gets position:absolute instead), just in WebKit browsers. It’s a minor, but irritating problem.

The fix was not, as I thought it might be, applying background-attachment: fixed, but just this:

#nav ol a  { position: absolute; }

I’m posting it here in case anyone else has come across it too. A bug in WebKit? Trouble is, when you’re bending CSS to do thing it wasn’t designed to do (Image replacement and fixed positioning) it may not be.

Archives by tag:

2006, 2007, accessibility, acoustic, actionscript, adobe, adverts, advice, alternative, ambient, analog, apple, applecare, appletv, apps, art, articles, atmedia, attap, audio, australia, awards, ban, basecamp, bbc, belkin, bitmap, blackhole, blogs, bluetooth, bonecho, books, boxee, boxmodel, braindump, british, browser, browsers, browsers.mozilla, bug, bugs, cairo, cakes, calendar, camera, camino, cbbc, cc, cheerup, cheese, childreninneed, christmas, cms, cocoalicious, coda, code, collections, colourblind, colourblindness, comedy, comments, comps, conferences, country, covers, craft, cs5, css, css.webstandards, danielsmonsters, delicious, dell, design, design.colourblindness, desktops, digital, discussion, dock, doctorwho, drawing, dream, dreams, drwho, education, electronica, email, england, events, evernote, expressionengine, eyetv, family, feedback, femalevocal, figures, firefox, fireworks, flash, flexible, flickr, flock, fonts, foundries, foundsounds, fowd, free, frontrow, ftp, g5, games, gaming, gardening, garlic, geek, geekends, geekery, gifs, gigs, google, googlereader, grammys, graphics, greader, grids, gtd, hacks, handbags, hardware, harrypotter, helvetica, helvetireader, heros, hicksdesign, history, holiday, hosting, howto, humanrights, icab, ical, ichat, icon and interface design, icon design, icons, ideas, illustration, illustration/icon design, illustrator, illustrators, im, images, indesign, infographics, inspiration, installation, intel, interface, interfaces, internet, internetexplorer, interview, interviews, inventions, ipad, iphone, iplayer, ipod, itunes, javascript, jobs, journal, justabitoffun, leaflets, lego, leigh, lifeio, links, list, listening, lists, littlebigplanet, logo, logo and branding design, logo design, logos, london, londonbombing, mac, macmediacentre, macmini, macs, macworld, magazines, making, maps, mediacenter, mediacentre, mediacentres, mellow, memes, menus, merchandise, messages, metal, microformats, microsoft, modernart, moleskine, movabletype, movies, mozilla, music, myob, natural, nerdery, news, nintendo, nostalgia, nostradamus, notes, obituaries, omniweb, opacity, opensource, opera, organisation, os, osx, oxford, oxfordgeeknight, packaging, panic, panther, paper, parallels, penguin, people, photo, photos, pimp, plex, plugins, png, podcast, polygamy, powerbook, practice, presentation, presentations, presents, press, print, printmaking, propoganda, ps3, published, punditry, questions, quicksilver, quotes, radio, radiohead, raf, railway, rants, resources, responsive, retorts, retro, review, reviews, riffs, rip, ripoffs, rissington, rss, safari, saft, sage, samantha, science, scifi, scrapbook, security, server, shelf, shiira, signage, simplenote, sites, siteskin, siteskins, sixties, skinning, slides, slowcore, software, solutions, songbird, sony, sound, spam, speakers, speaking, sponge, spotlight, starflyer59, starwars, stationery, store, summerboard, surveys, svg, sxsw, syncing, tagging, talks, tea, teasing, templates, ten, texpattern, text, texteditor, texteditors, textile, textpattern, thebeatles, theme, themes, theming, thenational, theory, tiger, timeline, tips, toys, tv, typefaces, typography, ui, updates, updtes, userstyles, vector, veer, versions, video, wallpaper, web, webapp, webapps, webbies, webfonts, webkit, website and logo design, website design, webstandards, whitenoise, why, widgets, wifi, wii, windows, wireframing, wishlists, wordpress, work, working, xhtml, xul, yojimbo, youtube, zengarden

The Hickensian is the journal of Jon Hicks, one half of the creative partnership Hicksdesign. See the work we do.

AD by FUSION

My Zoo

I use Zootool to collect the things I like on the web…

playlist

See more on last.fm

  • Villagers - Becoming A Jackal
  • Arcade Fire - The Suburbs
  • John Grant - Queen Of Denmark
  • Starflyer 59 - The Changing Of The Guard
  • School of Seven Bells - Disconnect from Desire
  • The New Pornographers - Together
  • The Divine Comedy - Bang Goes The Knighthood
  • Beach House - Teen Dream
  • Mr B The Gentleman Rhymer - Flattery Not Included
  • Gonjasufi - A Sufi and a Killer
  • Kula Shaker - Pilgrims Progress
  • Hans Zimmer - Inception
  • Depeche Mode - The Best Of Depeche Mode Volume One
  • School of Seven Bells - Alpinisms
  • Gorillaz - Plastic Beach

Contact

Hicksdesign

Island House

Lower High Street

Burford

Oxfordshire, UK

OX18 4RR

+44 (0)7917 391 536

Download vCard

Hicksmade. Unique handmade products made for machines, not by them