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. I've added a border radius and shadow to a nivo slider, which appears fine in most browsers apart from safari where the image is overlapping the rounded border. Any ideas as to why this is happening? Seems fine on load and then the second slide loads in and the corners go weird. http://dev.lecollective.co.uk/clients/2013/inspire/

  2. Hi all, My latest pet project is to catch up on the subject of regular expressions but in a HTML5 context. I know that the pattern attribute for HTML5 uses Javascript Regex expressions but I've often found myself mystified by patterns i've tried to make that just don't work. I made a page on my website in which I put various expressions together for me to test which is helping me to learn how they work. I'm in the middle of writing a blog post that gives examples of expressions and search for them as well as something that explains what all the characters mean. I don't think there's a lot of support in the all the numerous searches i've done on the web. …

  3. Hi, the following line of code will rotate the element Wheel1Red by 30 degrees: document.getElementById("Wheel1Red").style.webkitTransform="rotate(30deg)" ; This is the code for Chrome, but the part which is relevant to my question is the same in all browsers, ie ="rotate(30deg)"; To allow the code to work on different elements, I have introduced two variables: document.getElementById("Wheel" + a + "Red").style.webkitTransform="rotate(" + Ro + "deg)" ; "a" lets me cycle through the 19 wheels in the game, while "Ro" lets me change the degree of rotation. I have defined 19 Ro variables, all starting off at zero, so Ro1=0, Ro2=0 etc The problem come…

  4. Hello, I have a question, i dont know if it will work but i was thinking for my college project to store a language file in my site stroing all the video images etc etc. ive been trying to work out how to code it and this is an example of what ive came across. var LoopNumber = 2; var LetterArray = new Array("<p style='color:#fff;'class='Iphone-footer'>Websites</p>","<p style='color:#fff;'class='Iphone-footer'>Artwork</p>"); while(LoopNumber<3){ document.write('<section class="ip-foot-block">' + LetterArray[0] + '</section>'); LoopNumber++; LetterArray++; } this should display two ip-foot-blocks with the value web…

  5. So essentially I need a function that takes three arguments: min, max, percent func(-1000, 0, 50) should return -500, func(-1000, 0, 100) should return 0 and func(-1000, 0, 0) should reutrn -1000. I've been stuck on this for hours now! Anybody know how I could do this? Problem is im using a negative range. Thanks in advance. ~atomiku

  6. Hey guys, I need an expert for help with a css layout problem I am having. I am 16 and currently trying to setup a website to offer very basic web design to friends, family and extended associates. Im going to college in January on a web development course, so I haven't covered the technical aspects of this yet. Here is what Im trying to do: I want to move the testimonial's picture and name from my testimonials section so that they don't appear above the testimonials. Here is how it currently looks: And here is a (rather crude) mockup of how I want it to look... essentially moving the picture and the name to the left of the testimonial itself. …

  7. Started by iftijafar,

    I want to apply validation on my register forum like email, password, username by using javascript so how is it i can apply. I am new for javascript but i have experience in html and css. So anyone give me some suggesstion how i can apply the validation.

  8. Started by rjdesign,

    Hi! I am a graphic/product designer in the process of making my first portfolio website. The basic's of html/ccs was learned at codeacademy.com and various youtube videos starting about 3 weeks ago so my skills are somewhat limited. I've gotten the page this far but now im stuck. I want to add a slider so that when your press "about" or "contact" the dark-grey content slides to the left and make way for the about or contact content which should slide in from the right. The about page would have a photo and some text about me, the contact page would have a contact form. I have searched and found various jquery sliders such as: http://liquidslider.com/ http://musca.se/…

  9. Hello friends, I was checking this tutorial here but when i downloaded the sprite and tried to make it work on my local host it doesn't even move? see here on my server but tht works on codepen here thanks i got it resolved

  10. Delete this post please

    • 0 replies
    • 1.3k views
  11. Unfortunately I don't see much NodeJS activity in these parts, so I'm taking a chance here.. But I'd like to avoid adding yet another forum subscription to my already long list, so I'm hoping someone here with a better understanding of JavaScript can point me in the right direction? For reference, my current code for this project can be found here, to which I've just pushed my latest changes for clarity. I'm rather new to NodeJS, not quite so new to the concept of AMD style JavaScript, but I can't figure out what's going on here. In case you're not familiar with the boilerplate I used, the generated website's index file is in the `/views` folder, and the rest of the p…

    • 2 replies
    • 2.1k views
  12. Started by dpuk44,

    Hi, I have this website http://www.nurdit.com/mexin/shop.html is there a way to add some kind of JQuery/PHP/AJAX plugin over the top of this? without changing the style of the site?

    • 2 replies
    • 863 views
  13. Started by AndyDesigns,

    Hi Guys, I'm using the Twitter Bootstrap Framework for my Wordpress theme. Unfortunately because of the CSS property shown below all my images are very slightly blurred at any resolution (desktop, tablet etc), as soon as I remove the max-width property they become sharper but obviously no longer responsive: .img-responsive { max-width: 100% } I've tried using width: 100% instead but they are still blurred. This seems like quite a basic issue so I must be missing something obvious here. How do I keep them responsive but also crisp? Any advice much appreciated. regards, Andy

  14. Hi I am just a beginner who can not write code or anything. I use a basic drag and drop software that has not been updated by the software company for years. If I want to add a css drop down menu to a web page then I have to use a 3rd party type software that you can find on the net. The default doctype that my drag and drop design software churns out wont support the menu and the menu does not function correctly. If I change the doc type to <!DOCTYPE HTML> Or one of the others that are more commonly used now the menu works fine but the text on my page distorts and I get symbols showing everywhere You can see on this page http://www.insuranceexc…

  15. Started by BGM,

    Salvete! I visited this forum a long time ago, but now I'm coming for some assistance. I have created an RSS feed for my website. The feed works and I can subscribe to it with my RSS Owl. However, I want to add feed autodiscovery to my site. The site is coded in asp.net, and I've added the autodiscovery code to the header of my master page: <link rel="alternate" type="application/rss+xml" title="RSS Feed for shoppe.sspxusa.org" href="http://shoppe.sspxusa.org/feed.xml" /> However, Firefox does not autodiscover my feed like it does other feeds (including the one on this site). I've found a good example of RSS and feed autodiscovery here: http://de…

    • 4 replies
    • 1k views
  16. Started by SimpleSucces,

    So i've been wondering what you guys think about responsive template such as bootstrap. Personally, for now i like to work from the ground up because 1) A better learning Experience 2) I feel more in control. Obviously when Wordpress or another equivalent CMS comes into place the whole subject changes, but let's not take the CMS into account this time What do you think about Responsive templates? Yay or Nay?

  17. I'm trying to make the bottom part of the form to be invisible when the form loads, and to keep both yes and no unchecked, unless the yes is clicked, then the form appears. Any Advice?? http://jsfiddle.net/CasperGemini/fYtWj/

  18. I have been doing a lot of studying on Javascript and it's obvious it has endless possibilities. It also has about 20 (if not more) different types of libraries and frameworks. I have been looking on the job boards for web developers and I'm getting put off by their requirements. For example, even Junior web developer roles in the job description say "excellent knowledge of Javascript/JQuery/Bootstrap/Prototype"etc. From what I can see it would take no less than 20 years to gain "excellent knowledge" of Javascript and all it's libraries and frameworks. Are there really web developers out there that know every part of Javascript like the back of their hand? It seems to…

  19. I have done a lot of studying on the basics of Javascript. It seems like a very good language to help you communicate with the user. It can also do calculations, give certain information when required and so on. I have created my own "help guide" on the basics of Javascript from a really good tutorial and I think I'm good on the basics. Now what I would like to do is to move on to the Object Oriented part of Javascript. Again I have done a lot of research and there is a mountain of tutorials, help guides, books etc on OOP within Javascript but I have yet to come accross any information on it's practical uses. I'm not talking about the general uses of Javascript but sp…

  20. I got this : I want when someone clicks the submit button to sent informations to an email. So after he complete full name,last name,street adress , those details to be sent on specific email. I am using html and probably i need php or something like that? <form action=""> </form>

  21. http://freedomcore.com/saverplaces.co.uk/NEW/ In the above site when click the Terms & Conditions or More information on this voucher links just below the Get Voucher button. You will see a div slide down below with the content. I want it so that if you have clicked Terms & Conditions then go and click More information on this voucher it will hide the "Terms & Conditions" content so that both are not displayed at the same time. My JavaScript isn't the best this is what I came up with but it does not work: I have More information on this voucher link this class hide-terms-1 then I have this jQuery code: $(document).ready(function(){ $(".hide…

    • 1 reply
    • 2.9k views
  22. Started by staffybtuk,

    Hi everyone, i'm looking for something like facebook comments plugin for my pages on my website. can anybody tell me where i can get free codes or codes i can buy?

  23. Started by CapnPatch,

    Hi, This code will rotate an element in Chrome: document.getElementById("Wheel1Red").style.webkitTransform="rotate("+ Rotation +"deg)" ; This variant will do it in Firefox: document.getElementById("Wheel1Red").style.setProperty('-moz-transform',"rotate("+ Rotation +"deg)"); But this line doesn't do it in IE9: document.getElementById("Wheel1Red").style.setProperty('-ms-transform',"rotate("+ Rotation +"deg)"); Can someone help me fix it please? The game can be found at: http://www.rolloworks.co.uk/tubie/playscreens/sixstripes/sixstripesTEST.html Also, why is it that sometimes an image won't respond when you click on it, but moving your mouse by…

  24. Started by Atomicus,

    Not sure if I'm posting this in the right place or not, but it's an odd problem. I have a very basic site that has several images on it as transaparent PNGs, sitting on a textured background. Site all looks good, happy with that, but people have been sharing the link on Facebook and when they do so, when Facebook shows the site preview, it shows the main image on the site (which in itself is fine), but because it's a transparent PNG, it has no background so in the preview just looks odd. Is there any way to fix this, so the site has a more solid 'preview' image, or do I need to change something on the actual site? As I say, happy with how the site looks, so don't want to …

  25. Hi folks, i’m coding responsive site with skeleton framework (http://testi3.aada.fi/index.html) for customer that now wants its footer to float at the bottom of page no matter height of the page. So that page content will scroll under it. How i’m gonna do this..? when .site-footer { position: fixed; bottom:0px; } destroys everything and my responsive nav just disapers ;-) // Mika

  26. Started by CasperGemini,

    I wonder if it's possible to do the animating box on the left side where it says "Interpreter Request" from pure GIF file to a CSS?? Any Advice?

  27. Okay.. I know the basics of putting a Div within a Div. Code (text): <div id="container"> <div id="articles"> </div> </div> This has always worked for me. Lately i've been trying to add a slide Show Jquery plugin so i can at least have some kind of Slideshow at the top of my site. Ive been spending a whole week testing all sorts of CSS,HTML and Jquery slideshows with none of them ever working properly. My knowledge in Jquery is biggeiner, but i can copy and paste no problem, which is what many of these sites only need. I finally got one working today, but as soon as i started to add my FaceBook Plugin the slide show stopped wor…

    • 3 replies
    • 902 views
  28. Started by MikeP,

    Hey Guys, I'm building a website right now but I'm a bit stuck. I have a drop down selector at the top and I want the currency on the website to change per the visitors selection at the top. So if they choose USD, the currency throughout the site/page changes to content provided for USD etc, if that makes sense? Any help would be appreciated. Thanks, Mike

    • 0 replies
    • 864 views
  29. Started by eva258,

    Hello everyone, I'm posting here looking for some good counsel. So, I've made it a personal challenge that I wanted to create a website from scratch and will learn whatever needs to be learned to make that a reality. So far, i know that I need to start learning - HTML (first question : could I start learning with HTML5 directly?) - CSS (second question : could I start with CSS3 directly?) - Javascript, PHP and SQL Have I missed an essential training here? Do you have any good courses to recommend please? I'm thinking of getting the courses provided by Lynda.com. Last question : if I learn and "master" these languages, will I be enough prepared to create my website…

  30. I have been asked to make a type family demonstration where I show examples of different font families. I have been asked to use google fonts to do this. My problem is that when I link to the font it is not working. It keeps just using the default font rather than the one on google. Do I need to download the font and use @font-face or can I simply link to it in a different way than I have been doing? i am new to all of this so any help would be much appreciated. Thanks

  31. Started by 0xH,

    Hi all, Having some trouble with the black image at the bottom of the footballer silhouette: http://localplaymaker.com Its currently set as the background image so if the browser window is resized vertically the image moves up into the page overlapping the main content. I guess I need to set a fixed height and lock the image to the bottom of the page? but then what about compatibility across different resolutions? particularly on laptops for instance. Is this workable? and if so what particular method do you think would work best? im going to keep the template constant throughout the site with a box in the middle of the page for main conten…

  32. First off, I want to apologize for the 2 previous posts. There were some loading problems on the page and when I got back to the main forum, I saw I made 3 copies by accident. Admin please delete those two. Thanks. Hey guys, I've been trying to figure this stuff out for quite some time before I post here, but no luck... Basically, I am building a flexible/responsive website and I need to center the content. Here's what it looks like with this code: display: -webkit-box; -webkit-box-orient: vertical; -webkit-box-pack: center; -webkit-box-align: center; http://i.stack.imgur.com/dIgNM.jpg Although the logo and the footer is centered, the main content is me…

  33. Started by pacovix,

    I came across this problem and dont know why is it happening and hoping that someone can explain ti to me I have this two elements <div class"row"> <div class"box"> </div> </div> .row { margin:0 auto; width:960px; } .box { width:928px; margin:0 16px 0 16px; } ok so now i have two elements and i want "box" to have top margin 50px so i did next .topmargin{ margin-top:50px; } (i did it this way because im using this element called "box" several times and i want a margin top only on some) so here im calling two classes in one div: <div class"row"> <div class"box topmargin"> </d…

  34. Started by mrludable,

    Hi all, I am working on a new site and as part of one of the pages I wanted a class to be added when someone scrolled a certain amount. I had posted in another forum where somebody had coded up some jQuery that was working better than what I was using. On the demo page of this new jQuery it was working fine. When I had added the code to my development site it seemed to be removing a small amount of code. I'm not familiar with jQuery so I don't really know what is going on. Screenshots attached of what is going on. error-message.png is what is displayed on the page. dreamweaver-code.png is what the code looks like in Dreamweaver. source-code.png…

  35. Started by Elvedin,

    Hello, I noticed when i am loading few specific pages on my website some problems happens, well the font is loading slow and something more happens , dont know how to explane you. I found where the problem is but i dont know and i dont have any idea how to fix that problem. Here i will show you the screen shots: Normal page loading image link : http://i.imgur.com/1dkCnGq.jpg With problem page loading image link : http://i.imgur.com/CrCWpgj.jpg ________________________ On this page where you can see those problems i am using toggle scripts, and when i removed those toggle codes everything loaded normaly without any problems , so the problem is inside this tog…

    • 2 replies
    • 873 views
  36. Hi friends, What is the difference between Web 3.0 and Web 2.0? and also tell me the features of Web 3.0 Thanks

  37. Started by andys,

    I have this first function that jiggers around the css of the sidebar depending on the scroll of the page, works great. $(document).ready(function () { // document ready if ( !! $('.sidebarholder').offset()) { // make sure element exists var stickyTop = $('.sidebarholder').offset().top - 50; // returns number $(window).scroll(function () { // scroll event var windowTop = $(window).scrollTop(); // returns number if (stickyTop < windowTop) { $('.sidebarholder').css({ position: 'fixed', top: 50 }); } else { $('.sidebarholder').css({ position: 'absolute', top: 650 }); } }); } }); The second function animates some divs depending on the scroll of the page…

    • 0 replies
    • 875 views
  38. Hello, I received a "responsive" website and I wanted to check if the designer did a good job. Where can I go to check if it's really valid with the W3C validator, do I have to use the mobile validator? Something else? Thank you very much for your help. David

    • 5 replies
    • 5.3k views
  39. Started by gobbly2100,

    Hi folks, I seem to be having an issue with the overlay of a lightbox, I have tried changing the z-index on different elements but not having any luck. It appears the issue is in FF, IE and Chrome http://tellitphotoweddings.co.uk/?Itemid=154 Any assistance would be much appreciated, thanks!

  40. Started by j05hr,

    Hi I'm coding an HTML email template, it looks fine in a browser and in Outlook, but when I send it too Hotmail or Gmail it has this space in between each table. Here's the code <table width="100%" cellpadding="0" cellspacing="0" bgcolor="e9e9e9"> <tr> <td> <table id="header1" cellpadding="0" bgcolor="#ffffff" cellspacing="0" width="621" align="center"> <tr> <td>Hello world 1</td> </tr> </table><!-- header1 --> <table id="header2" cellpadding="0" cellspacing="0" b…

    • 14 replies
    • 1.6k views
  41. Started by Sparrow,

    Hi everyone. I've been trying for over three hours to get the simplest bit of HTML to display center aligned with a background color in Email applications like MSN and Gmail. <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" align="center"> <table bgcolor="#fefdf9" width="600" id="Table_01" border="0" cellpadding="0" cellspacing="0" align="center" > <tr> <td> <img src="http://advocacynet.org/wordpress-mu/chooson/files/2009/08/black-box2.jpg" alt="" width="600" h…

    • 6 replies
    • 13.2k views
  42. Hello all, I'm trying to design a login menu that when a user clicks on the button a hidden div scroll down revealing a new user form. The scrolling hidden div is not the problem, I would like the button to scroll down the the page at the same speed as the new user form scrolls down the page. Then, when the user clicks the button the button will scroll up the page along with the hidden div hiding the form. I've googled the problem but there doesn't seem to be any forums or tutorials specificly on this topic. I've designed a test that works, but I just can't get the button to scroll down. For this test each div has been given distinct colours to show their posi…

  43. Hi guys and gals, Although I've been a 'lurker' for a while, I finally jumped in and registered. I have an issue that has got me stumped and I would be very grateful if someone might be able to assist. The website I have is here: http://smarter.uk.com/current-project (currently in dev) and I'm trying to get the carousel to change when you mouse over a thumbnail (on the left) but also to fade in. The issue I'm getting is that the first time I mouse over, the item fades in, but the second time you do it on the same item, it doesn't fade (the "opacity: 1" is 'stuck'). Does anyone have any experience with this. I'm using jQuery for the fade as it needs to …

  44. I've created this lightweight mp3 player from scratch using an audio element and raw JavaScript for the controls. Besides for the lack of support for native mp3 in most Firefox versions it seams to work fine in all modern browsers. I'm using DOM 2-style EventListeners instead of onclick, onload ect. which is very new to me. For that reason I would appreciate if anyone feels like talking a look at the code and post suggestions for improvement here. I've created a jsfiddle here: http://jsfiddle.net/Nillervision/s72b2/ If you wish to use the player in your own projects feel free to copy the source from here (HTML with css and js embedded). It's very easy to use. To…

  45. I am working with a client that needs to have a drop down menu for payment buttons so that when the options are changed it will properly correspond and only download that particular file. The system used is e-junkie. The codes that would be used for links are as follow below: <a href="https://www.e-junkie.com/ecom/gb.php?c=cart&i=1257310&cl=207948&ejc=2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="http://www.e-junkie.com/ej/ej_add_to_cart.gif" border="0" alt="Add to Cart"/></a> <a href="https://www.e-junkie.com/ecom/gb.php?c=cart&i=1257314&cl=207948&ejc=2" target="ej_ejc" c…

    • 0 replies
    • 1.1k views
  46. Started by jerseydudek,

    Hi, I have a form with 4 fields. I've got everything working except the validation js ... or is it something to do with the css?? What's happening at the moment is that when I hit submit without filling in any fields the background colour and font change on the Enquiry field, but not on the 3 other fields. I've been trying to fix it for a couple of hours but just can't see why the other 3 fields are not picking up the "needsfilled" style while the Enquiry box is!!! Thanks to anyone who can help. HTML, CSS and JS I'm using is as follows: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transi…

    • 4 replies
    • 1.1k views
  47. Started by wickywills,

    Hello, I would like to have a div, that when rolled over on different areas of that div, it would tilt away from the area that is rolled over. For example, if I were to roll over the top-right corner of the div, that corner would tilt away from the user (z-axis), if that makes sense? I used to see this done in Flash, unfortunately I can't remember the example. I think I have seen a CSS3 example of this, but can't remember how it was done. Does anyone know how to do this? I can provide a few Photoshop mock-ups if that helps explain things? Thanks in advance James

    • 8 replies
    • 5.5k views
  48. Started by throzen,

    Hi folks, I've been getting to grips with responsive design lately and, well, want to make sure I'm not going mad. I've always assumed that the following method was the way you do it, but it's getting rather long-winded and monotonous and I want to make sure there isn't a short-cut. Here's a snippet of my responsive coding: @media screen and (max-width: 480px){ #wrapper{ max-width: 460px; } #topstrip{ height: 140px; max-width: 463px; min-width: 463px; } #logo{ max-width: 460px; position: relative; } #logoimg{ width: 495px; height: 130px; position: relative; left: -20px; } #iheartcss{ display: none; } #navbar{ max-width: 478px; position: relative; left: 11…

    • 4 replies
    • 880 views
  49. Started by Charly,

    I have a basic inline menu which displays different in Chrome and Firefox. - In Chrome, the menu displays at the top of a defined div - In Firefox, the menu displays much lower down. Can anyone help me make this display consistently. My html is:- <div id="menu-wrap" class="eightcol last"> <div class="menu"> <ul id="menu"> <li class="about"><a href="http://www.charlyanderson.co.uk/home" class="pink" rel="slideto">About Me</a></li> <li class="services"><a href="http://www.charlyanderson.co.uk/website-services" class="green" rel="slideto">Services</a&g…

    • 2 replies
    • 873 views
  50. Ok, now this is probably going to be something really simple, but I can't fix it. On http://zebel-textiles.com/ the contact form is not working, it's driving me crazy. I've tried rearranging the submit-form.php file, and making a new one. Seems to be something to do with the jquery. Note: This is the work of another designer, I just did some small design changes for a client and they've asked me to fix this, which I can't seem to do! Any help would be appreciated! Thanks!

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.