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. Hello, I'm hoping someone can advise. Currently on the bottom-right menu on my website, when you click the Youtube or Mixcloud links - the original menu button moves up too. Is it possible to keep the original button at the bottom? http://www.jameswinfield.co.uk/v2.html# If you click the bottom-right menu and then click one of the two options for Youtube, or Mixcloud, the whole menu system shifts up the page as such: Any ideas how to keep the menu at the bottom please? Thanks James

  2. I've got a site with a menu linking to other pages within the site & some menu categories are drop-down i.e. they have a sub menu (i'm not sure of the correct terminology here). a couple of the pages contain collections of images & I want the sub menu items to link to specific images, instead of just to the top of the page. I've put this code in the menu <li><a href="photoshop.html/#vanishing_point">Vanishing Point</a></li> & tried id="vanishing_point" in various parts of the html for the image - in the opening <div class=".....> tag, in the <a href="......> (the images are theumbnails linking to full size versio…

  3. Started by rhubarblover,

    My portfolio website is mostly just one page with multiple, well, sections - so, about me, portfolio, contact, etc. So I'm tempted to wrap these in <section>, but after reading a bit about it I'm very confused as to whether this is an appropriate use. It seems the alternative would be 'article', but that doesn't sound right... what do others think?

    • 4 replies
    • 1.2k views
  4. Started by Charly,

    Good morning, I am hoping to borrow someone eyes for a minute :-) I am working on a site at the moment and I can see a very subtle shadow at the very bottom of the page. It is insanely annoying that I cannot find the source... can anyone see what I am missing. Link is here - would be very grateful...

    • 7 replies
    • 1.2k views
  5. Started by rhubarblover,

    I'm having a problem with a h1 element. Here is how it looks normally (highlighted with Firefox's inspector tool): And here it is breaking onto a new line: The problem is the extra space all around the second. Any ideas? It's not padding or a margin. Doesn't happen if the text stays on one line. HTML: <div class="title"> <h1>This is a test</h1> </div> <p>abcdefghi</p> <div class="title"> <h1>Testing some more and more and lorem ipsum dolor sit amet</h1> </div> CSS: .title h1 { font-size:5rem; display:inline-block; position:relative; max-width:70%; word-wrap:break-word; box…

    • 8 replies
    • 1.4k views
  6. Started by Alluziion,

    So a few times I've run into this problem and I simply want to know why this happens... Why won't boxes 4 and 6 position themselves under boxes 1 and 3 respectively with just the margin separating them? It appears as empty space but it's as though the baseline of the largest box (box 2) sets the vertical precedence for the other boxes. Of course, changing the vertical align of boxes 1 and 3 to bottom positions them at the base of the largest box but I can't seem to lift the lower boxes up. Is there a way to do this? Or is this just the way the DOM works? and if so - why? Here's a Fiddle if anyone wants to have a play around... https://jsfiddle.net/3wpc6ag…

    • 8 replies
    • 1.7k views
  7. Started by teodora,

    I have been reading about custom html elements, but haven't actually used any so far. Today I saw a site using them and their html was very descriptive and nice to read. Found this article and thought it was a good read - http://www.broken-links.com/2015/01/27/best-practice-creating-custom-elements/ What are your thoughts - do you use custom tags?

  8. Started by Nikan,

    Hi i have this menu code https://jsfiddle.net/sysgn9pe/ i want to make it like when i click the button it open , not when you move mouse on it how can i do that . thanks

  9. Hi, Throughout my time as a Web developer, I have always used CMS, however I would like to have a little more scope. For this reason, I would like to learn HTML, CSS, PHP, etc. What is the easiest way to go abouts doing so? Do you recommend any websites, programmes, YouTube tutorials, etc. If these are free, that would be even better. Thanks.

    • 6 replies
    • 1.9k views
  10. Started by NullDrone,

    <!DOCTYPE html> <html> <head> <meta charset= "UTF8" /> <link href="css/960.css" rel="stylesheet" /> <link href="css/reset.css" rel="stylesheet" /> <link href="css/text.css" rel="stylesheet" /> <link href="css/style.css" rel="stylesheet" /> </head> <body> <header> <div class="container_12"> <div class="grid_12"> <!--Logo--> <div id="logo" class="grid_2 suffix_10"> <img src="images/header/png/namgrasslogo.png" alt="namgrass" id="namgrass" /> <img src="images/header/png/logoshadow.png" id="logoshadow"/> <p id="mfl">Made for living</p> </div> <!-…

  11. Hi, I have a html5 page using <video> tag and running .webm files. It all works quite smoothly. However, I would like to not run the video on mobile devices and instead replace it with the jpeg poster. This is the setup now: <video id="video" preload="auto" poster="video1.jpg" autoplay muted loop> <source src="video1.webm" type="video/webm" /> <source src="video1.ogv" type="video/ogv" /> <source src="video1.mp4" type="video/mp4" /> Your browser does not support the video tag. I suggest you upgrade your browser. </video> Any ideas? Thanks!

    • 3 replies
    • 1.7k views
  12. Hi I believe my webpage is written ok to make sure that when the browser window height changes the images size changes, however when adjusting the height only of the browser window the images do not change in width and height in order to be fully visible. Take a look at the jsfiddle. <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> <style> html, body { position: relative; height: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } body { background: none; color: none; margin: 0; padding: 0; overfl…

    • 2 replies
    • 1.7k views
  13. How to use node-inspector with Grunt tasks?

    • 0 replies
    • 1.1k views
  14. On my portfolio website I have some arrows at the side to navigate up and down the page. Now, I'm viewing it on an old laptop so it might not be entirely representative, but when the page loads, for a few seconds I get the arrows styled as they would be without the Javascript which changes them to a fixed, slightly different position - if that makes sense... A few seconds seems too long for the file to load, to me. I know my code isn't going to be very efficient as I'm very new to Javascript, so that might be it. It could also have something to do with a font being loaded from Google Fonts. And there is another Javascript file which I think slows the page down a bit (…

  15. If an element has a ::before and ::after pseudo-element, are their values for width, height, padding, etc - when set in percentages - based on that original element or the parent of that element?

    • 0 replies
    • 1.1k views
  16. hi all, i am testing coub(dot)com which allows you to create short looped videos and has pretty good embedding support. However. I made a draft of a site the videos is in the background, on top is a white div with some text. i would like to know how I can force the video to stretch fill the browser window. I wrote to coub and they said it can be done with javascript. they have done it with their homepage coub(dot)com (see at the login/signup page). I can't seem to decipher how they did it. any thoughts? this is what I have. <html class='no-js' lang='en'> <head> <script src= "https://ajax.googleapis.com/ajax/libs/jquery/2.1.…

  17. Started by rhubarblover,

    I've started to use the HTML5 tags <header>, <footer>, etc... Obviously these don't work in IE8. I'm kind of confused about what to do about it. Here's the thing - yes, you can use Javascript to create the elements - but what happens if the user has Javascript turned off? An awful web page. Really, is having JS turned off so rare? Back when I used IE habitually as a child, before understanding what JS actually is, I remember IE blocked Javascript and warned about it being dangerous - and personally, I stuck to that and never enabled it. How many others are doing the same on these old browsers? The easiest thing to do seems to be to just use divs, as be…

  18. Hello all! I am currently trying to find the best way to implement a 'sortable product selector' into a WordPress site. The best way to describe what I am trying to achieve is by uploading screens as an example: State 1 The first image above shows the 2 column structure, with the industry sectors on the left and and the product types on the right. When clicking the industry sectors the products need to sort – displaying only the products relevant to that particular industry (as shown in the screen below). State 2 Finally, the product types will need to be drop-down boxes revealing sliders which allow the user to click through the available products (se…

    • 0 replies
    • 4.1k views
  19. Started by Charly,

    Hello, I am not very good with menus, I just wondered if someone might be able to help me. I want to add a coloured box to each menu item - see attached. I have a couple of colours I want to use and I want to pick these by adding classes into my Wordpress menu for example .red .orange .yellow. I thought of using the before:: but I can't see to get the desired effect. Can any one give me any advice? I am working on a blank canvas at the moment so no CSS to post as such. Thanks in advance :-)

    • 4 replies
    • 1.5k views
  20. Started by GayeJDevine,

    We take care of the SEO-friendly web design, which is the first component of generating search engine traffic, but it is your job to build many quality backlinks to your website.

    • 2 replies
    • 1.4k views
  21. Started by pippin62,

    Can anybody give me an opinion on the following HTML5 page structure, whether it is correct or not? (ie. not if there are mistakes in the coding, just if adheres to the HTML5 structural spec.) <body> <header> <h1>Company name</h1> <nav>…</nav> </header> <section> <header> <h1>Blog</h1> </header> <article> <h1>Blog entry title</h1> … </article> </section> <footer> … </footer> </body>

    • 10 replies
    • 1.6k views
  22. Started by Charly,

    Hello peeps, I hoping someone might be able to help me with a website that I am struggling with. I need 3 columns, equal in width. Problem is, my client wants a divider between each one and the divider is not full height. I tried my best to get it how I wanted, right now the appearance is exactly how it should be. Problem is that when the browser downscales it messes up the column width. I know, this is because I have mixed % and px in the widths... I can't figure another way to get the look I need but with %. Can anyone help me out. The dev site is here.

    • 8 replies
    • 1.9k views
  23. https://medium.com/javascript-scene/common-misconceptions-about-inheritance-in-javascript-d5d9bab29b0a Would like to see others views on this. I agree with the author we shouldn't be trying to follow the classical model in JavaScript.

  24. Started by Sneijder,

    How do I change my background image between 2 images every 10 seconds? I managed to do it with colours.. but with images it's more trickier. Here: https://www.trevorsiu.com/email

  25. Started by dpuk44,

    Using Underscores for the first time. Can someone advise how I can center the nav horizontally across the screen and not aligned to the left? <nav id="site-navigation" class="main-navigation" role="navigation"> <button class="menu-toggle" aria-controls="menu" aria-expanded="false"><?php _e( 'Primary Menu', 'allport-autos' ); ?></button> <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?> </nav> /*-------------------------------------------------------------- 5.2 Menus --------------------------------------------------------------*/ .main-navigation { position: relative; float: left; width: 100%; …

  26. Hi Guys Learn jQuery for Designers, Most of the Designers know only HTML and CSS, they dont have knowledge on jQuery. No Worries. This is the right time to learn jQuery for Designers, 50% Offer for Wonderful Course click below link to access 50 % offer :- https://www.udemy.com/jquery-for-designers-and-beginners-do-interactive-web-page/?couponCode=JFD50 Use Coupon Code : JFD50

  27. Started by rhubarblover,

    A family member has decided they would like a website which will include a small weather forecast. I've had a look at a few widgets but none of them would fit in with the site. What I would rather be able to do is design my own, and just get the code to insert the values (temperature, etc). Has anyone done this?

    • 7 replies
    • 1.7k views
  28. Started by Vulcan,

    I'm wanting to make my website responsive. I know there are a few downloads like Bootstrap etc. But I don't know how it all works when I integrate it into my website. I basicly want the website to work with phones. Anyone know any tutorials for to make websites responsive?

  29. Started by Acknowledged74,

    Hi I suspect this has something to do with subfolders, as the site in question isn't at the URL route. I have a font folder which I link to from the header of each page with <link href="routeurl.co.uk/subfolder/css/font-awesome.min.css" rel="stylesheet"> The font awesome css file then connects to routeurl.co.uk/subfolder/fonts/fontawesome-webfont.eot with css content like: .fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"} I'm not sure where the hook up problem lies is it the \f012 elements. Really confused.

  30. Started by big man,

    Hi I am doing a site in php MySQL and have an SSL applied. I have an insecure logo which I get when I access images in a shop the code is. img src="<?=PRODUCTS_IMAGE _PATH ?> normal etc etc I want to send it through the https if possible. Any help would be brilliant. Thanks.

    • 0 replies
    • 1.4k views
  31. Started by justlooking5,

    hi i looking for visual editor for Website Templates html/css. i want to change mostly the html and images in the templates there is any free software or online tools for that ? i find 1 software [ pinegrow ] but it cost money there is any free ? thanks in advance.

    • 0 replies
    • 1.8k views
  32. Started by richardmountain,

    Afternoon all, I've got a project at the moment, and my client is wanting a nice large image on the home page, possibly even a carousel of images. In your opinions what's the optimum file size vs resolution? Should I use baseline or progressive?

  33. Started by Codetalker,

    Is knowing HTML and CSS impressive, or do so many people know them? Do you need to know a programming language like Javascript, too, to get anywhere/be employable?

  34. I want to add Photoswipe to a gallery that ive made inside a table, Here is a sample site: https://jsfiddle.net/baL04a9o/1/embedded/result/'>https://jsfiddle.net/baL04a9o/1/embedded/result/ I want to keep the layout of the gallery but when you click each image it pulls up the Photoswipe viewer, is it possible to do this? Jsfiddle: https://jsfiddle.net/baL04a9o/

    • 0 replies
    • 3.5k views
  35. Started by CreativeSheep,

    Anyone efficient with Canvas, I have exhausted other technologies, none can do them, other then canvas, which I don't know. It is for a scalable size site from mobile though to desktop. I'd greatly appreciate it

  36. Started by Sneijder,

    The bottom frame has a transparent border in the bottom frame in IE only.. plus why do small images always look so bad in IE? www.trevorsiu.com

    • 10 replies
    • 1.4k views
  37. Started by rbrtsmith,

    For those that are not aware ES6 is the new edition of Ecma Script AKA JavaScript that is due to become a standard this month. It has some great features such as: Let statement that respects block scope, unlike Var that uses function scope, so now for example if you were declare a let variable inside a loop it will be scoped to that loop only. Arrow functions where let foo = (x,y) => x*y; is equivalent to let foo = function foo(x, y) { return x * y; }; At first this just seems like some syntactic sugar, but I actually think it's more descriptive. We could write a reduce function to give us the total of an array of numbers like this: let nums = [1,…

    • 1 reply
    • 1.1k views
  38. I've created an AJAX lightbox but when loading progressive JPEGs sometimes the image is returned before it is fully rendered. I know this is the idea with progressive encoding but the problem is that when the server has returned the image it does not continue to load/render. The response of the XMLHttpRequest object (the image wrapped in img tags) is added to my HTML on an onreadystatechange event and I am making sure that the readystate is = 4 and the status is = 200. Is there anything I can do so the the response is only returned when the image is fully loaded? (without preloading all the images) Code: (the funtion is a child of another function in case you wonder…

    • 3 replies
    • 1.3k views
  39. Started by James Winfield,

    Hello I'm looking for a dramatic jquery text effect that says HELLO upon my website loading. http://www.jameswinfield.co.uk/v2.html# Does anyone have idea ideas? I've done a bit of searching and cannot really find any good text effects but I'm a beginner at jquery so might be looking in the wrong places. Also if anyone knows a stylish news ticker that would be good to here - I found a basic one at http://www.jquerynewsticker.com/ which will do but was hoping for something with a little more styling. Thanks James

  40. Started by notxalckram,

    Hi, I'm trying to look for a tutorial that will help me build a content switcher. There's plenty that are available but these are all image sliders. My idea is a row of icons at the top, and when each icon is clicked the content below switches to the relevant content for the icon clicked. I've attached a quick mock-up of what I mean. Does anyone know where I can get a tutorial or help for this?

    • 3 replies
    • 1.2k views
  41. I have a design that I'm converting to be Bootstrap responsive but have run into a couple of problems. How to make a non full width background image responsive How to keep the main form content the correct distance away from the top of the image no matter what the viewport size. Mock up image Website Js Fiddle - http://jsfiddle.net/handcoded/nsaoxbez/1/ I'd be very grateful for any pointers

  42. Started by Jeffsk,

    So, this is probably a really basic thing, but I'm new to this so..... In my style sheet I set all footer text color to one colour, but when I made some of it into links it automatically became blue - how can I make sure it stays yellow i.e. overide whatever's setting the colour? I've read around a bit online & I think maybe something like....... a.link {color:#E5B81B; text-decoration:none; font-weight:normal;} a.visited {color:#000; text-decoration:none; font-weight:normal;} a.hover {color:#6A2E88; text-decoration:underline; font-weight:normal;} I only really want those colours to apply to the links in the footer but I'm not sure where to put it in the c…

  43. Started by James Winfield,

    Hello I want to use an API but don't really know anything about them. I am looking to insert my latest DJ chart from the Resident Advisor API - http://www.residentadvisor.net/api/dj.asmx?op=getcharts into the charts tab on my website - http://www.jameswinfield.co.uk/v2.html#. Can anyone help me, or at least point me in the direction of somewhere that will teach me how to use an API. Thanks James

  44. Started by pippin62,

    I've got a form with a page position 'below the fold', with inline validation errors. After submission, if the validation errors are triggered the page returns to the top, hiding the form from view - the user does not see the errors. How do I ensure the return does not go back to the top of the page?

  45. Started by DavidAndrewReilly,

    Hi, everyone. I need your help with a website www.dianneinglis.com I am moving over to WordPress and will stop using Dreamweaver. The reason is I am not very good at coding. If someone could look at this HTML website and tell if there are some quick fixes you can see. Thanks everyone.

  46. Started by rbrtsmith,

    In chrome or other browsers with built in language translation is there a way to detect if a user has translated a page post page-load. Issue being that I have written an equal-heights plugin that breaks if the text grows in size after translation. So I need to detect if a translate event occurs then re-call the equal heights function. Any ideas? Googling doesn't throw much up.

    • 5 replies
    • 1.2k views
  47. I recently got a new phone with android lollipop. I have noticed that websites with fixed backgrounds are not worked and simply scrolling with the content. Anyone else having this issue? I'm creating a website with fixed backgrounds and would like to know if there is any work around fixes for this issue Thanks

    • 4 replies
    • 1.4k views
  48. Started by David Cook,

    Hello wondering if anyone can help, my dropdown menu won't work /*---MainNav---*/ #mainNav {padding: 0; background: #adb702; z-index: 999;} #mainNav li {float: left; position: relative; margin: 0; padding: 0 !important; list-style: outside none none !important; border-left: 1px solid #fff; z-index: 999;} #mainNav li#homeitem {border-left: 0;} #mainNav li#homeitem a {background: url(../images/homeicon.png) no-repeat 50% 50%; padding: 20px 36px 0;} #mainNav li#homeitem a:hover {background-color: #1b437c;} #mainNav li#homeitem span {display: none;} #mainNav li a {display: block; padding: 20px 30px 0; font-size: 16px; font-weight: 600; text-decoration: none; text-trans…

    • 2 replies
    • 1.3k views
  49. Started by Charly,

    Hello, I am hoping someone will be able to help... I am trying to get the main content (the white area) to sit underneath the menu above it on this page here. I must be missing something obvious as I can get in to work on other pages like this one here. Can anyone see where I am going wrong? Big thanks in advance to anyone that can help me :-)

    • 2 replies
    • 1.3k views
  50. Started by roothost,

    OK, I give up, 6 hours straight on this and no joy... So, I have to columns, left and right. They need to be equal height. That's simple enough. In the left hand column is a menu, with a sub menu. The sub menu is activated on click and reveals a vertical sub menu. Again, simple enough. Combine the two? Nope! Not a hope! Each time the sub menu activated it pushes the content down and overlaps what is below it, essentially it is not adjusting the column heights. Here is the Jquery; // Equal Height Columns $(document).ready(function () { function equaliseIt() { $('.containerequal').each(function () { var highestBox …

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.