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 MorpHDoc,

    Hi guys, So I am a total noob when it comes to javascripts. But I have been given a website to edit and unfortunately, I have no idea how to. I have been googling this for ages. Anyways, the website is based on js and it has got two files: website_hype_generated_script.js and hype.js. What is the best software to edit these? When I opened it in dreamweaver, all I am getting is 100s of coding lines which make no sense to me, not because I don't understand them (I find these rather easy), but it is in such a mess that I cannot follow them logically! So, what is the best software to edit these? Is there a software that gives a live preview of the website, or I need …

  2. Started by sensuous-love,

    hello all ! I have seen some people using float and other people using display : inline to lay out a set of list items horizontally. I want to make navigation links using unordered lists display horizontally but I am very confused about which method should I use Can you guys please tell me which method should I use? Or which method is best suited for a certain situation? their advantages and disadvantages?

  3. Hello I am knew here, I am using Magento and changing the default email templates and I am embedding some images at the footer with this code: <p><a href="https://twitter.com/MadrokUK"><img src="http://www.madrok.co.uk/images/twitter.png" alt="Twitter" width="48" height="48" /></a> <a href="https://www.facebook.com/madrokuk"><img title="Facebook" src="http://www.madrok.co.uk/images/fb.png" alt="Facebook" width="48" height="48" /></a> <a href="http://www.youtube.com/channel/UCFwPI9hOKTV1K1bjjmuq8fA"><img title="Youtube" src="http://www.madrok.co.uk/images/youtube.png" alt="Youtube" width="48" height="48" /></a>&…

    • 13 replies
    • 1.8k views
  4. Started by alisiaro,

    I have the following css code: *{ padding:0; margin:0;} body { height:985px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; margin: 0px; padding: 0px; background-image: url(bk.gif); background-repeat: repeat-x;} #container { width: 607px; height:987px; margin:auto;} #header { width: 607px; height: 985px; background-image: url(Untitled-1.png); position:relative; margin-top:+1px; border:0;} and the following html code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3…

  5. Hi All, I have a strange problem with some CSS in relation to the EllevateZoom jQuery plugin. You can see the problem on this page: http://tlt.voltronik.co.uk/downloads/canary-wharf-d/ When the 'Play' option is selected below the video, the user can watch the video and when the Zoom option is selected, the user can zoom into a still of the video. The problem is, when the play option is selected, the zoom window appears when hovering over the top left of the viewport. When the preview option is selected, the zoom window appears where it should (to the right of the image). I've narrowed down the issue to setting display: none; or display: block; to the di…

  6. http://sinfronteras.edu.mx/p7/fine5.htm responsive website design testing on iPad portrait & landscape orientations with viewport width=device-width portrait version shows perfectly what one would expect for 768px landscape version (1024px) shows a mimic of the narrow portrait version and ignores the media query effectively blowing up the content and disregarding the extra available horizontal space is this really a default iOS behaviour? or an iOS bug? most android tablets act perfectly well for both orientations initial-scale=1.0 has been suggested by some but highly frowned upon by others can we come to an agreement about this for the sake of our common mental hea…

    • 0 replies
    • 1.4k views
  7. Started by escocia1,

    on MacbookPro i use iOS Simulator to test a responsive website menu which uses CSS media queries the 900px horizontal menu has 7 buttons and on iPad the CSS pixel resolution is 1024px x 768px so... in portrait mode (786px) it goes responsive and shows buttons on 2 different lines, which is perfect! however in landscape mode (1024px) it should show all 7 buttons on one single line but still breaks onto 2 lines (screenshot attached) i dont understand this behaviour, if the width is 1024px why is it acting as if it only has 800px? e.g. on my android tablet in landscape mode the menu shows on one single line, which is perfect! (screenshot attached) is this because the simula…

    • 0 replies
    • 1.6k views
  8. Started by Webtastic,

    Hi all My wife's website needs some freshening up and so I'm looking to redo it all in html5 and css3. I'm using the template kindly provided in the link below: http://tutorialzine.com/2010/02/html5-css3-website-template/ The problem is that images are not showing up after I edit the template. Absolute paths work fine but if I change the image to a relative path as shown below, the picture does not show up?! I place picture1.jpg in a folder called img. I use the code below: <img src="img/picture1.jpg"> or <img src="img/picture1.jpg" width="620" height="340" /> I get a blank box when loading. What am I doing wrong? …

  9. Started by ben357,

    Hi! Im having trouble with a website i am designing currently. I have only started to learn HTML / CSS etc in the past couple of months so bear with me! On the contact me page, the data entry fields will run a 1/3rd of the way into the next div (the white space), this only happens on my samsung, kindle fire and older browsers, it works fine on apple iphones, ipads, firefox and iexplorer the later versions....ive searched for an answer but havent been able to find what im looking for currently.... i'll add what i can below..... ive attached 2 photos of the problem, one working in IE9, one not working on the kindle fire. page link - www.ihost-design.com/bensmith/contact…

  10. Started by Mr Ben,

    Hey all, I was just wondering how website analytics tools are made? Google analytics, squarespace analytics etc. I was wondering if it can be done in php/javascript or if other languages are used. Id like to have a go writing my own purely for fun just to learn but not 100% sure where to start.

    • 5 replies
    • 1.4k views
  11. Hi All, Ok, have a strange problem here that i'm hoping someone will be able to shed some light on. The site in question is here: http://tlt.voltronik.co.uk - Please scroll down to the Latest Clip / Most Popular Clips section. There are a few videos that when hovered over, should play. I've set the poster to be a relevant frame of the video so that they won't always use the first frame as it's not always the most appropriate. Here's the code i'm using to do this: var vid = document.getElementsByClassName("video-hover"); [].forEach.call(vid, function (item) { item.addEventListener('mouseover', hoverVideo, false); item.addEventListener('mouseout', hid…

  12. Started by gsingh85,

    I am trying to create some animation/special effects on my website and I want to use JQUERY. The thing is I want to be able to experiment because I don't really know what I want until I play around with it. Is there a way I can create jquery animation using software? For example, if I want to design a certain layout for a fashion company I could experiment using Photoshop, get the layout, colour scheme and so on but I can't see a way of doing that with Jquery.

  13. Started by UGames,

    Good morning, i want to ask if i can make posts in secondary pages like the main page and how i can? Please give it to me with easy steps . Thanks, Nick.

    • 4 replies
    • 868 views
  14. Hi there, This website used to work fine with mobiles/tablets: mylittlescootercrew.com Now, it displays a very plain-looking website on mobiles etc. - unless you scroll right to the bottom and choose to display the full version.. How can I automatically display the responsive design for handheld devices (like it used to)? Is this something in my CSS..? I have tried & tried with no luck in changing it back to how it used to work- and don't know how it changed in the first place.

  15. Good Morning, I want to ask if i can make number pagination in secondary page (no in first page) and how i can make it? Please if you can help me, give it to me with easy steps (newbie) Thanks, Nick.

    • 3 replies
    • 885 views
  16. I'm trying to get the logo to sit on top of the header but with a full opacity, where the background has a 0.4 opacity. I cannot get this right, what ever I seem to do the logo doesn't change. Any ideas? The site can be seen here.

  17. Started by Ryan.P,

    Hi everyone, Great forum with by the looks of it some very helpful members! I'm having a bit of trouble with a CSS menu of mine. I integrated a CSS drop down menu into my template (admittedly I don't have a great deal of knowledge when it comes to coding!) Unfortunately it moves the two links that are aligned to the right down a bit (as you can see from the two images below. It should look like the bottom one, so all on one line. (the picture may be aligned wrong as it was a paint jobby!!) My CSS coding looks like the below #nav { width:100%; background:#02384a url(images/bg_nav.png) repeat-x top; height:35px; } ul#navigation:after { co…

    • 2 replies
    • 885 views
  18. All the different visitor's actions that a web page can respond to are called events. Here are common DOM event: dblclick() The dblclick() method attaches an event handler function to an HTML element. The function is executed when the user double-clicks on the HTML element: <!DOCTYPE html> <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"> </script> <script> $(document).ready(function(){ $("p").dblclick(function(){ $(this).hide(); }); }); </script> </head> <body> <p>If you double-click on me, I will disappear.</p> <p>Click me away!&lt…

  19. Started by jame5payne,

    Been quite a while since I've done any type of coding, to be honest, it's been a while since I've done ANY web stuff so forgive my dumbness! Been scratching my head for a while now, I'm having a little trouble with margin and padding in my navigation bar. I've added green vertical border lines to the links so it's easier to see (image1) but what I'm trying to achieve is something like (image2). Any advice would be great, thanks kindly. Here is my HTML . . . <header> <div id="header-container"> <img src="images/logo.png" id="logo" alt="Logo image" title="Home" /> <nav id="main-nav"> <ul> …

  20. Hello, I am having a bit of trouble getting an accordion menu to work. Basically, I would like a 4 column layout which then becomes an accordion menu when the browser is resized to less than 600px. It ALMOST works, for example if you visit the size when your browser is less than 600px already, then it works. However if you start at desktop size then resize the browser down to below 600px and try and click on the headers, it doesn't work for some reason. Not getting any errors, just not working (content areas don't expand). I've made a quick demo of what I am trying to do, and it should be fairly simple, I just can't get it to work (lack of sleep probably doesn…

    • 2 replies
    • 1.2k views
  21. Started by kaayasinho,

    Hi Guys, I have one problem with z-index, I'm having trouble menu with one submenu Below of submenu i have one slide and when I move the mouse up in the submenu, the submenu is below of the slide, and is impossible the use. i'm use z-index:1; on the slide and z-index:2; on the submenu, improved but dont work well because doesnt work of first, and i need wait the first slide for start work. Every time when change photo slide is done occurs overlap de menu by slide and hide the menu! i have the example http://kaayapezzuti.zz.mu/textes/_pessaude/ the menu who have the problem is "TRATAMENTOS", this in portuguese THANK YOU SO MUCH i dont know …

  22. Hello everyone, I'm relatively new here so my apologies in advance if I commit a faux pas of some sort. I am working on a website and I inherited the code from a friend who doesn't have time for it anymore. I am attempting to have the main page's background image randomize on load/reload. For the life of me I cannot figure out why it won't work and was hoping someone here with fresh eyes could see what I have forgotten. This is the script I have right after the initial body tag on the index.html page. <script type="text/javascript">//<![CDATA[try{(function(a){var b="http://",c="www.robertbillings.net/newsite",d="/imagebank/cover/",e="img.gif",f=ne…

    • 11 replies
    • 1.5k views
  23. Started by Charly,

    Good evening, I am trying to modify social icons. Currently they have no hover/rollover effect. I would like it so that the icon changes color on hover. I am sure I have done this before but I just can't seem to get it in the bag. The URL is http://charlyanderson.co.uk/homewatch/ HTML is:- <div class="social-icons"> <ul> <li class="social_icon"><a href="http://twitter.com/home?status=Reading%20-%20http://your-website-url.com/" title="Twitter" target="_blank"><img src="http://www.charlyanderson.co.uk/homewatch/wp-content/themes/u-design/styles/common-images/twitter-icon.png" alt="twitter" border="0" /></a&…

  24. so i got an html file and i want the <code> tag to be color and highmarks like when you are using sublime text and have various colors? so i was wondering how can i change the colors like that?

  25. Hi, I like to inform you that I have made a website which has 3 pages. I just use one style.css for all pages due to same design except one page named video.html where I use social buttons (FACEBOOK AND Google+ only) The problem is when I gave styles for social buttons in style.css, it didn’t work. But when I gave style in <head> section of video.html page it worked properly. Can you please tell me, why it’s happen? I want to give all styles only using style.css. How it’s possible? Here is the code: No more, I am waiting for your kind response.

  26. Started by moham,

    Hi everyone, i need help with making an object oriented javascript comment form, that can add and remove elements. I also need something else that you can do with OO in javascript?

    • 4 replies
    • 891 views
  27. Hello everyone. I've been using Bootstrap to create my site, which can be seen here: https://dl.dropboxusercontent.com/u/52725754/fightback-responsive-site/contact-us.html It all seems to be working fine, but when checked in IE8 and IE7, for some unknown reason the size of the container drops from 1170px to 940px. I don't know why it does this. I've tried to use hacks to set the container to 1170px in IE8 and IE7, but then the responsive display doesn't work in IE9 and IE10. I also tried to use a conditional statement in the header to target IE8 and IE7, but the styles were been overridden by the bootstrap css. Has anyone else had this problem or know …

    • 7 replies
    • 9.5k views
  28. Started by irn3rd,

    Say you have a selection of squares on screen, all flush against each other, some are bigger, some are smaller then others. When you click on one of the boxes it expands pushing other boxes beneath it. When it closes the boxes slide back into place. Does anyone know of a script or a tutorial that is similar to this? Many thanks Ben

  29. Started by TheUninvited,

    what is the is the purpose for using parseInt and parseFloat? and what does actually the return function does? for example on this code here: var foo = doSomething(5 , 6); var bar = doSomething(1, 5); function doSomething(paramOne, paramTwo) { paramOne = paramOne + 5; paramOne = paramOne + 1; paramOne = paramOne -1; return paramOne + paramTwo; } alert(foo); alert(bar);

  30. Started by sensuous-love,

    Hiieeee dear friends. I am new to web designing and learning how to use html divs and css layout techniques to layout webpages.I am having a problem about outer wrapper divs that is used by many web designers. What I want to do is that make a layout with a top header, a banner, main content area and then a footer. I want to fit all the contents of these sections that I have mentioned to be contained by a outer wrapper which is 960 px wide. But at the same time I want to make the background of the header and the footer take the full width of the browser. The problem is when I put the header and footer inside the 960px wide wrapper I am not able to make the header and foote…

  31. Started by thoroprod,

    <div class="footer"> <a class="left" href="http://www.thoroprod.com"><img src="images/thoro.png" width="25"> <span>THORO PRODUCTIONS, INC.</span> © 2013 THORO PRODUCTIONS™ ALL RIGHTS RESERVED. </a> <a href=""><img src="images/logo2.png" width="25"></a> <a href="http://www.youtube.com/thoroprod1"><img src="images/youtube.png" width="25"></a> <a href="http://www.twitter.com/rexmakesbeats"><img src="images/twitter.png" width="25"></a> <a href="http://www.facebook.com/thoroprod"><img src="images/facebook.png" width="25"></a> </div> /* Footer Sty…

    • 8 replies
    • 1.7k views
  32. How to play Sound on click or Mouseover My goal is to have the sound play when the mouse hovers over a certain element, like a menu item. I have tried many changes through my HTML and CSS, but I can't find the solution, so I'm hoping that someone with better eyes and more knowledge of web-design can give me a solution. Take a look at www.xeestudios.com . Just need that if anyone places mouse over the menu item it should play sound. That's it. Thanks in Advance.

    • 1 reply
    • 8.4k views
  33. Hello all I have run into an issue... Have not had to deal with this before, but my slideshows are currently overriding my html template. http://zwxfn.rkyhf.servertrust.com/category-s/1514.htm Here you can see the problem. Anyone with an answer will be super appreciated !

  34. Started by coer,

    I have the code in the attached zip fle. But the footer at the bottom stop stick of bottom if you expand the navigator at maximum screen monitor in some browsers. What I need to modify to make it work properly? I include the zip file with the files needed. Of course the case in fixing is not destroy or affect the other elements all other elements are in place and just the problem is the footer. I include a picture too of what happen when I expand at maximum screen size my navigator. Thank you experts.zip

    • 5 replies
    • 891 views
  35. Started by quakebo,

    I Hope sombody can help me I have a website www.slotcarlinks.co.uk which hass a form on it and when you click submit it is ment to open up your email program so the info can then be sent from that but now it is not working. You click send and nothing happens. I cannot find out why it is not working anymore. my code is <form action="mailto:markiem@ntlworld.com" method="post" enctype="text/plain"> <p align="center" class="style11"> Website Name: <input type="text" name="Website Name" /> </p> <p align="center"><strong>Website address: <input type="text" name="Website address" /> </strong></p>…

    • 5 replies
    • 890 views
  36. Started by Charly,

    Good evening, I have a website where the dropdown section of the menu drops behind the top level text (sorry if that doesn't make sense). I have tried changing the z-index but can't suss it. I need a fresh pair of eyes to help me out :-) Thanks in advance folks xx

  37. Started by BeeMuzza,

    <style><!-- #row { text-align: center; } #row .box{ display: inline-block; width: 271px; margin: 10px 10px 13px 13px; height: 177px; background: #ff8c00; } #row .box:hover img { opacity: 0.74; } --></style> <div id="row"> <div class="box"><a><img src="http://puu.sh/5LSQD.png" width="271" height="177" /></a></div> <div class="box"><a><img src="http://puu.sh/5LSQD.png" width="271" height="177" /></a></div> <div class="box"><a><img src="http://puu.sh/5LSQD.png" width="271" height="177" /></a></div> </div> <div id="row"> <div class="box"><a&g…

  38. Hello everybody, Is is about the homepage of the website I am creating. www.stepbystepsalsa.co.uk On the homepage I add an audio file which is loaded right when the site is loaded. I have noticed that there is a problem with the plug-in, no matter whether you use firefox, or chrome. The plug-in crashes or stops but if you just wait then the site is loaded. I assume the problem lies on the the audio-file I added but there must be a way to solve this problem. It surely does not depend on the audio format. In fact, I am using a standard mp3 format. In addition, if you go to www.stepbystepsalsa.co.uk/instruments.html, you will find there more than an audio fi…

  39. Started by Charly,

    Good evening, I am making the finishing tweaks to my responsive website (password protected so not visable atm). I am designing my pages down to at least 320px but I am finding this is not working when I look on a iPhone 4. Does anyone know if I am missing something as I have read that the resolution for an iPhone is 372px. Any advice would be appreciated :-)

    • 3 replies
    • 880 views
  40. Started by Charly,

    Ok so I have a featured client section in my website. They are greyed out logos that turn to colour images on hover. I am not sure if I have done it the best way.... but... I applied a background to a div rather than put an image within a div (hope that makes sense). This works great but it is not responsive at all, the image just cuts off as the div gets smaller. Could any one help me solve this issue? The html is like this:- <div id="development-bg"> <div id="development-wrap" class="row"> <div id="development" class="twelvecol"> <div id="logo-wrap" class="twelvecol"> <div class="logo-client1 threecol"…

    • 7 replies
    • 886 views
  41. Hey guys, so I have this problem with my hover images. I want to get rid of the initial flicker as they load. But since I got a transition on them, I cannot use sprites. I also tried placing the images in html (and hiding them) but that doesn't work either. I didn't even expect this to happen, because I use an image proloading script. Also, when I test the website in IE and Firefox, the transition (on logo and the arrow at the bottom) doesn't work. Another problem is when I put 'margin: auto' on the logo, in Firefox it ignores the margin-top: 40px so the logo is right at the top of the site. But when I don't include margin: auto, the logo isn't centered in IE. I don't k…

  42. Started by neil0wen,

    Hi, I've just been on http://developers.google.com/speed/pagespeed/insights/ and it says that I could optimse some images. However I have no idea what these images are and cannot see them in my code anywhere. Does anyone know what this could be? https://pbs.twimg.com/profile_images/378800000679432315/657e699e86ace9cd0551efe750333418_normal.jpeg

    • 3 replies
    • 889 views
  43. Hey guys! I've been working on the front end of a site for a client and I'm getting a really weird bug when some of the pages are loaded on Apple machines - the bug is not present on Windows based machines. The bug is apparent on some of the modules on the pages that contain them such as: URL: http://wasabiadmin.se/global-business-labs-front-end/archive-find-us/ Where the read more button is incorrectly placed over the text, however when the page is refreshed it looks normal. I am using an equal heights script I created to ensure the modules remain the same height as one another if the content in them differs. - Perhaps it is something to do with that? …

  44. Started by MOTIF.tv,

    So i've exported some svgs and I have created individual paths with classes inside of each svg in an attempt to animate each element with css. I have applied an animation to the svg on the whole and it works ! Now I have a problem. Although my paths each carry a class and I use the exact same method to try and animate each of these items they just won't budge! I know that this is possible because of this jsfiddle. http://jsfiddle.net/jamesengage/4btQ2/1/ I just cannot get it to work on mine and I'm wondering if there is anything stupid that I may be doing wrong. I look forward to your response. Luke

    • 2 replies
    • 1.2k views
  45. Started by finishedfirst,

    Hi, a couple weeks back i asked a question on how to re-size an image in a type of "parallax container http://www.webdesignerforum.co.uk/topic/72755-website-resizing-help/. Unbeknownst to me i was causing another issue for myself, which aesthetically ruining the site in a mobile setting. Now my question is, how do i re-size an image for the desktop and then change it back to the the original mobile size constraints when opened in a mobile setting. Here is the my newly adjusted parallax code... <!--start parallax 1--> <div id="parallax-1" class="parallax fixed" style="background-image: url(images/parallax-1.jpg); background-size: 100%;"> …

  46. Started by Fuzzy Logic,

    Can anyone recommend a really flexible parallax JQuery plugin? I want one that is able to emulate the movements that can be created by adobe edge (reactive to scrolling if that's possible), I dont see that any of these are flexible enough for what I want to do, unless I have missed something http://potentpages.com/parallax-tutorials/ I want this type of movement but I also want it to be properly responsive, although I have found a way for edge to be somewhat responsive its still not ideal Anything I have missed? thanks.

  47. Hello all, I have a problem with a jQuery Flexslider I have made which slides images and a corresponding caption. The site's here:- It's on the homepage. www.conformsafety.co.uk As you can see, it seems all the captions are loading before jQuery kicks in and starts sliding them appropriately. The slider works fine apart from the initial load. Any help would be much appreciated. Thank you for your time, WF

    • 0 replies
    • 1.6k views
  48. Hello worthy knowledgeable ones at Web Design Forum, My first post is a 'PLEASE HELP' post! I'm having difficulty positioning 2 divs (one being a 'main-content' div & the other an HTML5 element 'aside') BOTH these elements are nested in a div called 'page-wrap'. I want to the main content div to float right and the aside to float left. BUT the CSS float declaration is not working for me and I am currently stumped. Any pointers on this one would be much appreciated, IT HAS TO BE something simple - I just cannot see it. Thank you V. much, M Hopkins index.html style.css

  49. Started by samd102,

    Hi, I am having some trouble embedding youtube videos. I of course know about the simple embed code within youtube itself but I am trying to replicate the videos (not coded by me) that are present here: http://jamesgoodwin.co.uk/new-site/listen.html and add new clips (along the bottom row) The code is: <object width="300" height="300" style="float: left;padding: 5px;"> <param name="movie" value="http://www.youtube.com/watch?v=5bwdxPw3qNI&hl=en&fs=1&rel=0&color1=0x2b405b&color2=0x6b8ab6&border=1" /> <param name="allowFullScreen" value="true" /> <param name="allowscriptaccess" value="…

  50. Started by Hezza1506,

    I have just noticed that there seems to be something 'hiding' the links on the lower part of all pages on my website, so that they cannot be clicked. If I scroll down the page, the links suddenly become clickable once they get above a certain distance up the page, as if they were previously covered by something that made them inactive. I have looked through my html and css, but I can't find the problem, so I'm hoping that someone with better eyes and more knowledge of web-design can spot the error. Take a look at www.cagaran.co.uk. The links are underlined, and when you scroll over them, the background colour changes, and the link can be clicked. You can see th…

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.