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 Ken Lui,

    I'm new in responsive web design. I based on an open source template to design my web page: http://designkkl.com. When the browser shrinks to call the hamburger menu icon out, the MagiCare logo doesn't show. Besides, I want to add a dropdown menu to one of the items on the menu bar. Can anyone kindly advise how to add the dropdown and fix the logo problem? Thanks.

  2. Hi there, I used to code in html back in the old days and something as what I want to realize now was done in frames back then. How do I realize something like that, in the most simple code? http://www.tyronelebon.com/ Basicially a menu stays on the left and the images 'disappear' under the menu when scrolling right. I want to use jpgs for my menu ( because I am using a rare typeface ). Do I need to create a table for the menu to keep the position of the buttons fixed or is there any ways to realize that with css? and do u recommend to put all the images in a table to? but then how do I scroll within that table..? If anyone has…

  3. Started by Zynck,

    Should I define all of the box element, i mean should define all of the padding, Margin, and border of each element? is it okay to not define it if that not needed? i saw some CSS css code in net, the define the margins, padding and other with value of 0. for example: article { margin:0; padding:0; border:none; background-color:#000000; } is that needed and can affect the others?

    • 4 replies
    • 5.5k views
  4. Hello I have created a website through Drupal but am having problems. Can anyone kindly advise me why the features section of my home page is not resizing when the window is not maximised? Please. It is the section with the pink background. http://www.ubereadoolische.com/drupal3/ On Chrome it resizes fine until about 1/3 of the original screen size, on Firefox it starts falling off the page when only 2/3 of the original screen size. On Android, it creates a whole second page to the right. I expect it is something simple but I have inspected all the elements I can think of, tried using max-width 100%, and I really cannot work out what it causing it. …

  5. Hey guys. I'm not a very experienced web developer. I however, mess around with wordpress and have created a few websites for my own portfolio and some small websites. I would like to create. What i believe is a very simple website, although I could be seriously wrong. This is an example of what i would like to create -- https://www.googlesciencefair.com/springboard/en/ It uses google search api -- https://developers.google.com/web-search/docs/?hl=en Could something similar to this be created with wordpress. Obviously, I would be changing what would be asked but the concept is the same. It's only a fun project im working o…

  6. Started by Meh,

    $(document).on('keyup', "*[data-field='quantity'],*[data-field='price']", function(e){ $(document).on('click', ".calculate, .delete", function(e){ They do the same thing, but I'm just wondering if these can be combined?

  7. Hi All The theme I'm using is called Tesseract I am using Wordpress 4.4.2 It has a couple buttons in the header I am trying to modify the code for one of the buttons so that when the customer brings up my website on a smartphone they can easily send me a text WordPress or my theme keeps deleting my modifications (When this happened before with "click to call" code it was because I wasn't entering the code properly) I think maybe this is happening again I have tried two different code configurations but none stick The button code I am trying to modify is as follows <a href="/" class="button secondary-button">Secondary Button</a> Here are the two different …

  8. Hi everyone. I'm testing this free Bootstrap template in order to create my first online portfolio: http://startbootstrap.com/template-overviews/agency/ I wanted to add filtering to the attached gallery using some jQuery scripts. BUT... I can't make it work. I tried both of those scripts: http://www.jqueryrain.com/?URGti1_4 http://www.jqueryscript.net/layout/Simple-Grid-List-Filter-Plugin-with-jQuery-CSS3-xFilterList.html They appeared on the site, I got the filtering menu visible but the script never worked... I'd like it to be working like here: http://demo.graygrids.com/#TAPortfolio Can anyone tell me what I might be doing wrong? Or how to i…

  9. Started by TimW,

    Just when I thought I was really competent with floats, grids, clearing and all the html5 layout stuff, I started last week to look at altering and adapting a free template and I quickly made a right mess. Reason being that there was a lot of flexbox in the css which I had failed to understand. So is flexbox about to catch on and take off? Do I have to set aside an afternoon to learn all the declarations and their subtelties? Are there good teach-yourself resources around? One of the alarming things I found when messing with the template (it was this one) was that by altering css for a specific area of the page (like the behaviour of a background in the header sec…

  10. Started by Meh,

    Hey, is there any way to get this: $(document).on('keyup', "*[data-field='quantity'],*[data-field='price']", function(e){ to run whenever there's a change the whole table? At the moment it only changes on the keyup in the [data-field=quantity] and [data-field=price] as it says. But thing is I have a button to delete a row, and once ones deleted it doesn't update the total. To see what I mean go here: http://jsfiddle.net/re2af/195/ And add like two rows and watch it add up the totals, then delete one. The total doesn't update until there's another change in the [data-field=quantity] and [data-field=price] inputs. I also have a button which will add pr…

    • 0 replies
    • 1.3k views
  11. Hi All, been a long while since I've been on here, hope all are well. Someone very kindly helped me with these media queries as I'm out of my depth and I altered one trying to get it to work differently for roughly the rez of iPhone landscape. It seems the media query of @media only screen and (min-device-width: 360px) and (max-device-width: 568px) never kicks in, or not on my desktop resizing anyway. Can anyone see what I'm missing? I want to use a smaller font on ul#navbar on red above but it never kicks in and is overwridden by line 193. <meta charset="UTF-8"> /* CSS Document */ /*Page Formatting*/ body { font-family: verdana; padding: 0; } body, html, …

  12. Started by Rainieren,

    Hello , My name is Rainier laan and i'm a student that is still learing to understand HTML CSS and also JS. I do know alot about HTML and CSS if it come's to me, u might see it diffrent. I have this site called 'Rainierlaan.nl' and it's in an early stage. i'm trying to improve it in so many ways but i dont really know what to improve or how to begin with it. First thing i want to do is to make my site responive i think most of u guys know what that is so i dont have to explain it. the second thing i want to improve is the overall layout and design. i make a sketch but its missing so much stuff and i dont really know anymore what there was suppose to be. I hop…

  13. When I try to make an ajax call the code stops working... $(document).ready(function(){ alert("jQuery Loaded!"); $(document).on("click", function(){ alert("clicked"); $.ajax("../html/confirmation.html", function(response){ success: function(response){ $("body").html(response).slideDown; } }); }); }); However when I remove the $.ajax call it starts working, why is this?

  14. Started by Meh,

    Hey guys, I have setup a table with dynamic rows (a kind of price calculator). You can click a button to insert a row, and there's a button to delete a row. See link below for example of the kinda thing I'm talking about. Insert row after current row - JSFiddle Once the tables filled in, I then post it to some PHP and it sends the information out in an email. However, inserted rows are always put at the bottom of the table when it's displayed in the email, regardless of where they were inserted in filling out the form. An example: Lets say I have filled out two rows on my webpage, like so: item1 quantity amount total item2 quantity amount total But now I realise I n…

    • 2 replies
    • 1.2k views
  15. Hi all, I have looked all over but cant seem to find how to do this: Basically I would like to have an iframe that is my background as fullscreen behind everything. The "src" of the iframe I would like to randomly change onload. I think I will have about 3 or 4 sources. This is what I have thus far, but nothing is working!!! Any ideas? <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <script> function getRandomUrl(urls) { var minIndex = 0; var maxIndex = urls.length - 0.5; var randomIndex = Math.floor(Math.random() * (maxIndex - mi…

  16. Started by Brock,

    Hey guys, I'm trying to get this "add row" button to add a row under the one that's clicked.So: Click "add row" > Adds a row beneath which ever button was clicked. At the moment the top button is the only one that will add a row, and it adds it to the bttom of all the rows. Here's a jsfiddle of what I mean. http://jsfiddle.net/re2af/194/ Does anyone know how to achieve this?

  17. Using a MPB 2015 13 inch It doesn't matter what browser it is. I've tried adjusting padding, magins, etc on the template but can't work out what's causing it? Or how to fix it? Any help would be appreciated . What is should look like: Mac image:

  18. Started by ziercreative,

    Hello guys, i don't know if i'm in the right section, but have this burning quetions that confused me. So i started to learn developing a website. i want to create an ecommerce formy mom. i learn website all by myself no intructor so i dont know where to ask so i came here: the questions 1.) if we just design a website, we can only use html,css,js right? i can design my ecommerce just the design, but how to make it actually work ? like add search menu, shoppping cart, transaction , payment on web . what is this "thing" that do those? and how to add those thing to my only html,css,js design what i should learn ? 2.) i keep searching and i found term "cms". i don…

  19. Started by oplas,

    Hello, I'm trying to get google's sitelinks search box working in my site. Introductions: https://developers.google.com/structured-data/slsb-overview?hl=fi I have tested my dev site with this tool: https://developers.google.com/structured-data/testing-tool/ and I get two errors: "Google does not recognize the attribute type WebSite target destination." "Google does not recognize the attribute query-input type WebSite destination." I using drupal, but here is my codes: script is in <head> section: <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "WebSite", "url": "http://ww…

    • 3 replies
    • 1.1k views
  20. I hope I can explain this adequately... I'm trying to work out which of these is better practice as I'm trying to standardise my code/designs and create some of my own templates to use for things I do quite often. So you have a page with a horizontal menu, and at a certain width it gets hidden and a button is placed to toggle the menu on/off as a dropdown menu, using Javascript. My dilemma is what to do about the styling required to turn it into a dropdown menu. Is it better to simply use media queries, OR do you have a class which applies these styles, and it gets applied/removed via Javascript on screen changes? I've already decided - correct me if this …

  21. Started by Brock,

    Does anyone know why these rows wont delete? I've used this: http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_table_deleterow2 But the rows don't seem to be deleting? http://jsfiddle.net/re2af/189/ Anyone know why?

  22. Started by Rainieren,

    On my website at the top i got this bar and at the right i says Log in, i want a temporary alert box there but i dont know how. i dont want a button i just want clickable text. can anybody help me out? my site is rainierlaan.nl PS HTML and CSS is attached style.css index.html

  23. It's true that technology is moving forward all the time, but we're still using JS, HTML, CSS. Angular is something that is actually quite old, and I think that learning various frameworks would be worthless if the game is going to completely change after a few years, frameworks are a bit like a trend of fashion, it comes in then it goes compared to something like C++ which has been used for years and will continue to be used. Am I right to say that jQuery is something that will continue to be used when angular has died away, the frameworks IMO are worthless if they can't last for long. The only thing that won't really become outdated is HTML, CSS and JS, they do …

    • 0 replies
    • 1.8k views
  24. Started by Rainieren,

    First thing i want to say is Thank you guys for the amazing feedback that was given from my previous post. Now here is the problem, I'm a working on my website and i have this navigation menu that wont go with the rest. I cant really explain but i can show u. If u go to my site (rainierlaan.nl) you see this Navigation menu saying "home" and "Creatie's" Now if u go to the top of the page and click on the "Log in" button i need to pay attention to the navigation bar. As u can see the navigation bar stays normal while the rest is sort of grayed out. I dont know how to fix this can u guys help me out? Rainier laan ps. HTML and CSS is attached style.css index.…

  25. Hi, Im running the site Triathlonutstyr.no with the Shopkeeper theme. Im really satisfied with the theme, but I think there is to few header (layout) options. I want my header to look like something like this (the very big image) Is there a plugin or some hack to create a custom header like that? I planning to use Instantsearch (great plugin). How can I add a visible search field in the header? Thanks!

    • 2 replies
    • 3.8k views
  26. Started by rhubarblover,

    At some point, I read something about needing to put this at the top of your CSS: @-ms-viewport{ width: device-width; } Because some version of Internet Explorer couldn't use the meta viewport tag, and thus responsive design wouldn't work. Or some such. Now I can't find where I read it, or which version of IE this supposedly is, or what exactly was the problem, so I'm not actually sure whether it's true anymore. Can anyone confirm? I don't want useless code in my CSS. Thanks

  27. Hi everyone! I've been put in some deep steamy ****. I've been working for a while as the graphics guy for a marketing custom products company. We`ve established a partnership with a frame\canvas maker workshop and I've been dropped on my desk the task of making a website for them ( somehow they think I'm a do-all wizard ) . Fair enough, I already made a few websites using pre-made themes on some platforms like shopify, bigcartel, ect. But the wall that I smashed my face in violently was : Product customization. I`ve been trying to claw my brain out for the past 2 weeks trying to find any tutorials, plugin, theme, wtv that would do the job but …

    • 1 reply
    • 1.1k views
  28. Started by Rainieren,

    I'm a beginner in webdesign and i want a drop down menu. The problem is that i dont know how to make a drop down menu. I've seen tutorials on youtube but those do involve images, I just want a regular flat menu. I got a (sketch) for what i want it to look like (its attached) What menu i mean is the one that blends in with the lime green header. If you go to my site (rainierlaan.nl) you can see i do not have this menu at all. Who can help me with this menu? maybe give me some tips? Rainier laan PS. The HTML and CSS is attached. index.html style.css

  29. Started by Rainieren,

    I'm a student in college and i got this problem. I'm just begon with web design. If u go to my (early) website there is this sentence saying "Mijn naam is Rainier laan" The site is rainierlaan.nl. No matter what i try i can't get the text down. With down i mean at the bottom of the lime green area. I tried "bottom: 100px" and it doesnt work. so i though maybe change the padding would work but that's the whole green area, i only want the sentence. as i said im a beginnen and im in college so this may see dumb for some of u Can u guys please help me? Rainier laan ps. the CSS code is attached. style.css

    • 2 replies
    • 1.1k views
  30. Started by Highway7,

    Hi everyone, Does anybody know of any automated tools for testing websites once they are built? Free or paid suggestions both welcome. Thanks! DFB

    • 3 replies
    • 1.4k views
  31. Started by Paulh267,

    Hi guys, I just joined this forum So a web developer I worked with a while back mentioned something about telling search engine bots where to find content for a page but I'm having some trouble remembering what exactly it was. I have some products on my website that share the same description and I also have landing pages which have the same description. What I want to do is tell bots that these products are variations of the product described on the landing page and to NOT show them in search results. At the moment I have disallowed bots from crawling the product pages, however I need to allow them to crawl it to use the link on Google Shopping. Does anyone …

    • 2 replies
    • 1.4k views
  32. Started by embluk,

    Basically I have multiple classes called "sortable" and when they are clicked the div inside is suppose to slide out and in using slideToggle, this div has a class of "sectionDropDown" and this works. However every "sectionDropDown" div will then slide up and down each time any div with the class of "sortable". Here is my Jquery code: $(".sortable").click(function(e) { $(".sectionDropDown").slideToggle(); }); How can I only slide the sectionDropDown where the sortable div was clicked and not slide all of the sectionDropDown divs?

  33. Started by CreativeSheep,

    delete

  34. Started by Begintolearn,

    Hi All I was able to use HTML Code so someone on a smartphone could click the nimber on my website and their smartphone dials it I wanted to make that clickable number in to a button I have found a few sites that discuss the CSS code for something like this but I don't know how to add it to the html code My click to call code is <font size="4"><a href=tel:"12345678910">Click Here to Call 12345678910<a/></font> The CSS code is something like this for a button look a.pseudo_button { text-decoration: none; background-color: #F4FAFA; padding: 2px 10px; border: 1px solid #2D5082; cursor: arrow; color: #000000; font-size…

    • 4 replies
    • 1.3k views
  35. Hello, Is there anything out there that has a background attachment effect with a picture element? Due to the client requirements they want a background attachment effect but the website is being built as a cms system so we are using picture elements to improve the performance for mobile and tablet users. Has anyone come across this issue? If so what was your solution? Edit: Background attachment:fixed effect.

  36. Hello. I need some help with do sharing social icons like mashable have done. Horizontal view with + / - "icon". I don't know do I need to make this jquery or pure css? If there is some css wizards who can help me then I'm very thankful. Example: http://mashable.com/2016/01/11/ford-fordpass-app/#3K5j7Oa.jsqc

  37. Started by Brock,

    This script adds up the values of radio and checkboxes inputs and saves the total in a 'total' variable. function check_value(curElem, id){ var total = 0; var controls = document.getElementsByTagName('input'); for (var i = 0; i < controls.length; i++) { if ((controls[i].type === 'radio' || controls[i].type === 'checkbox') && controls[i].checked) total = total + parseFloat(controls[i].value) } document.getElementById("totalx").innerHTML = total; } It works fine, but now I'm trying to add whatever number is put in a certain input text box to the total. function check_value(curElem, id){ //Here's the new variable i want to add to th…

  38. Started by Sneijder,

    I'm trying to use %s as much as possible for widths and stuff.. so really I'm just asking how to make my frame 100% width and how to make the 1st video end top 100% or bottom 0% or whatever it is.. https://www.trevorsiu.com/video https://www.trevorsiu.com/frame.html So it looks the same in every resolution etc.. That's the only 2 I couldn't figure out..

    • 5 replies
    • 31.6k views
  39. Started by CreativeSheep,

    JsFiddle code validation doesn't exist anymore, unfortunately. I need to know; if line #9 is; document.getElementById("img_a").src("/path/images/duck.jpg") = mqls[0].matches or document.getElementById("img_a").src("/path/images/duck.jpg").matches Neither ?

  40. What's the easiest way to resize fonts with 2 different resolutions?

  41. Started by CreativeSheep,

    How do you process a JSON file to create something from it ? What I want to do is, export an image file from Chrome Device manager with details. I understand that JSON is an easier to read, how do you get Chrome to, if I'm right, execute a script that runs a function, console.log ?

    • 6 replies
    • 1.2k views
  42. Started by tropi333,

    Hello everyone! I'm really having difficulties with this one. Here's what i want to do, i want to create a website which allows the user to create a family tree. Like for example, i want to add my parents, my siblings, my daughter and etc. How will i do that? using PHP or jquery ? Its like the family tree maker in this link https://www.myheritage.com I hopes that you can help me guys! Thank you.

  43. Started by amisalih,

    I just started studying web design and as my very first step I enrolled on codeschool.com. I started on the HTML/CSS path and finished the first course, front end foundations. I found this course very helpful and enjoyable. I have moved on to the second course, front end formations, but it mentions many things I have never heard of before. Have I missed something? I am worried about not getting the most out of learning from code school. Those of you who used code school, did you find yourself feeling a bit lost at the beginning as well? The man keeps saying things like, "you will probably already be familiar with..." - am I supposed to be studying something else…

  44. It was only introduced to me when I was learning jQuery, I guess that most people just use jQuery to work with the DOM, I have found that nearly every javascript tutorial only talks about writing code without changing any elements on the page, even on codeschool the DOM isn't talked about on their js tutorial, but you can update the DOM... document.getElementById(); Is there a reason for this?

  45. Started by Ibo10114,

    Hi all, Don't judge plse, im still new to this. Im supposed to make a website for a travel agency (for school ofcourse), but i can't get it done right. Still stuck on the index page, heres my problem. They asked to divide the website in 3 i did it with 3x float left and adjusting the margin left. however for some reason the height gets stuck where the content stops.i'd like to fix that. Also trying to slideUp some tekst over my images using jquery. Guess im no hero in this. Can anyone help? you can find my codes here. fotogallerij.html index.html onzereizen.html reistips.html Style.css

  46. Started by James Winfield,

    Hello. I am trying to change my background to grayscale, but not the title or description on top of it. I am using Drupal as a CMS, and amending the CSS files in the directory. This is my code: .home-welcome { background-image: url(images/css-header-header-amic-main-background.jpg); -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; background-repeat: no-repeat; background-position: center center; min-height: 650px; font-family: roboto; -webkit-filter: grayscale(100%); filter: grayscale(100%); } .home-welcome .main-title { margin-top: 145px; font-size: 10em; font-family:…

  47. Started by NullDrone,

    I'm going through HTML5's new tags: ๏ Section ๏ Header ๏ Footer ๏ Aside ๏ Nav ๏ Article ๏ Main ๏ Figure/figcaption ๏ Time I understand why a developer would need to know what was the header, footer, nav and main, but I do not understand why would you need meaning for the tag, because really if you can code well without it, would it be worth learning it? The website user doesn't look at the tags, they see the content, and other tags like <strong> now means "strong importance" rather than "strong emphasis", I don't get why they would want to do this, it seems very trivial to me. Section rather than nav, groups thematically related content, but I don't see …

  48. 1st of all, Happy New Year. OK can anybody give me some direction, idea, any link to tutorial that shows how to make those fancy tile transition effects in image sliders. Here are some examples: http://jquery.malsup.com/cycle2/demo/tile.php http://demo.dev7studios.com/nivo-slider/ Thank you Edit: What I want to know is that those tile transitions... are they done purely through java script or jquery OR by animating some CSS3 properties through programming?

    • 0 replies
    • 2.3k views
  49. Hello, I would like to swap both the background color and border color of the div. at the moment it is only swapping the backrgroud color i would also like so that the border and background not the same color at one time. html: <div class="hi"></div> javascript: var colors = ['green', 'orange', 'blue']; var active = 0; setInterval(function(){ document.querySelector('.hi').style.background = colors[active]; active++; if (active == colors.length) active = 0; }, 5000); css: .hi { background: blue; /* initial color */ width:200px; height:200px; transition: background 0; /* 0s how long transition should take */ border-st…

  50. Started by CreativeSheep,

    Can someone tell me what I did wrong, why this works when you click on an image, but not on this page ? I simply copied and pasted the code as so it's identical but the CodePen version works, the other, well, not.

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.