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

    I'd like to eventually start building a ww2 simulation game that is played through a browser. Right now I am just designing but as I come to the end of my design I am thinking about technologies I will use. I am almost certain I will use HTML5 and what has been refereed to as the "canvas" tag and I will be using javascript. I'd like to talk with someone over discord so If you are free to chat and help me by answering questions, my discord is: mikeright#4273 My game will be similar to the game "supremacy1914" in that You (the player) will see a map of europe divided up into sections called provinces. You can drag the map to navigate around europe and you will be able to …

    • 0 replies
    • 1.2k views
  2. I have searchbox div inside of sidebar div. When I hide sidebar div (on narrower screens), what's the best way to reposition and show searchbox div somewhere else on the page? Can I have the same one reappear and resposition it via CSS? Or should I have a different instance of it via HTML?

  3. Hi all, I need to show the corresponding cost when its counterpart is chosen. I have some data (costs) to show, on the other hand I have their corresponding products. I am not too sure which would be the best way to make it work. I am guessing with a dropdown list showing the products by name, when one is chosen then it show its corresponding cost. The problem I see with that is that the products are well over 100. So that would be a long list. I suppose, while the dropdown list is showing we could enter the first letter of the name of the product to jump to that area and ease the search. Can anyone recommend a better way maybe?

    • 0 replies
    • 1.2k views
  4. Started by Deaks,

    I've recently started to learn javascript but I'm a bit stuck on understanding the flow of the following example of recursion: /* function power(base, exponent) { if (exponent == 0) return 1; else return base * power(base, exponent - 1); } console.log(power(2, 3)); // → 8 */ Any help appreciated.

    • 3 replies
    • 1.3k views
  5. Started by Mark-Milton,

    Hi, Hope someone can help. I am trying to get a image to blur when hovered but the text on top of the image not to. Currently the text blurs as well due to it being within the same div. Is it possible for the text not to blur? Sent from my SM-N950F using Tapatalk

    • 1 reply
    • 1.4k views
  6. Hi Guys, I'm experiencing differences to how the page is loading when this content is placed at the bottom of the page. http://rcestimating.co.uk/index.php I have this content placed at the top. <h5 class="zoomout">Fast</h5> <h5 class="zoomout">Accurate</h5> <h5 class="zoomout">Reliable</h5> <h5 class="nofade">RC ESTIMATING LTD</h5> http://rcestimating.co.uk/index2.php here I have this content placed at the bottom; which is ideally what I want as this text is quite irrelevant and I don't want it ranking high in seo. The problem is that when this content is placed at the bottom it does not load in the corre…

  7. Started by Fuzzy Logic,

    This is happening on all the pages of my site http://dotvoice.co.uk/draft/index.html When I load the page, the animation kicks in, but there are parts on all the pages that stay blank, so, I go to look in chromes inspector and then it all suddenly comes back. The index page it's at the bottom The studio page it's near enough the whole page The portfolio page nearly all of it The about us page (link in footer) nearly all It all works offline, for example in atom-live-server and it seems fine anywhere else except for when I view it online.. Anyone got any clue to what is happening? Thank you

    • 8 replies
    • 1.7k views
  8. Started by mccloud,

    I am basically trying to get the headings on this site: test.extensio-management.de to get looking like on the screenshot attached. Currently I was trying to get the text centered (in terms of height) within the colored background.. I am not sure where it's coming from, so I've tried changing it in some way (just to see how it responds) in Theme's custom CSS: h1{ background-color: #6cb52d; border: 1px solid red; padding-top: 10px; } but the padding is crossed out in red and doesn't get applied (see screenshot). What does this mean ?

  9. Started by Louwwieee42,

    Hi there, I am having issues with my Image not displaying at all, the screenshot shows it is loading as far as I am aware and where it should be? http://prntscr.com/gxdt12 Surely it can't be the code, if it is loading fine, upon double-clicking it from the "Network" tab I get taken to it fine. Clueless? Kind regards, Lewis.

  10. In my quest for a more responsive website I've found that placing my Lightbox image gallery in a table works well - I'm wondering though, based on how I'm using the code it will come back to bite my in the proverbial later down the line. Here's a page with 2 galleries .table { display: table; width: 100%; } table.lightbox-table td { text-align: center; margin: 0 auto; padding: 0; } .table-row { display: table-row; width: 100%; } .table-cell { display: table-cell; width: fit-content; border: solid 6px #575974; margin: 0; padding: 0; } .table-cell:hover { border: solid 6px #6f73a9; } @media screen and (min-width: 1200px) { …

  11. Started by Revs,

    Hi everyone, I noticed on my website that the input field for the Newsletter (where you enter your email) and the submit button aren't in one line. My site is a Wordpress site and I use a theme I modified myself. (child theme) I can't find the property that controls this, I believe it has something to do with padding being added to one but not to the other and therefore them not being on the same height. I tried to modify some stuff and add new things in the child theme CSS, but no luck. I was hoping someone could find it for me. These Wordpress sites also often have stuff overwriting each other, so it's quite confusing. Well, thank you!!

  12. Hi All, I have tried to embed a twitter account in my website (it is not live, I recently started doing some projects). In the png attachment you can see what I get Also, I am attaching what the html looks like, in case the link is not correctly placed.... Could you please let me know why I am getting the link on the html document and it is not actually displaying the twitter timeline? I have been watching some videos today on You Tube, to find out but I am still clueless. If you need any additional info, please let me know. Thanks, Irene index.html css.css

  13. Hi Guys, Sorry to be bothering the forum again. I've delayed in trying to fix myself but I'm not having much luck. I'm trying to add a second animation 'add a background-color & border-bottom' to an element via my nofade class which activates my addbottomborder keyframe. The really strange thing is dependant on what you put here it works or not. In my html I have: <h5 class="zoomout">Fast</h5> <h5 class="zoomout">Accurate</h5> <h5 class="zoomout">Reliable</h5> <h5 class="zoomout nofade">RC ESTIMATING LTD</h5> @keyframes zoomout{ 0% {transform: scale(1)} 100% {transform: scale(0.90); opacity: 100;} } h5…

  14. Hi Guys, been a long time since posting here so hope all of you are well. I started messing around with animations a couple of days ago and managed to get it working for a brief minute then lost it again. I have an animation http://concretepokerrepair.co.uk/index2.php which does not give me unwanted padding on a desktop, however on Android portrait it's fine, but turning it to landscape view I get massive unwanted padding on the top. It's like the device is taking the old portrait resolution and using that amount of pixels to offset the margin at the top. Is anyone able to shed some light on this? <meta name="viewport" content="width=device-width, initial-sca…

  15. Hi all, I have been trying to create a contact form for a website that all I want it to do is just email me the details once the submit button is pressed, but I can't seem to configure it at all. I'm trying to use this form https://1stwebdesigner.com/wp-content/uploads/2012/07/multi-step-rhino/ from this website https://1stwebdesigner.com/create-multi-step-form-rhinoslider/ but from what I can gather I need some sort of php code to make it email me. Can anyone help or give some advice on what I need to do to get this to work? Any help will be greatly appreciated Thanks All, vivalamac

  16. What I want is to click any <li> in a <ul>, and then affect ALL elements with the same class on the entire page. $("anyclass").click(function(){ $("anyclass").hide(); }); I don't want to manually enter the element classes, as the client can add additional items to the list and their class is a random ID. I feel like it should be a very small piece of jquery but I can't think for life of me.

  17. Hi all, I have an SVG map and would like to have it so that when on a phone if a user taps a region the colour will change and remain that colour until another colour e.g. Region begins as #ff0000 When tapped changes to #ffff00 Stays that colour until another region is tapped Here is the map (towards the bottom of the page) - excuse how it looks on screens larger than 640px, right now I'm focusing on phones. And here's my CSS: a svg:focus #brackaghnorth { fill: #ff0000; pointer-events: none; } a svg:hover #tievebrack { fill: #ffff00; pointer-events: none; } a svg:hover #tievenameena { fill: #0000ff; pointer-events: none; } a svg:hover #liggins { fill:…

  18. Started by BadScooter1980,

    Got a bit of an annoying issue using the F5 (it's an old, big site so upgrading to F6 at this stage is not an option) reveal modal with video in that upon closing the modal, the video seems to restart and play in the background. I've tried various jquery methods to kill the iframe on close, but no joy. Anybody had this before? EDIT: RESOLVED

  19. Started by mahmed1,

    Hi All This is my 1st post so apologies if i am posting incorrectly I am completely new to web development -i am learning HTML, CSS and Javascript I have been tasked to created a webpage front page that has some images that float about. When a user drags an image into an area (in my case another div) - i want to open up a link Now so far i have managed to get the animation that shows the images floating I have also managed to get the image to drag and drop into the div area but i am having a couple of if issues 1) when i drag an image, it does not fit nicely into the div area 2) the 3 images that are aligned gets floated - once i drag and drop the im…

    • 17 replies
    • 2.6k views
  20. Started by Fuzzy Logic,

    Would someone be able to tell me why the letter 'r' here is coming in too soon,? Trying to work it out and no luck so far Thanks https://codepen.io/saltedm8/pen/LzbwXJ

  21. Is there a way to change a word in a line of text depending on the screen size? On desktop I'd like the line: but on phones and tablets I'd like

  22. Hi, Thanks for reviewing my question - I regret posting the query because it just sounds soooooo damn newbie. But all the same, I'm grateful you've decided to try and help. Okay, so the problem; I'm trying to link two key phrases from my homepage to the relevant service page of the website - Sounds easy enough, but for some damnable reason it won't work and I'm clueless as to what the problem is. <a href="http://something-nice.co.uk/service/vintage-rustic-wedding-furniture-hire/">rustic furniture</a> <a href="http://something-nice.co.uk/service/rustic-table-chair-hire/">tables & chairs</a> But for some reason after clickin…

  23. Hi all, Can anyone tell me why my some media query declaration are not being called? I know media queries should be placed at the bottom of a stylesheet, but they only seem to work when I place them at the top and in some cases the original declarations are called. Here is a media query I set: @media(max-width: 640px) { .copyrightwrapper { position: relative; top: 0; bottom: 0; float: left; width: 100%; height: 30px; margin: 20px 0 0 0; padding: 5px 0px 25px 0px; font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #999; border-top: solid 1px #ccc; } } Here is what's called even though my browser width is below 640px width…

  24. Hi there, I'm running a homepage video on my site, hosted on YouTube. It only runs for larger breakpoints. I was wondering if anyone had any ideas on how I could reduce the sluggishness when the users scrolls down the page, I'm particularly noticing this on Safari Mac. It may be that this is just a side effect of running a video background on a website homepage but I was wondering if anyone had any fixes? I used this to implement it which has a pause on scroll feature which is supposedly meant to remedy this but it's still an issue for me. http://rochestb.github.io/jQuery.YoutubeBackground/ It's running on my site at http://bit.ly/2xqP9aN Many thanks for any t…

  25. Started by Louwwieee42,

    Hi, As you can see on my test website: https://bostonrowingclub.blacklabelhost.com I have a contact form for emails at the bottom of the homepage. How can I make it so when the submit button is pressed it brings up this? http://prntscr.com/gg8ay3 Here's my HTML for it: <footer class="footer" id="FOOTER"> <h3 style="margin-left:445px; margin-bottom:-80px; margin-top:0px; font-weight:700;">CONTACT US</h3> <img alt="img" src="images/misc/1.png" style="margin-left:515px; margin-top:100px; margin-bottom:-75px;"> <div class="container"> <div class="footer-middle"> <div class="row"> <div class="…

  26. Hi all, I created an interactive map using Raphaël JS and although it appears on desktops it doesn't on mobiles - I am using a customised version of the Jetpack mobile theme. The map appears toward the bottom of this page. http://greencastleparish.com/wordpress/wp-content/themes/greencastleparish/js/raphael.js http://greencastleparish.com/wordpress/wp-content/themes/greencastleparish/js/map.js Can anyone help out please?

  27. I stopped including.html in my links some time ago. A little script in the htaccess file helps with that. However, in doing so I probably broke access to my site visitor stats page which was showing up as 403 forbidden. I ignored that for some months and didn't care about it. Yesterday, I asked my site support to fix access to that page, which they quickly did. Unfortunately their fix seemed to make every linked page on my site 404. I think they removed my custom htaccess file which was simply in the root folder, and used their own simpler htaccess file in the comm folder. Reversing the situation completely gave me back access to my pages, but the visitor…

  28. Started by Fee,

    Looking for advice from a JavaScript wizard to confirm whether an idea I have is possible. Basically I am looking to make a Chrome extension that captures a browser session i.e. all the open tabs and saves this as a file on the user's local file system that can be executed to restore the browsing session. Similar to bookmarking - but the user could effectively bookmark a number of related websites and restore them in one click. I'm at a loss at where to start with this, does anyone have any insights? Is this even possible to achieve in JavaScript? Similarly, is it possible to save a browser executable that opens multiple tabs?

    • 2 replies
    • 1.9k views
  29. Started by jmerlinb,

    Dear all, Would anyone be able to tell me how to edit the HTML of my Weebly website's banner image (the bike in the rain)? I know it must be somewhere under Design > Edit HTML/CSS, but as I have little HTML knowledge, I am unsure where to look. If it helps, the end game is to make the banner image interactive (so that it changes back and forth between two images upon mouse over or clicking). Take a look: www.lightcycles.xyz

  30. Hi all, Hope I’m posting this in the right place, if not please direct me to where’s more appropriate. I created an interactive SVG map using Javascript and although it works in HTML as seen here, I can’t get it to appear on my WordPress page (near the bottom). I’m guessing that it’s because I’m not referencing my Javascript files properly as the background SVG is appearing OK. Here’s what I have on my WordPress page: <div id="map" class="townlands"> <!-- Raphaël JS Map Here --> </div> <h3 id="region-name"></h3> <h2 id="irish-name"></h2> <h1 id="detail-name"&g…

  31. Started by Louwwieee42,

    IHi, I've got weird issues with my Nav-Bar only one one page despite the fact that as far as I can see it's all the same for both pages. Code ---> (Broken page:) http://prntscr.com/ggb2ab The thing is as soon as I remove the href my page goes like this: http://prntscr.com/ggb2sw When it should be: http://prntscr.com/ggb2zk Kind regards, Lewis. EDIT: I've just found out that removing the href from the marathon page does indeed causes issues, all be it in a different place as shown below: With the Href: http://prntscr.com/ggb3wp Without the Href: http://prntscr.com/ggb42b

  32. Started by Louwwieee42,

    Hi, How can I make the highlighted image move into the above space? http://prntscr.com/gd243u Kind regards, Lewis.

  33. Started by James Winfield,

    Is there such thing as Google Postcodes API? I've been asked to replace the Ideal Postcodes API that we use, with Google Postcodes API. I can only find the Geolocation API and Places API - neither of which seem to offer a postcode lookup. Currently we use Ideal Postcodes API to offer a customer a list of possible addresses when they enter their postcode. Does anyone have any idea if Google Postcodes API actually exists?

  34. Started by welsh-rich,

    Hi, guys not been on here for a while, been concentrating on my IT degree for the last year, anyway I'm working on something that is like a portfolio page that I'm hoping as my work grows I can showcase it through my own site. currently, I'm stuck on getting my logo i created using adobe illustraitor lto go into the left hand corner of my navbar ill list my code below please excuse any noobie typos as i am still new at this whole coding thing. <!DOCTYPE html> <html lang="en"> <head> <title>RPM Designs</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel…

    • 6 replies
    • 2k views
  35. ***Sorry didnt mean to duplicate post*** I have copied the menu from: www.bootsnipp.com/snippets/featured/mega-menu-with-tabs-navigati‌​‌​on you will notice that when you drop the screen size down to mobile/tablet width that the menu forms an accordian dropdown. The top dropdown works fine at first - opens within the accordian... however when you then select a different tab at the bottom - men, women etc... instead of changing within the same area, it opens a dropdown at the bottom of the list does anyone know how to stop this? I have removed the below CSS code and it works fine when inspecting element. but not sure how to do thismysel…

    • 0 replies
    • 2.3k views
  36. I have copied the menu from: www.bootsnipp.com/snippets/featured/mega-menu-with-tabs-navigati‌​‌​on you will notice that when you drop the screen size down to mobile/tablet width that the menu forms an accordian dropdown. The top dropdown works fine at first - opens within the accordian... however when you then select a different tab at the bottom - men, women etc... instead of changing within the same area, it opens a dropdown at the bottom of the list does anyone know how to stop this? I have removed the below CSS code and it works fine when inspecting element. but not sure how to do thismyself as the code comes from Bootstrap CSS. Also the code…

    • 0 replies
    • 2.1k views
  37. Started by Louwwieee42,

    Hi, I'm new to Web Dev and currently have the following. http://prntscr.com/gd0ue8 When hitting submit the page simply looks to refresh. How can I make is this form submit the contents of it to an email? <form class="subscribe-form"> <input name="email" placeholder="E-mail address" type="email" action="mailto:Lewis.belton.42@gmail.com" methood="POST" enctype="text/plain"> <input class="btn-common contact-btn" type= "submit" value="SUBMIT"> </form> Kind regards, Lewis.

  38. Started by Louwwieee42,

    Hi, Below is the code for my Navigation bar and it's CSS. How can I make a dropdown menu under (Upcoming) Events for Boston Marathon, and Boston Head? I have tried but failed miserably. HTML: <!-- NAVIGATION --> <nav class="navbar navbar-default navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <button class="navbar-toggle collapsed" data-target="#my-navbar-collapse" data-toggle="collapse" type= "button"><span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class= "icon-bar"></span> <span class="icon-bar"…

  39. Started by Louwwieee42,

    Hi, Please see the below linked image showing my issue. All im going to say is Contact. http://prntscr.com/gdddd6 HTML: <header class="header-one" id="HOME"> <div class=""> <!-- NAVIGATION --> <nav class="navbar navbar-default navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <button class="navbar-toggle collapsed" data-target="#my-navbar-collapse" data-toggle="collapse" type="button"><span class="sr-only">Toggle navigation</span> <span class= "icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></…

  40. Hi guys, This is what I am aiming for: http://www.worldclassphotographic.co.uk/images/opacity.JPG Live version here: http://www.worldclassphotographic.co.uk/relativeweb/resources/opacity/ *Note the darker box around the words "This is a nuffield tractor" * This displays fine on my desktop machine, but no darker box on my tablet or mobile. I have uploaded it to codepen here: https://codepen.io/write/opacity-issues-on-tablet But it does something different again Please help Andy

    • 0 replies
    • 1.3k views
  41. Hello. I have used a CodePen to try and implement a smooth scroll effect when the nav links are clicked on a site, but have run into a few issues. The smooth scroll effect works as expected, but it throws up Javascript errors with every press on the nav links. The console error is as follows: The code I have in my script file is as follows: $(document).ready(function() { var scrollLink = $('.scroll'); // SMOOTH SCROLLING scrollLink.click(function(e) { e.preventDefault(); $('body,html').animate({ scrollTop: $(this.hash).offset().top }, 1000 ); }); // ACTIVE LINK SWITCHING $(window).scroll(function() { var scrollbarLocation …

  42. Started by mikelamar,

    I've a 100% working carousel taken from here https://codepen.io/dangvanthanh/pen/AgHnB and tried to incorporate to my site but it collapses. You can check it here https://codepen.io/mikelamardes/pen/oeBoxJ Can someone please explain to me why is this happening and how I can fix it. Thank you in advance.

    • 6 replies
    • 2.1k views
  43. Started by ShaneO,

    Hello I'm building a comparison table for a site I'm working on, and I'm trying to achieve a similar result to THIS. I can build the desktop version no problem, but when the table is viewed on mobile/tablet, the different elements in the table aren't lining up as I would like (similar to uSwitch example with the credit card image on top left, and 'apply' button at the top right). Can anyone advise on the best way to achieve this? I've tried Googling but haven't been able to find anything. My web design / coding knowledge is basic / intermediate. Thanks very much.

  44. I'm using 'vh' to ensure our puzzle games fit in the current browser viewport. Anyone else using this or got horror stories, or can suggest alternatives? TIA Paul

    • 16 replies
    • 2.8k views
  45. Started by DonkeyWorx,

    Anyone used purifycss or similar tools to clean up unused styles in their css?

  46. Started by dap,

    I'm trying to use this (http://photoswipe.com/) lightbox on my page http://gekkoweb.com/hl2017/art2.php (test page for now with one image) but i've got in a right mess with it because i can't wrap my head around how to implement it - no experience with javascript. grateful for any help! I'm also open to easier to implement lightbosx alternatives but has to be touch enabled i.e. swipe, and zoom would be nice too if possible. facebook like would be nice as well for individual images, but not sure how that would even work all from the same page the actual production site is at http://hannuleimu.fi/ but it uses an old light box that doesn't work well on mobile and …

    • 3 replies
    • 1.5k views
  47. Started by GREYFOX,

    Hello. I have been looking for books to learn front end web design. I have been looking at many on Amazon UK and one of them stuck out for me. The link is below. https://www.amazon.co.uk/Learning-Web-Design-Beginners-JavaScript/dp/1449319270/ref=sr_1_7?ie=UTF8&qid=1488809843&sr=8-7&keywords=html+css+javascript Has anyone read this book? It was published in 2012, before HTML5 was released yet it claims to support the HTML5 standard which seems odd to me. There is a revision being released in December of this year with a link to it in the link above. I would like your opinion on this book or any other books that are similar to this one. Thank…

    • 3 replies
    • 1.4k views
  48. Hello guys, I'm working on a new project - redesigning the website Eva Cleaners. The problem I faced now is the top bar ( the top menu bar with pages navigation). I want to make it fixed so when someone visit a page from the site and scrolls down, the top bar to be visible in all cases. What is the best way to do it? I tried few suggestions on some forums but nothing works. Forgot to mention that the site is built on custom php platform ( not wordpress).

  49. Is it possible to disable jquery code so the code does run again if the page is refreshed or visited again during the same user session? What I'm trying to do is animate the introduction of content on my homepage and disable it from happening again if the user goes back to this page or refreshes it during their visit to my site.

    • 2 replies
    • 1.5k views
  50. Started by Fuzzy Logic,

    I have a pattern created in order to later use it as the basis for a masonry type of layout, I have managed to get the first six in the pattern to work, but can't get the pattern to continue past that and to go on perfectly forever more You will see that the only solution I have come up with so far is to make every six a contained wrapper and just keep repeating the group, it's not an ideal situation considering where it's going and what it's doing on the site I am creating, I was wondering if anyone was able to make the first six divs keep repeating in perfect pattern every time a new div is added. https://codepen.io/saltedm8/pen/MozmaY thanks

    • 3 replies
    • 1.5k views

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.