I found the following snippet of javascript (uses jQuery) that would allow me to centre a menu/nav that is set to float:left. It seems to work in IE and Opera OK. But in FF and Safari, it works sometimes and other times trips out (keep refreshing the page and it will eventually work/fail). In Chrome it doesn't work at all.
Icaros Shell Extensions 3.3.6 by Razvan Serea
Icaros is a collection of lightweight, high quality, Windows Shell Extensions. Icaros can provide Windows Explorer thumbnails, for essentially any video media format supported by FFmpeg, this includes popular filetypes such as: Mkv, Flv, Avi, Mp4, Mov, Rmvb, M2ts, Ogm etc.
Besides the FFmpeg supported filetypes, Icaros also contains custom parsers, which can produce Cover Art thumbnails for Mkv, Flac, Ape, Mpc and several other filetypes.
Icaros also provides Windows Explorer properties for the following popular filetypes: Mkv, Mk3d, Mp4, Mov, Webm, Ogm, Ogg, Flv, Avi, Rm, Rmvb, Flac, Opus, Spx, Ape, Mp3, Mpc, Mka, Tak, Tta, Ofr, Wav and more.
Properties refer to the info shown for each file in Explorer, such as length, width, height, title, channels and so on.
Icaros works on Vista, Windows 7, Windows 8/8.1, Windows 10 and Windows 11.
Icaros Shell Extensions 3.3.6 changelog:
Added support for Animated WEBP thumbnailing
Added support for UTF-8 filenames in CBX files (Comic book files)
Added support for rotation of MKV thumbnails
Added support for "Sort title" property in MKV files
Fixed some wav files not showing properties
Fixed some old h264 files producing green thumbnails
Fixed default level of MKV tags (now set to 50)
Updated FFmpeg
Download: Icaros Shell Extensions 3.3.6 | 12.8 MB (Freeware)
Download: Portable Icaros 3.3.6
View: Icaros Shell Extension Home Page | Screenshots 1 | 2
Get alerted to all of our Software updates on Twitter at @NeowinSoftware
No kidding, Tim, we've been running low on memory for a while now... get your head out of the Apple pixie dust cloud and come back down to earth with us peons.
Question
jordan.
I found the following snippet of javascript (uses jQuery) that would allow me to centre a menu/nav that is set to float:left. It seems to work in IE and Opera OK. But in FF and Safari, it works sometimes and other times trips out (keep refreshing the page and it will eventually work/fail). In Chrome it doesn't work at all.
Here is the code:
$(function() { var menu_width = $('#nav').css('float', 'left').width(); $('#nav').css({float : 'none', width : menu_width, margin : '0 auto'}); });I don't know js so I can't figure out what the problem is. If anyone can help it would be much appreciated.
Here is the page running the code:
http://www.islandrobot.com/vanessa/
Cheers,
Jordan
Link to comment
https://www.neowin.net/forum/topic/894492-js-center-a-menu-that-is-floated-left/Share on other sites
15 answers to this question
Recommended Posts