Everything posted by Trillo Digital
-
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.
-
htaccess redirect for mobile browsers - override
Thanks Jock. So, I've added that line to my htaccess. Here is the code in full: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} !^URLREMOVED$ [NC] RewriteRule ^(.*)$ URLREMOVED/$1 [R=301,QSA,L] ####redirect to mobile site below RewriteEngine On RewriteCond %{REQUEST_URI} !^/m/.*$ RewriteCond %{HTTP_ACCEPT} "text/vnd.wap.wml|application/vnd.wap.xhtml+xml" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "acs|alav|alca|amoi|audi|aste|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "dang|doco|eric|hipt|inno|ipaq|java|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|opwv" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "palm|pana|pant|pdxg|phil|play|pluc|port|prox|qtek|qwap|sage|sams|sany" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|w3cs|wap-|wapa|wapi" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "wapp|wapr|webc|winw|winw|xda|xda-" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "up.browser|up.link|windowssce|iemobile|mini|mmp" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "symbian|midp|wap|phone|pocket|mobile|pda|psp" [NC] RewriteCond %{HTTP_USER_AGENT} !macintosh [NC] #*SEE NOTE BELOW RewriteRule ^(.*)$ URLREMOVED [L,R=302] ##end mobile redirect RewriteCond %{http_cookie} !fullsite=1 </IfModule> How should the link on the mobile site to the full site work? I take it it's not as simple as this: <a href="URLREMOVED">View full HTML website</a>
-
htaccess redirect for mobile browsers - override
Hi Jock, thanks for the response but that's not really what I'm looking for. I know how to redirect to my mobile site using the htaccess code. However I want to give people the option to view the full site from their mobile device, via a link 'Click here to view full site' However, because my full site is on my normal domain trillodigital.co.uk, anyone viewing that domain via their mobile device is redirected to the mobile site at m.trillodigital.co.uk - do you see what I mean? It's a catch 22 situation. Any ideas how I can resolve this?
-
htaccess redirect for mobile browsers - override
Thanks Jock... I just put that in because I can't post a URL to this forum yet. Do you know how to resolve my issue?
-
Using a non standard font for a website...Can this be done?
Here's how... trillodigital.co.uk/blog/2011/non-standard-web-fonts.html
-
htaccess redirect for mobile browsers - override
Hi, I have a mobile version of my website. At the moment, I have a htaccess redirect set up so that if somebody is using a mobile device, they are redirected to the mobile version of the website - the mobile version is a subdomain: Main website - trillodigital.co.uk Mobile website - m.trillodigital.co.uk I want to add a link to my mobile site which goes to the the full version of the site, but obviously mobile devices are redirecting to the subdomain as a result of my htaccess file. Is there away to override this when somebody using a mobile device wants to access the full website? Here is my htaccess redirect: ####redirect to mobile site below RewriteEngine On RewriteCond %{REQUEST_URI} !^/m/.*$ RewriteCond %{HTTP_ACCEPT} "text/vnd.wap.wml|application/vnd.wap.xhtml+xml" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "acs|alav|alca|amoi|audi|aste|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "dang|doco|eric|hipt|inno|ipaq|java|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|opwv" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "palm|pana|pant|pdxg|phil|play|pluc|port|prox|qtek|qwap|sage|sams|sany" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|w3cs|wap-|wapa|wapi" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "wapp|wapr|webc|winw|winw|xda|xda-" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "up.browser|up.link|windowssce|iemobile|mini|mmp" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "symbian|midp|wap|phone|pocket|mobile|pda|psp" [NC] RewriteCond %{HTTP_USER_AGENT} !macintosh [NC] #*SEE NOTE BELOW RewriteRule ^(.*)$ SUBDOMAINGOESHERE [L,R=302] ##end mobile redirect I'm not a coding expert, so would appreciate some help. Thanks!
-
htaccess redirect for mobile browsers - override
Hi, I have a mobile version of my website. At the moment, I have a htaccess redirect set up so that if somebody is using a mobile device, they are redirected to the mobile version of the website - the mobile version is a subdomain: Main website - trillodigital.co.uk Mobile website - m.trillodigital.co.uk I want to add a link to my mobile site which goes to the the full version of the site, but obviously mobile devices are redirecting to the subdomain as a result of my htaccess file. Is there away to override this when somebody using a mobile device wants to access the full website? Here is my htaccess redirect: ####redirect to mobile site below RewriteEngine On RewriteCond %{REQUEST_URI} !^/m/.*$ RewriteCond %{HTTP_ACCEPT} "text/vnd.wap.wml|application/vnd.wap.xhtml+xml" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "acs|alav|alca|amoi|audi|aste|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "dang|doco|eric|hipt|inno|ipaq|java|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|opwv" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "palm|pana|pant|pdxg|phil|play|pluc|port|prox|qtek|qwap|sage|sams|sany" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|w3cs|wap-|wapa|wapi" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "wapp|wapr|webc|winw|winw|xda|xda-" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "up.browser|up.link|windowssce|iemobile|mini|mmp" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "symbian|midp|wap|phone|pocket|mobile|pda|psp" [NC] RewriteCond %{HTTP_USER_AGENT} !macintosh [NC] #*SEE NOTE BELOW RewriteRule ^(.*)$ SUBDOMAINGOESHERE [L,R=302] ##end mobile redirect I'm not a coding expert, so would appreciate some help. Thanks!
-
Negative positioning creating large unwanted space
Problem solved. Removed the clear class, and applied this... #containerFooter { position:relative; float:left; height:470px; background-image:url(../images/footer-bg.jpg); width:100%; margin-top:-430px; z-index:-1; } Thanks for your help.
-
Negative positioning creating large unwanted space
I've changed the CSS slightly and it's working well in all browsers apart from IE. Any ideas how I can get this working in IE too? happypawsredditch.co.uk/index1.html #containerFooter { margin: -430px auto 0 auto; height:470px; background-image:url(../images/footer-bg.jpg); background-repeat:no-repeat; z-index:-1; }
-
Negative positioning creating large unwanted space
I'll have a go, thanks for your help Dave. Appreciate it!
-
Negative positioning creating large unwanted space
Thanks Dave, but the #containercontent div is a different width, so would that work?