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.

Frontend

HTML, CSS and JavaScript - Having trouble with CSS? Post your question here. Find solutions & discuss stylesheets, hacks and techniques.

  1. Started by Mr Ben,

    Hey all, I have just seen this interesting article about weather you need to have a jQuery dependency in your projects. I wanted to make a post here in the hope that it would help people who only use jQuery and perhaps don't know how to do the things that they are doing with jQuery in Javascript. Really as a learning aid. The article is great because it has jQuery and vanilla Javascript equivalents next to each other so you can examine and see how much harder/easier a particular way of doing something is. here it is: http://youmightnotneedjquery.com/?utm_source=javascriptweekly&utm_medium=email ** If I posted this in the wrong place, please mov…

  2. I've just spent the past half an hour trying to put a dynamic menu together using jquery. At first I thought it was because I hadn't linked to the latest version of jquery (it updated since I last used it. But once I found this <script src = "http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>" I was able to finish the project. So what's the difference between Google hosted jquery and <script src="code.jquery.com/jquery-1.10.2.min.js"></script> I'm not really a developer and I want to avoid a situation where I'm playing pot luck with the correct libraries to link to. Thanks

  3. Started by CreativeSheep,

    Is there an extension for Firefox on helping where to insert specific nodes in javascript ?

  4. Started by webDesignerJon,

    Hello you wonderful web developers I have a fiddle here with some working jquery code which validates a web form correctly the way it should. But when I put it on the web server, nothing I have tried works. When it works, it should stop the form processing completely. http://jsfiddle.net/Yax4N/ The PHP script it processes is this <?php include "formvalidator.php"; $show_form=true; ?> <?php /***************************************/ //Start to build the email details if(!count($errors)) { $my_email = "mail@jonniegrieve.co.uk"; $continue = "index.html"; $errors = array(); // Remove $_COOKIE elements from $_REQUEST. if(count($…

  5. Started by Julian,

    I am currently in the process of building a site. This site has a HTML/PHP contact form. I understand that the form I am using validates the entries using JS (unfortunately as a novice I cant see how its doing this). The problem that I have is that the "email" field validates however the "name" field does not. I have searched and searched through all of the source files to find out how to amend this but to date I have not had any success. I can post copies of the files but due to my inexperience I do now know which ones to start with. Any advice on where I can fix this error will be greatly received. Thanks Julian

  6. Started by mantis,

    I have a form that divides a date into day, month, and year on submit and all seems to work well enough except that it is displaying a different page based on the browser The data is submitted to another site which is supposed to display a page based on the values submitted: var now = new Date(); var date = jQuery('.form-date'); var day = ("0" + now.getDate()).slice(-2); var month = ("0" + (now.getMonth() + 1)).slice(-2); var today = now.getFullYear() + "-" + (month) + "-" + (day); date.val(today); var form = jQuery('form.res-form'); form.on('submit', function (e) { var currentForm = jQuery(this); var newVal = currentForm.find('.form-date').val().split('-'), date…

  7. Started by Matthew Claffey,

    Hello, I have noticed that some sites that are trending atm are big images where they look fixed to the banner. It looks so simple to do but by theory is it? Ive tried in the past and failed but would it just be something simple like: <section class="banner"> <img class="fixed" width="100%" height="100%" src="chicken.jpg"/> </section> css: .fixed{ width:100%; height:100%; position:fixed; } .banner{ width:100%; height:600px; overflow:hidden; } this by theory should make the image slide down when scrolling but it is fixed? Maybe there is a tutorial on it some where :/

  8. Started by mantis,

    I have a site in development http://dev.kirstencassidy.com/caulaincourt/ that will no longer load properly in Firefox. Although I have yet to optimise it gets a reasonable score in PageSpeed Insights (at least no worse than when it was working) and there are no errors when I debug in Chrome. I suspect the problem is in js/app.js where I've been fiddling around with geolocation and the datepicker but can't for the life of me determine what it is. Any help would be greatly appreciated. Edit: It works fine locally even in Firefox

  9. Started by j05hr,

    I'm doing an eCommerce site for a client that sells personalised invitations. Some are vertical and some horizontal. Just to get an idea... They want the borders to be the size whether they're horizontal or vertical images. So I decided to use table-cell to display the image in the center of the border. The problem comes when the description has text on more than one line and it pushes the product underneath it down. I was going to use faux columns to make the length of every box the same no matter what but I'm struggling to figure out how that would work with table cell. If anyone has any solutions how you could put four images on the same row …

  10. Hey guys, Can anyone tell me why this simple slideshow keeps jumping? I'm sure it's something obvious that I'm missing. Thought it was the slideshow but tried 3 different ones and used the slider elsewhere where it's working. It seems almost as if the first slide is taking too long to fade out? I've changed the speed settings numerous times though. Help much appreciated Cheers, Chris

  11. Started by riggers,

    Hi all. Wondered if you could help me. I've set up this site for a friend of mine. Here's the site and I've entered the key words 'Dodderhill court livery' into the description meta tags. But I can only get the site to come up in Yahoo and Bing search engines and not Google. Can anyone help? Thanks all!

    • 11 replies
    • 3.3k views
  12. Hi everybody; I'm trying to make a pretty basic horizontal drop down menu in dreamweaver. I have Eric Meyer's css reset v2.0. The problem i have is when i start styling the <li> tags inside the <ul>, the changes appear in dreamweaver's design window, but don't appear at all inside my browsers (firefox, opera, internet explorer, chrome). I've tried of course emptying the internet caches of each browser and removing the css reset, but still no changes appear in the browsers, while they clearly appear in dreamweaver. I just can't wrap my head around this thing.

    • 4 replies
    • 901 views
  13. Started by Vulcan,

    How do I keep the menu centered. When I view the website on my laptop it doesn't seem center and floats to the right. Any idea how i can fix this? http://jsfiddle.net/YZ8XA/

    • 4 replies
    • 893 views
  14. Hello fellow webdesigners, I am currently working on a webpage hosted by a platform, This platform is very easy to use however it does'nt got very flashy details and so on. It's built in a way that allows me to insert html/pictures/links as objects on areas. and these elements are then lined in a row after eachother. And I want a flashy NAVbar that includes mouseover effects and marked effects acting behind these elements like a copy. the only way to achieve the navbar is by creating a new html object controlled by CSS, And I've created a very nice Navbar but its pushing the other elements away above itself and I want it to run behind the elements that's controlled by t…

  15. Started by CreativeSheep,

    Someone please tell me how to eliminate the white space that is between the grey color and the green color ? I've been trying, margins, positioning; adjusting the positioning on class=nav arghh.

  16. I want to build a site featuring a collapsable tree of text. Text is submitted directly to the tree and is revised by users. Which existing libraries, tools and templates can I use to ease my job?

  17. I wish to know how to change the div background colour and add a href to visit a external link using css. Equinox e Services - Topic - Website Designing

    • 0 replies
    • 1.2k views
  18. Started by TheUninvited,

    So i got this code and what's the difference between using the variable speed and not i mean if i remove speed it does not make any difference but if i use speed it does not show up any difference? The one using the variable speed: (function() { var speed = 10, moveBox = function() { var el = document.getElementById("box"), left = el.offsetLeft, moveBy = 1; el.style.left = left + moveBy + "px"; if (left > 399) { clearTimeout(timer); } }; var timer = setInterval(moveBox, speed); }()); The one not using the variable speed: (function() { var moveBox = function() { var el …

  19. Hello everyone, I have a slideshow containing several HTML5 videos which play automatically on load. It works perfectly in Firefox, but in other browsers I am getting what seems like an error with the motion prediction which lasts for about a second before fixing itself. You've probably seen the error before, where the first frame 'blends' with subesquent frames, which usually happens when the image changes suddenly. It's described by wikipedia as: Hopefully that makes sense, it's quite difficult to describe without making a video of it. The error also happens when I play it in quicktime. Has anyone else encountered this problem and know how to prevent it…

  20. Started by zagg77,

    Just trying to implement a javascript gallery that automatically resizes a div to fit a series of images. For some reason it doesn't work in Firefox, only in Safari (I haven't tested in IE). any ideas whats going wrong? Many thanks in advance. Mark Below is the code, Ive made the relevant coding 'bold'. <!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>Mark Zawila Photography :: Food photography in Berkshire Gallery 1</title> <!-- …

    • 4 replies
    • 902 views
  21. Our software development company MobiDev has recently released RAD.js. It is JS framework that allows to build mobile applications faster. Optimized for iOS, Android and Windows Phone 8 as well as supporting all major Web browsers. Check it here http://rad-js.com/. We will be happy to get your feedback. Don't ban for promotion, it's totally FREE tool which will be really useful for developers! TAGS JS, Java Script, PhoneGap, framework, mobile

    • 0 replies
    • 1.3k views
  22. hey, anybody here t o tell me , how to render border radius in ie8

    • 2 replies
    • 4.9k views
  23. Started by notxalckram,

    Hi, I'm currently nearing the end of developing our new company website, its basic HTML5 and CSS. What we're finding though is when we access the website on our mobile phone, there is a section here and there with the font enlarged. While the rest of the website font is all the same and as it should be. I've tried the usual tricks such as webkit-text-size-adjust and the meta tags and scaling and none of it seems to work. Any ideas? The font size for this text is set by the css properties for the div box.

  24. I'm trying to figure out how to remove these bits from my blog posts: If you need to have a look at the code, here's the link to the blog. Any ideas?

  25. Hi Guys, This is probably going to be a simple solution, but i cant for the life of me position this link in line with the rest of them. In the header on the sight, you will a cart/checkout link, search box etc. now above that is a 'Login/Logout' link. This link should display at the beginning of the others. So the left section of the header should read: Login - Cat - Number Of Items - Checkout - Search box I have tried everything I can think of and cant for the life of me get it in the right place. This a heavily modified WordPress theme. The website is: http://37.122.209.8/mlm_store/ Excuse the IP address, this is on a new VPS and I have yet …

  26. Started by dpuk44,

    Hi for some reason my JavaScript is preventing me from receiving emails from my webform. I'm not great with Java Script can anyone see why im getting no email returned? $('#contact-form').live('submit', function(event) { event.preventDefault(); var sendemail = 1; $(this).find('input.mandatory,textarea.mandatory').each(function(){ var fieldvalue = trim($(this).val()); var errorfield = $(this).next('.error-message'); if(fieldvalue == ''){ $(this).addClass('error'); errorfield.show(); sendemail = 0; }else{ if($(this).attr('name') == 'form-email'){ var email_regex = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/; if…

    • 0 replies
    • 1.2k views
  27. Started by Dan Mackman,

    Hi all, I am a realative novice with JS so I dont know how to solve the problem I have. my site is: http://www.chemlineuk.com and I have a problem on my gallery page where I have used lightbox for the gallery tool as well as a fading slide show image script at the top of my site. The problem is that the slide show is appearing over the top of the lightbox image when you click on a thumbnail. It only affects the first row of thumbs and if you scroll down the issue goes as the slide show at the top scrolls off screen. I need the lightbox image to always appear on top. Your help would be greatly appreciated. Thanks Dan

  28. Started by ben357,

    Ive added the JS jscroller into my page as i want to have "testemonials" scrolling down the right hand div....the actual scroller just appears in the top left of the page though when viewing....i have put the html, JS and css below... I also have jquery cyle at the top, that is to be used later for a picture scroller at the bottom of the right hand div also. <!doctype html> <html> <head> <meta charset="utf-8"> <title>Paul Harley Injury Therapist - Corporate</title> <meta name="keywords" content="physio Nottingham, physio Derby, physio Leicester, sports massage Derby, sports massage Nottingham, sports massage Leicester, PHIT fo…

    • 0 replies
    • 1.7k views
  29. hi guys i use vBulletin 5.0.5 and i want add new fonts The problem the new version 5.0.5 difference from the rest of the old copies 3 and 4 please i need help how i can add new fonts to my text editor thank you

    • 0 replies
    • 1.1k views
  30. Hello, I am carrying out a research on the current practices of open innovation in software development and publishing, and would like to clarify my idea with you or someone else in your company. I would appreciate if you could take few minutes to participate in my short questionnaire: https://www.surveymonkey.com/s/KB99CCZ Thank you for considering my request. Kind regards, Adeniyi Moses Adetola, Doctoral Researcher Westminster Business School The University of Westminster 35 Marylebone Road London NW1 5LS United Kingdom

    • 0 replies
    • 1.1k views
  31. Started by unknownmale,

    I'm using the following code to load in new wordpress posts on click of a category or "Show more" This is working fine, but I want to replace the 'bloc-load' click action with it automatically loading when scrolling to the bottom of the page. var page = 1; var loading = true; var root="http://www.example.com/"; var cat = "home"; $("body").delegate("#bloc-load","click", function() { console.log("loading more..."); loading = true; page++; load_posts(16,page,cat); }); $("body").delegate("#bloc-menu a","click", function () { cat = $(this).text().toLowerCase(); var url = document.URL; if(window.location.hash) { url = url.substr(0,url.indexOf("#")); …

  32. Started by Vulcan,

    I'm using dialog boxes for a website I'm doing http://jqueryui.com/dialog/. I'm wanting it to pop up by clicking in two places, for every dialog window to pop up. One is the title and the other is at the read more part (see attached). Here is the code. <div> <a class="more" id="pin_1" name="pin_1" title="Text1">Text1</a> </div> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. In quis orci id erat elementum congue a eu dolor. Mauris et fermentum sem. Nullam consequat ligula eu diam malesuada,<br> <a class="more" id="pin_1" name="pin_1" title="Text1">Read More »</a></p> …

    • 7 replies
    • 903 views
  33. Started by 0xH,

    Hi All, I've begun delving into JS and have what is probably a very simple problem that is just completely doing my nut. Im trying to use the JQuery email validation plugin, demo works here no problem: http://0-host.net/testy.php When trying to implement it into my form im not having any joy at all: http://0-host.net/signup.php I've noticed in there is no focus event listener showing in chrome devtools on the input element on my signup page whereas on the demo there is so im guessing for whatever reason this isnt being applied to the element. There are workarounds however these plugins look very useful and would like to understand them for futu…

  34. I love creativeLIVE and I've watched quite a few of their photography workshops and some of the web development ones. http://www.creativelive.com/courses/intro-html-and-css-beyond-templates-janine-warner I'm not sure how good this one will be but it might be worth a look. Janine Warner did a previous one that I saw, and I think she's a good presenter. What I do tend to find is that I pick up the odd useful tip but I'm never quite sure whether it's worth the hours of being glued to the computer. (With the exception of Zack Arias on studio lighting, which is always worth watching - but probably not of interest to most of you). eta: This really is for beginners,…

  35. Started by alchad,

    Hi, New member here seeking help. Very much a novice and have been using webplus X6 to create a personal website to showcase my aviation photographs. It's about 95% complete at the moment and I'm just going through it trying to improve things. The site is based around using Visual Lightbox as galleries. At the moment the slideshow appears too high on the page for my liking and I'd like to push it lower./ I think I need to modify the CSS template, but am struggling to see what I need to change (it took me three hours and a lot of trial and error just to move the file number from left to right!) The CSS template is attached as a file below (couldn't paste it in…

  36. Hello everyone, What i'm actually trying to accomplish here, is to have 2 divs 1st div is called imgContainer, and 2nd is imgContainer-unutrasnji. imgContainer-unutrasnji holds the image that I want to go behind the 1st div, and I did that using z-index, but i faced problem when i linked the image. The image is unclickable because it is behind the 1st div. so.. any ideas how to solve this issue ? Here is the online version of this page: http://poledanceakademija.com/Artist/mojeslike.html #imgContainer { width: 165px; height: 167px; background-image:url(images/imageContainer.png); transition: background-image 0.8s ease-in-out; background-repeat: no-r…

  37. Started by active-worker,

    I have created a responsive site. This site has two menu like main menu and footer menu. I use selectnav.js in main menu for creating a navigation menu. I want to create same navigation menu for footer menu using selectnav.js. But I can’t do that. So, please help to solve this problem. Thank you. https://dl.dropboxusercontent.com/u/211935016/19.01.14_thakur/index.html

  38. Started by irn3rd,

    I'm having a problem with Ie10/11. We have a jQuery ajax request that's firing, but instead of using the current domain, it's using the last domain you visited in the browser/another tab. Example : Domain1.co.uk - Site with the ajax request. I visit domain2.co.uk go and then do back to domain1.co.uk When the ajax request is fired the url given is appended to domain2.co.uk instead of domain1.co.uk. Has anyone ever encountered this? Ben EDIT: If i copy a paragraph from word instead of a website, It doesn't fire the ajax network request and gives a different error message

    • 2 replies
    • 895 views
  39. Started by lowermax,

    Hi, I am making an update to a friends website by coding in the Orbit JS Slider. It is nearly there but for some reason the images aren't loading. Can anyone make any suggestions as to why it is re-sising the images to 0 x 0 px Link Here Any advise will be much appreciated. Thanks

  40. Started by TheUninvited,

    I made this code works once but now i dont know why it doesn't work so can you please take a look and tell me what is wrong? Thanks. var foo = new Array(11, "hello", true); var length = foo.length; var value = foo[0]; foo[0] = 12; foo[1] = 13; alert(foo);

  41. Hi, I am looking to make a site muti-lingual. I have seen the google translate script. Are there any other alternatives. Mini question, the site is made with dot net nuke, I don't have a clue as to how to use it. Is it straight-forward to copy and paste a script within dot net nuke?

  42. Started by Dredd2000,

    Hello all, I'm pretty new to designing css for smartphones so can anyone point me to any online tutorials that cater for this? I'm interested in creating a top down layout that starts with the logo at the top then has a series of drop down menus, for example, a sign in drop down tab, new user drop tab and so on, with each tab taking up the total width of the smartphone's screen. If anyone knows of any handy books ranging from intermediate to advanced on this subject then please reply with the title of the book and I'll look them up on Amazon. Thanks.

  43. Started by James Winfield,

    Hello. I am designing a website for my DJing. Currently I list my DJ Charts on another website, Resident Advisor, and I was hoping for a way to easily display this chart on my own page. They have something called an API - which quotes "RA's application programming interface (API) gives you a way to access data connected to your accounts. This means you can power information on your websites, third-party services, a blog, an app or a component using content from RA. In fact, you can basically do whatever you want with it. " http://www.residentadvisor.net/api/dj.asmx?op=getartist I kind of assume this means I can do it so I followed the instructions and …

  44. Started by CreativeSheep,

    How come when I enter a number other then 45 I don't get the prompt "bye" ?

  45. I'm having trouble with menu that has sub-items. It keeps going behind the slideshow, at the moment, there is an image, not the slideshow and it works fine, but if i insert the slideshow, it goes behind. I would apreciate if anyone could implement some simple slideshow and make it work.. http://poledanceakademija.com/Molde/

  46. Started by moham,

    Hi everyone Havent posted in a long time. First thank you all for the fantastic support you have given me ever sine i came here. Ok i need a little help. The OO is suppose to show a number for the article, a header title and a story but havent been able to get it to work I have been working on an OO that looks like this: Please help function myArticle(storyId, header, story) { this.storyId = storyId; this.header = header; this.story = story; var newNum = document.createElement("i"); var add_storyId = document.createTextNode(this.storyId); var newHeader = document.createElement("h2"); var add_header = d…

  47. Started by moham,

    Hi everybody first and foremost i think that this is a fantastic forum and i have learned a lot here thank you everybody. OK i need a little bit of help on a project im working on. It involves cookies so basically i have a website that is nearly done. I want to add a feature where when the user clicks on a button it will change the layout style. I have figured that part out and it works perfectly but i havent figured out how if when the user clicks on it every page should have the new style. I know there are several alternatives like server side but i want to use a cookie for it but i dont know how to do that. Could someone please help me This is the javascript th…

    • 8 replies
    • 1.3k views
  48. Hi, if you go to http://www.paydayloansnowdirect.co.uk/ you can see the slider near the top works just fine! However, if you then go to https://www.paydayloansnowdirect.co.uk/ (only difference is SSL is being used with https://) and you can see the slider doesnt work, i have spent a while trying to sort this and have no idea what is going on! All local links appear to be relative to the directory.... Any help is much appreciated!!

    • 5 replies
    • 1.1k views
  49. Hi Folks, I was wondering if someone could offer advice or help on a dilemma I have with an image gallery I have on my portfolio site. What I wish to do is add multiple images to each project (six project images at present), Im new to jquery and a little unsure of how pagination should be integrated, I found a tutorial on pagination which works as it should, Im just not sure how this would be integrated into my single images to make them multiple full size images. Or is there a suitable responsive jquery plugin that is a full gallery but has multiple projects within it? My portfolio site is here, http://angelamckeeman.com/am-portfolio-2014-v1/tooltip.php, my galle…

    • 2 replies
    • 1.2k views
  50. Started by Towelie,

    Hello I am new to coding and I find it really hard to watch through long videos learning stuff I can some html and I feel like I always start over again.. but I have occurred a problem, you may know how to code or make this If you look to the right I need a menu like this, but I have totally no idea how to make it. Someone told me this, but still I want images like on the picture. Thank you for all help!

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.