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. Hi all, hoping someone can help me out and point me in the right direction please, it seems I have hit a wall. Apologies in advance for the fairly long post and if i haven't made sense or you need more info please let me know. My issues . . . 1 & 2. If you look at the upload (img1) you will see a gap between the header and main elements & main and section elements? 3. My section element is being shown underneath the footer? Could this be anything to do with floats? If so then I was under the impression that when you float an element you need to clear that float which is done by applying a 'clear fix' rule to it's parent element? (Please correct me if I'm wro…

  2. Started by Vulcan,

    Anyone able to explain how to use percentages and em's? I'm learning to create a responsive website and I have seen loads of sites using them. How do I convert pixel into them etc? I'm wanting to create a website with a max width of 980px with a left sidebar of 640px and right sidebar of 310. How do I work out what the best font sizes work with each device?

  3. Started by mccloud,

    So I have this problem.. I was working on a drop down menu but when I hover over it moves all the content down. I suppose it's an issue with positioning, but I cannot locate the issue, so I'd need your help. Also the alignment of the sub-menu list items is off. Here's the code: http://codepen.io/anon/pen/uqFem Thanks for help

  4. Started by Timothy Clark,

    Hi. I want my circular numbered buttons to do the same effect as my big square buttons in terms of fading in and out on rollover, but I'm having problems. Can someone please help me? http://www.timothy-clark.com/work.php

  5. Started by gfxpixeldesigns,

    Hi, just wondering if anyone has any experience designing eBay stores. Ive had an inquiry about doing one, cant decide whether to take it on or not. I understand how the eBay listing templates work since its just html but the eBay stores i havent got a clue, ive never even seen the backend of an eBay store so im not sure how you'd go about customising one. What steps are involved anyone care to share ? Im guessing ill need to access my clients shop, so will i need their password or is there another way ?

  6. Hello all. I am having a problem with my anchor tags on a site I am working on. They work fine when you load the page up first time and link to the relevant sections correctly. The problem happens once you click on the Blog link. Once you click on the Blog link in the header and click on a post, the sticky nav is not working correctly. If you then click on another link in the header to take you back to that section, it does not jump to the top of the section like it does when first load the page. The page jumps to a point which is below the top of the section. You can view the site here. I'm not sure why the anchor tag is behaving like this because onc…

    • 5 replies
    • 4.8k views
  7. Started by hrolphy,

    Hi all! This site seems like a nice place! I need help uploading html files to a domain (Forgive me for the wording I use to describe my problem, I don't know much about it...). My brother made some html files (in dreamweaver, indesign?) Here's a sample: https://dl.dropboxusercontent.com/u/12461223/htmls%20selection.zip I have the associated pictures also! Is it right I have to get a domain, upload the html files, then upload the pics via a ftp program.. Like that? Quick Qs: How do I connect them together so that if you click on "film" you're directed to the film html? Are the free Biz.nf and Free Hosting EU any good? A quick how-to will get me going in the right dir…

  8. Started by jalaladdin,

    how to change captcha on my contact form http://aboonajmi.ir/...-02-22-10-35-26 i want to this like sit below: http://www.webdesign...ection=register http://www.webdesign...o.uk/contactus/ this captcha look like puzzle

  9. Newbie problem here. I have designed a page with a bunch of card like elements. But I want their baselines be at the same level regardless of content. Here is a pic: I want the news card and the events card to be on the same level in the bottom. The events card will not change height or width but the news card will change height when the length of the headlines or excerpt changes. Solution? Thanks.

    • 2 replies
    • 4.1k views
  10. HI all, looking for a bit of general best-practice advice for implementing the following: 2-column layout. In the left is a list of widgets in a data table. In the right hand column is a preview div. What is the best way for me to be able to click an item in the table on the left column, and have a preview of that widget's details (preview.php) shown in the preview div without a page refresh? I have thought about using JQuery, but am unsure what functions to use. Previously I would have written the table in such a way that there was a link at the end of each row to the 'preview.php?widgetID=1' page. Is there a way around this in JQuery I am not yet aware of? …

  11. Started by garyl,

    Hi all, First off i will apologise if my code is a bit messed up but its my first shot at complex (in my view) javascript on my own. i am having problems with the result divs picking up the slider values properly. It almost works except when you change direction on the slider the first step counts in the wrong direction. I'm sorry if i am not being very clear i don't really know how else to explain it. Here is the fiddle: http://jsfiddle.net/swinky/bYN8g/ and fullscreen : http://jsfiddle.net/swinky/bYN8g/embedded/result/ Hope you can help, Thanks, Gaz

    • 2 replies
    • 1.1k views
  12. Started by nguyenhce,

    Hi guys, I am coding my website and have a little problem about the CSS. You can check this link below: http://jsfiddle.net/nguyenhce/w862m/3/ I want the content inside the tags dt & dl work on the picture and they will come from right & left of the pic when the user move the cursor on the pic but I didnt know why the CSS do not work and I cant see my problem. Please check it on the link above and fix it for me if you have free time ( and please tell me what I am wrong? ) Thank you so much

  13. Started by ramo55,

    Hi, So I'v started the long journey ahead of learning how to develop websites, I decided to start with the very basics, so decided to learn html and css. All has been well, untill I got to the css bit, I just simply dont understand it! I have managed to understand html, and most things about it, to allow me to make a simple webpage, but if I wanted to convert a psd to a html webpage I would not be able to do so, because CSS simply doesnt make sense to me. I tried looking at tutorials and so on for CSS but I just dont get it, Like for example, after I write up the html for my webpage, how do I position the elements on the page? for example the logo of my webpa…

  14. Hi Gang, This has me stumped. In my code I have the following jQuery; function closeLight() { $(".light-form").css("display","none"); }; $(document).ready(function(){ $("#file-container").load('/inc/file.php'); $(".logclose").click(function(){ closeLight(); }); }); and HTML <div id="file-container" class="light-form"></div> In the jquery loaded file I have a span. <span class="logclose">Close</span> If I don't use jQuery to load the lightbox then this close works fine - however using the jQuery Load method this span does not close the div anymore. Even stranger is the jquery form validation still works fine on the form…

  15. Started by @Alex@,

    Hi there, my name is Alex Arthur and I've been struggling to develop my website for quite some time. The main issue I've been facing is making it appear consistent across browsers. It appears as designed in Google Chrome but not in FireFox or IE (even the newer versions). Basically the issue appears to be that since tables have been used for design some images are not stretching to fill the cell height in FireFox or IE but are in Chrome. Here's a link to how it is supposed to look in Chrome : https://www.dropbox.com/s/phnpctvielzycrj/Screenshot%202014-02-23%2020.27.54.png While this is what it looks like in FireFox : https://www.dropbox.com/s/fp7p5bz1msngwje…

    • 2 replies
    • 875 views
  16. Hi, So I had a simple download script that allowed a visitor to download a sample video when clicking a link. The link was in this format: https://www.domain.com/videos/video1/download.php?https://www.domain.com/files/videos/video1.mp4 And here's the code from the download script: <?php $file = $_GET['file']; header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename='.basename($file)); header('Content-Transfer-Encoding: binary'); header('Expires: 0'); header('Cache-Control: public'); // For IE header('Pragma: public'); ob_clean(); flush(); readfile($file); exit; ?> …

  17. Hi guys, I coding my website and I met problem with font compatibility on browers, I use Georgia font in my CSS but only Chrome display it, FF and IE8 do not work. Do you know how to make FF and IE work? Thank you This is my HTML Navigation: <body> <div id="container"> <div class="avatar"> <figure class="my-pic"> <img src="img/nguyen-2.png" alt="Nguyen Tran"/> </figure> </div><!--End .avatar--> <nav> <ul> <li id="all">ALL</li> <li id="web">WEB</li> <li id="mobile">MOBILE APP</li> <li id="testimonial">TESTIMONIAL</li> <li id…

  18. Hi, I have a problem... Im new to coding and creating a website...I have managed to get a bit of hide/show jquery code working to shift between tabs that i want to style up. But since the jquery works, nothing is happening when changing anything to with #tabs Here is my html: <html> <head> <title>The Rock & Roll Project: </title> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <link rel="stylesheet" type="text/css" href="rnrARTISTS.css" /> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> &lt…

    • 2 replies
    • 1.1k views
  19. http://www.creationbytz.net On the front page the biggest slideshow links to serveral other pages. This slideshow is loaded in an iframe and obviously I want to pages to not load in the iframe but in the main window. I added _top to every single link, but somehow the javascript of the slideshow seems to force them into _self. I didn't code the slideshow myself and I know basicly nothing of javascript. Can anyone help me to fix this? direct link to the slideshow: http://www.creationb...e_slides01.html

    • 7 replies
    • 2.3k views
  20. Those of us who have attempted to change the default styling of select elements have invariably run into problems, It's not so easy to display a custom arrow and background image. And when we do get it working we go and check it out in another browser and it no longer works. I've been playing around with different ideas and this is what I've come up with, and I believe it works on all browsers and Mac (although I have yet to test on a Mac). Here is a fiddle demonstrating how it could be used as part of a search field input if you wanted to search by category. To the user it feels like a part of the text box. http://jsfiddle.net/rbrtsmith/KcA5U/ The styling of t…

  21. Started by jaythomas,

    I apologise if this is the *dumbest* question ever, but does one need to know Javascript before learning JQuery? Or does it merely assist? Can One learn JQuery without knowing any Javascript? Cheers Jay

  22. Started by Lee_K,

    Hello, could someone tell me where i'm going wrong with the following code? <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> <script src="script/speechbubbles.js"></script> <script src="script/speechbubbles2.js"></script> <script type="text/javascript"> jQuery(function($){ //on document.ready //Apply tooltip to links with class="addspeech", plus look inside 'speechdata.txt' for the tooltip markups $('a.addspeech').speechbubble({url:'speechdata.txt'}); $('a.addspeech2').speechbubble2({url:'speechdata.txt'}) }) </script> Is th…

    • 10 replies
    • 2k views
  23. Started by nguyenhce,

    Hi guys, I am still learning HTML 5 & CSS 3, I saw many TUT wrote about SASS and they said it'll help you alot in front-end coding. I dont know what is SASS and does a designer like me should use it for front-end coding? Thank you

  24. Note one thing to notice, I'm viewing on an ipad, there are **definitely differences** in behaviour if you viewing it on anything else. The effect is better on ipad and really smooth, and the header menu does not stay at the top. It's the ipad behaviour I'm trying to figure out. Either way quite clearly on nautil.us you start to scroll down, the "blind" page lifts up revealing a static non moving website behind. If you keep scrolling up/down within one page height, the behaviour is of a blind! You can make the blind go UP and DOWN -- ABOVE the static site behind. If you scroll past a page, the blind when lifted to reveal the static site behind, the the blind…

  25. Started by Nillervision,

    I don't understand why the mobile first approach is so widely recommended. If I code a web page and have the “big-screen CSS” depend on conditions in a media query it will not load in IE8 and below. Still these browsers will load the mobile version. Assuming almost all IE8 users are on a desktop/laptop it would make more sense to do it the other way around. (have the mobile/tablet CSS in media queries). That way the correct CSS would be served to users with old browsers. Are we just ignoring this or am I missing something?

  26. Hi everyone, I am currently working on a small brochure site and Im having a few problems with buttons. The white button on the Orange Panel on most pages shows the "Get in touch " text 4 or 5px lower than it should be, if viewed in the latest version of firefox it looks perfect. I cant figure out how to fix this problem, same problem for all other buttons on the website. I created a seperate style sheet for IE9 and below and it works as it should. But how should it be ammended for IE 10 and upwards. <Section> html code for the button on orange panel. Css style beneath this for white button. <section class="container cta-banner pad-25"> …

  27. Started by BrowserBugs,

    Hi Gang. I'm a bit stumped on the best semantic approach for creating Key > Value pairs. The data in question is hypothetically a list of results where each has common factors. For this exercise here is some ways I came up with based on lots of study into different approaches including ul, dl, b, class and other wacky ways. <!-- Option 1 --> <article> <h1>Product One</h1> <p>Description</p> <ul> <li><b>Colour</b> Red</li> <li><b>Price</b> £19.99</li> <li><b>Smell</b> Bad</li> </ul> </article> <!-- Option 2 --> <article> &l…

  28. Started by webDesignerJon,

    I've been turning my attention to responsive design a lot lately and studying the trend of the hamburger menu. I'm trying to develop one at the moment, which seems to render just fine on the desktop http://www.jonniegrieve.co.uk/tmp/ham/ham1.html but turn it to a mobile device or a mobile emulator something strange happens. In all cases the menu works exactly as it should but when you scroll the right, it's like the background colour runs out. In actual fact the need to scroll left/right is something I want to get rid of anyway but I'd like to get my head round why that occurs if possible. <!doctype html> <html> <head> <title>…

  29. Hello, I am currently in the process of making a mobile we app (A website that has the look, and feel, of an app). They 'app' has links to downloads which can be either PDF or ePub (E-Book). What I need is a small slider at the bottom of the page which when in the left position, clicking on a download link will download ePub's and when the slider is in the right position, clicking on a download link will download PDF's. I have tried looking on the web for help with this, but to no avail. My, current, weak point is with Javascript and I believe that's the answer to this query. Any help will be very much appreciated. - MjA -

  30. Started by SimpleSucces,

    Hey guys, I'm working on a project involving parralax. I have a page (or scene if you will) which has multiple Images in a list. My problem is that on a screen with a resolution of 1920x1080 pixels a part of the page turns black. I have been trying to fix this issue by using PNG24 which apparently is best for having resized images with transparency, but alas, it didn't work for me. In addition, the logo also disappears when using the parralax when using the parralax. This freak like issue (it is to me anyways) is only happening on Chrome. Firefox, Safari and the other major browsers perform fine with these images. Any help would be very much appreciated.…

  31. I’ve recently released 5 videos covering how to use JavaScript on your websites. The videos have a very practical approach with a lot of examples and useful functionality. The tutorials are for beginner to intermediate. We start up by learning simple onclick functionality and end up mastering AJAX requests. Feel free to post comments and questions. Here is a Youtube playlist: Enjoy. http://www.youtube.com/user/NillerVision

  32. I am trying to get the height of the last (latest) newly appended element, however the alert returns only the height of the first one - maybe because the element doesn't exists in the DOM? Could you help me figure out that? $(".my-link").click(function(e){ e.preventDefault(); alert(newelement).height(); newelement = ('<div class="new-element"></div>'); $(".my-div") .append($(newelement).load("external url #div", function(){ //doing things here })) return false; }); Edit: I actually tried alert(newelement).last().height(); but still the same.

    • 2 replies
    • 856 views
  33. Started by Zach Townsend,

    Hi everyone, I'm building a video feature which is a slider that has a video autoplaying on each slide. There are about 7 slides so I'm concerned it may not work very efficiently when the user first loads the page. Does anyone know of any way of caching the videos before allowing the user to start scrolling through the feature? I've thought of perhaps playing each video at an increased rate before hiding a pre-loader, but I'm worried this might freeze up the users computer. Anyone have any other solutions? Cheers, Zach

    • 3 replies
    • 878 views
  34. Dear experts, I've finally change the site to a broad screen one vs the old one. The problem here is that when I open the site in a ipad the right column just dropped. I've heard so much about fluid website that can fit in any screen. Thus, I hope someone can tell me what went wrong with my css or how to ammend my css so that at least the right column won't drop. Here's the test site : http://test.hi5tutors.com/ Thank you for your time.

  35. Guest
    Started by Guest,

    Hi, I have a page which has three fields and one submit button on it I need to add some code to send the details to an email address. The current code is <form action="" method="post"> <input type="hidden" name="recipient" value="email address goess here"> <input type="hidden" name="subject" value="Subscription"> <input type="hidden" name="redirect" value=""> <input name="firstname" type="text" class="form" id="firstname" value="First Name"> <input name="lastname" type="text" class="form" id="lastname" value="Last Name"> <input name="email" type="text" class="form" id="email" …

  36. Started by welshhuw,

    Hi, I have built a basic WordPress theme which has a primary and secondary navigation. Dev site here: http://website-test-lab.com/sites/weaver/ If you narrow your screen until the mobile menu's kick in, and click on either menu, they both display the primary navigation. How can I alter this so that the menu that is clicked shows up? Here is my jQuery: ;(function($) { // DOM ready $(function() { // Append the mobile icon nav $('.nav').append($('<div class="nav-mobile"></div>')); // Add a <span> to every .nav-item that has a <ul> inside $('.nav ul li').has('ul').prepend('<span class="nav-click"><i class="nav-ar…

  37. Started by predatorx,

    Hello. I am trying to use the caroufredsel query plugin on a wordpress site that I am creating. I have the carousel working, but it does not display all of the blog posts. Im using the Wordpress test-data.xml file which gives you lots of posts to check your site with. Currently I have 28 posts published using this file, but only around 6 are being shown in the carousel. I don't know how to get the carousel to display all of the posts. These are the options that I have in the JS: if( $('.blog-carousel').length ) { $('.blog-carousel').each(function(){ $(this).carouFredSel({ responsive:true, auto:false, width:'100%', prev:$(this).paren…

    • 6 replies
    • 1.3k views
  38. Started by Charly,

    I admit it, I totally suck at menus. They confuse me something chronic.... I am trying to edit an existing theme menu, but I am finding it hard. The child menu items don't sit directly underneath each other (they are slightly to the right). The third layer in the menu is way out too - way too far the right. I am looking in the code and cannot see any crazy margins and I have been messing around with this for hours now. Please could someone help me out... The testing url is http://charlyanderson.co.uk/tester/ and it is the top navigation in purple that I am working on. CSS that I have is:- /** Menu Css **/ a#mobile_nav { display: none; } #na…

    • 2 replies
    • 886 views
  39. Hello, Building this website: http://www.brighterwebdesign.co.uk At the footer there's a form called ''Let's Talk''. I can't align the ''SEND'' button with the message form... I tried "vertical-align:" and although it works on Firefox, it doesn't on Chrome and IExplorer, could someone please help? Thanks Internet Explorer/Chrome view Firefox (ideal view)

  40. Started by daihlo,

    Im using an iframe on a Magento site to show a wordpress portfolio. Don't want to use the normal magento/WP integration as that prevents me using the WP template and some features. Have got it all working, also not showing the scroll bar yet still allowing to scroll, looks good. Only thing I need to find to work is that when I click on a portfolio link in the WP iframe, I need it to open in a new window, not still within the iframe... any suggestions? the code Im using is below. <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js?ver=1.3.2'></script> <script type='text/javascript'> $(fun…

    • 0 replies
    • 1.4k views
  41. Started by welshhuw,

    Hello I wondered if someone could help me resolve an issue on this site: http://website-test-lab.com/sites/tcf/locals/ Each page has custom colours. Aqua for the 'locals' page as you can see. By default, pink is selected if the logged in user doesn't choose a colour. If you hover over About, then hover over the sub-menu, the triangle underneath About turns to the default pink colour. I can't figure out how to make this either not show up or have it the aqua colour (same as the rest of the menu). This only happens in IE10 and IE9. Your help would be appreciated. Thanks

  42. Started by dpuk44,

    Hi, I am having issues with some z-indexing. The remaining content I have sat over the footer but it is not inheriting its white background. Why is this? http://nurdit.com/rachelanderson/?page_id=2

    • 7 replies
    • 1.5k views
  43. Started by mccloud,

    Hey, I think the title says it all... I have a site that has full-width bg and content is 1100px wide. The only way I can think of on how to code this is like this: <div style='width: 1100px;'> **Content** </div> **Background image** <div style='width: 1100px;'> **Some more content** </div> But is there a more intelligent way, so that I don't have to break the container div? Thanks

    • 0 replies
    • 979 views
  44. I'm kind of new to website building; my site uses an horizontal javascript menu, and of course, internet explorer with javascript turned off makes my site totally unusable. I've tried to make my own pure CSS menu, but it seems it's styled differently in each browser. And then there's the accessibility to crawling motors from search engines to consider. So, is there a short way to this ? Most free advertised pure CSS menus need to be purchased. Anyone knows a good (really )free version ? Sorry if i'm being cheap...

  45. Started by notxalckram,

    Hi, I already developed have the form which is working fine, and I have one dropdown menu, but what I want to do next is when one option is selected from the dropdown menu, another dropdown menu will appear below which is connected to the option selected from the first dropdown. For example, if the user selects 'search engine' another dropdown menu will appear below with options to choose which search engine. I've read that using JS 'onselect' might do the trick. Anyone have any tutorials or examples I can look at? Thanks.

    • 3 replies
    • 908 views
  46. Started by Vulcan,

    Hi there, I have to things that I cant work out how to make in CSS. First thing is under a menu how to I make each menu have a wavy line under (see wave.png image)? The other is creating two white boxes behind one another (see box.png image)?

  47. Started by CasperGemini,

    If you were to look for form tutorial websites that gives you insanely cool tricks on form development and manipulation, where is the best sites ?

  48. Started by Charly,

    Good evening, I am working on a website where the button font on the cart just isn't working and I can't see why. Can anyone help? Website is http://www.babymoos.com/ the cart is in the navigation bar and should match everything else.

    • 6 replies
    • 1.3k views
  49. Started by lister,

    Hi everyone, I have been checking out some cool sites lately and came across Mike Kus website here http://mikekus.com. I love the way the images are full screen and fade in and out. Also, the portfolio has a nice scaleable feature. I also, noticed he's using something called mixture, but Im not really sure what this does, I'm trying to find out how its been built, i.e. what JS scripts etc, how the portfolio section has been scaled, does anyone know what tricks he's using? Thanks lister

    • 4 replies
    • 905 views
  50. Started by Mr Ben,

    Hey all, On multiple occasions I have wanted to create an array that contains many string values. On this occasion, I want to create an array with lots of peoples names so that I can pull them out randomly. The amount that Im talking about would take such a long time to create manually and I was just wondering if there was a way to create some kind of automation that could build an array for me? Im not talking about pulling data out of a database. Its really a question for any language and I have wondered if it could be done?

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.