-
PNG images not showing in IE6
Hi all, Come across a strange problem on this site I'm developing. The PNG images aren't showing in IE6: http://icegrips.blendagency.co.uk/homepage.html Works fine in all other browsers. Any ideas? Thanks, Rob
-
Sticky footer covering content on small screens
All fixed. thanks for your help guys.
-
Sticky footer covering content on small screens
Hi guys, Hopefully this is a simple one for some of you CSS experts. Basically my sticker footer (sticks to the bottom of a page on larger screens) is covering my content on small screens. Here's the page in question: http://replen.blendagency.co.uk/ CSS for the key areas is: body { margin:0; padding:0; background-image:url(../images/body-bg.jpg); background-repeat:repeat-x; } #header { height:99px; } #content { padding-bottom:66px; } #footer { position:absolute; bottom:0; height:66px;/* height of the footer */ background-image:url(../images/footer-bg.gif); background-repeat:repeat-x; width:100%; } Any ideas how to fix it?? Thanks in advance.
-
forward slash in menu stops active link from working
PHP Monkey... you are brilliant! Thank you.
-
forward slash in menu stops active link from working
Hi all, I'm using a JS to activate the active link within a menu. Problem is, my CMS places a forward slash before menu items. As soon as it does this, the JS no longer works. If I remove the slash, it works again. Any ideas how I get it to work with and without the forward slash? Here's a page I'm testing it on: http://www.sunseedorganics.co.uk/products1.php JS is: <script type="text/javascript"> $(function(){ var $page = jQuery.url.attr("file"); $('ul.top-nav li a').each(function(){ var $href = $(this).attr('href'); if ( ($href == $page) || ($href == '') ) { $(this).addClass('on'); } else { $(this).removeClass('on'); } }); }); </script>
-
Javascript to apply active class to link
Hi bb_matt, Thanks for your post. I've tried this approach on one of my pages, but still no success. Any ideas? Check out the source code on this page - http://www.sunseedorganics.co.uk/about-us.php. CSS can be accessed here - http://www.sunseedorganics.co.uk/master.css
-
Javascript to apply active class to link
It doesn't work like that unfortunately. I use PageLime, so I need a javascript function to get the active links working.
-
Javascript to apply active class to link
Thanks Renaissance-Design. I do need JS, as it's going to be a CMS, so I need to give the client the ability to add menu items, with active classes, without accessing the CSS. Any ideas?
-
Javascript to apply active class to link
Hi all, I'm trying to use JavaScript to automatically apply an active class to the active page in the menu. The site in question is http://www.sunseedorganics.co.uk/index1.php Code is below... I'm not sure where I'm going wrong so any help would be appreciated: Menu HTML: <div id="top_nav" class="cms-navigation"> <ul class="top-nav"> <li><a href="/index1.php" class="top-nav-link">Home</a></li> <li><a href="/about-us.php" class="top-nav-link">About us</a></li> </ul> </div> Menu CSS: #top_nav { } .top-nav { list-style-type:none; margin:0; padding:0; font-family:Annifont, Arial, Helvetica, sans-serif; } .top-nav li { font-size:15px; display:block; height:22px; padding:9px 0 0 23px; } .top-nav li a:link, .top-nav li a:visited{ font-size:16px; color:#111010; text-decoration:none; } .top-nav li a:hover { color:#315024; text-decoration:none; } .activenav { color:#F0F; } Menu JS: function setActive() { aObj = document.getElementById('top_nav').getElementsByTagName('a'); for(i=0;i<aObj.length;i++) { if(document.location.href.indexOf(aObj.href)>=0) { aObj.className='activenav'; } } }
-
active class on jQuery slider
PHP Monkey, you're a star! Much appreciated!
-
active class on jQuery slider
Hi guys, Having a few problems getting the first active button to work on this jquery slider: http://www.blendagency.co.uk/portfolio/index.html The active button starts to work after the first slide, but I want it to work on the first slide - any ideas? JS file here: http://www.blendagency.co.uk/js/jquery.lite-content-slider.js Thanks in advacne!
-
Cufon not working in IE7
Thanks for your help guys... @font-face looks like a much better option!!
-
Cufon not working in IE7
Hi guys, I'm using Cufon on a new site, but it's not working in IE7 - any ideas why? It's working fine in all later browsers. Website is http://www.sunseedorganics.co.uk/index1.html Thanks in advance!!
-
Space below footer with negative margin
Hi, I'm developing a site which has a footer that sits on top of content, therefore I have applied a negative margin to the footer. Unfortunately that's left me with an ugly big space underneath my footer: http://sunseed.blendagency.co.uk/template.html Any idea how I get rid of it so that the footer always sits at the bottom of the browser? Any help will be appreciated. HTML is: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <link href="master.css" rel="stylesheet" type="text/css" /> <script src="js/cufon-yui.js" type="text/javascript"></script> <script src="js/annifont.js" type="text/javascript"></script> <script src="js/cufon-control.js" type="text/javascript"></script> <!--[if lt IE 9]> <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script> <![endif]--> </head> <body> <div id="templateContainer"> <div id="headerContainer"> <div id="headerTop"> <div id="headerContact"> <div id="login"><a href="#">Wholesale log in</a></div><div id="tel">Tel: 01884 821926</div><div id="email">email: <a href="mailto:sales@sunseedorganics.co.uk">sales@sunseedorganics.co.uk</a></div> </div> </div> <div id="bnrContainer"><img src="images/bnr-holder-trans.png" width="1057" height="332" /></div> </div> <div id="bodyContainer"> <div id="rightContainer"> <h1>Hello... Welcome to Sunseed Organics</h1> </div> <div id="leftContainer"> <div id="navTop"></div> <div id="navBg"> </div> <div id="navBase"></div> <div id="sign"><img src="images/sign-trans.png" alt="Call Sunseed Organics on 01884 821926" width="201" height="256" /></div> </div> </div> </div> <div id="footerContainer"></div> </body> </html> CSS is: @charset "utf-8"; /* CSS Document */ body { margin:0 0 0 0; background-color:#D3E9F3; background-image:url(images/body-bg.jpg); background-repeat:no-repeat; background-attachment:fixed; background-position:top center; } H1 { font-size:26px; margin:0 0 0 0; } a:link, a:visited { text-decoration:none; } a:hover { text-decoration:none; } #templateContainer { width:1057px; margin:0 auto 0 auto; } #headerContainer { float:left; width:1057px; display:inline; } #headerTop { float:left; width:1057px; background-image:url(images/hdr-top-bg-trans.png); background-repeat:no-repeat; display:inline; } #headerContact { float:right; width:420px; display:inline; margin:0 40px 0 0; text-align:right; height: 134px; } #login { height:44px; width:199px; background-image:url(images/login-bg-trans.png); background-repeat:no-repeat; margin:0 0 18px 221px; font-size:14px; text-align:center; padding:20px 0 0 0; } #tel { font-size:20px; margin:0 0 10px 0; } #email { font-size:18px; } #bnrContainer { float:left; width:1057px; height:332px; display:inline; margin:0; } #bodyContainer { width:1018px; float:left; background-image:url(images/body-cont-bg-trans.png); background-repeat:repeat-y; margin:0; display:inline; } #rightContainer { width:700px; float:right; background-color:#FF0; } #leftContainer { width:233px; float:left; } #navTop { width:184px; height:21px; background-image:url(images/nav-top-trans.png); background-repeat:no-repeat; margin:14px 0 0 49px; } #navBg { width:184px; background-image:url(images/nav-bg-trans.png); background-repeat:repeat-y; margin:0 0 0 49px; } #navBase { width:184px; height:23px; background-image:url(images/nav-base-trans.png); background-repeat:no-repeat; margin:0 0 10px 49px; } #sign { float:left; width:201px; height:256px; } #footerContainer { float:left; width:100%; height:142px; background-image:url(images/footer-bg-trans.png); background-repeat:repeat-x; margin:-44px 0 0 0; }
-
htaccess redirect for mobile browsers - override
Hi Jock. I've tried that, but it's not working. When I click on the 'View full HTML site' link, it's just staying on m.trillodigital.co.uk. Thanks anyway, appreciate you trying to help.