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

    Hi guys , Anyone can recommend some useful book for advanced front end developers ? I mean some deep HTML,CSS and JavaScript preferable one for HTML/CSS and the other one for JS .... Thanks for that

    • 0 replies
    • 1.1k views
  2. Started by robert475,

    I have used a parallax script from this tutorial http://tympanus.net/codrops/2011/01/03/parallax-slider/ I have posted a fiddle here http://jsfiddle.net/rob475/ZTRAc/3/ I just need to know how I can place the buildings in the gaps. The distance between the hyperlinked buildings are varied. Is this possible to do with the script I am using? Any advice or tips would be most appreciated

    • 0 replies
    • 1.2k views
  3. Started by Archer,

    Hi guys Thanks to everyone's help on here earlier in the year i finished my website *yay* and now i'm back with more questions I'm curious about making a website that will display correctly on mobile devices and wondered if anyone had any tutorials they'd recommend? I know there are a lot of websites out there that will either turn your existing website into one suitable for mobile devices, but where's the fun in that I want to have the knowledge myself However i'm not sure what to search for on google as all i seem to be getting is page after page of sites like the stuff i mentioned. I want some tutorials lol. Hope you guys can help me thanks from Archer

    • 1 reply
    • 1.1k views
  4. Started by RAICHURAM,

    Sir, i want to include two frameworks in my applications. one framework is useful for webpage layout designs and it contains groundwork.css and groundwork.js file; another framework is useful for window themes, create the modal and modaless window and it contains easyui.css and easyui.js files i include both frameworks in my application like.. . <link href="css/groundwork.css" rel="stylesheet" type="text/css" /> <script src="js/groundwork.all.js" type="text/javascript"></script> <link href="css/easyui.css" rel="stylesheet" type="text/css" /> <script src="js/easyui.js" type="text/javascript"></script> M…

    • 0 replies
    • 1.4k views
  5. I'm using Dreamweaver to create my website, and have inserted a Spry Menu Bar on my pages. Today I created some images to use as backgrounds for the buttons on my Spry Menu Bar. The first ones were for the menu bar itself, with the headings which you hover the mouse over to view the dropdown menus. This is the default code for the menu bar: ul.MenuBarHorizontal a { display: block; cursor: pointer; background-color: #00F; padding: 0.5em 0.75em; color: #FFF; text-decoration: none; } This is what I changed the code to so that it would show the background image: ul.MenuBarHorizontal a { display: block; cursor: pointer; background-image: url(menubaritems.fw.p…

  6. Started by tintin102,

    I am trying to get the Unslider working on my latest build however I cannot seem to get it working on the server, it runs fine locally on my laptop, but once uploaded to the server I cannot see to get it working, now I thought it wasnt working on the server due to perhaps a incorrect pathway but I cannot seem to see anything wrong with it. Can anyone help? Also how do I go about making the slider strech the full width of the page? the domain to view the site www.camolab.co.uk/test Kind Regards tintin102

    • 3 replies
    • 1.7k views
  7. Hi people, Ive never designed a website for moble devices before or one that uses a full blown background image. So please go easy on me.. Anyway, I have a full background image that i want to display on my site. Its working fine on all desktop browsers however when I test it on my iphone and ipad the image is slightly broken at the top and at the bottom. here is my (at the moment) very basic css code: body { font: normal .80em arial, sans-serif; color: #DDD; background-attachment: fixed; background-color: #FFF; background-image: url(../images/back.jpg); background-repeat: no-repeat; background-position: center; } Really gratefull if anyone…

  8. I'm working on a website here and for the life of me I cannot get it to show correctly in ie compatibility mode. It's not even a small change, the main bulk of the content is gone! Can someone please help me, I've been picking at it all day and cannot for the life of me figure this one out. Website here The website is built with WordPress and based on the Twenty Thirteen theme.

  9. Started by mrludable,

    Hi all, I've been trying this for a while now but I don't have much knowledge about jQuery. What I am trying to achieve is when someone scrolls down to lets say 200px a div changed background colour, this will happen for about 8 div down the page - similar to THIS (near the bottom of that page there are different sections that 'turn on'). I kinda have this effect - LINK - but what I want to to is revert the background colour to it's original state once the next div has changed background colour. Can anyone help on this? Tbh I'm not mad about showing my code because I know it's quite disorganised at the moment, but here it is: $(window).scroll(func…

  10. Started by mrludable,

    Hi all, Just have a question about this site - LINK In the intro section <section class="intro"> It looks like the height is always the height of the monitor screen (they have a min-height of 400px specified). I was looking at the CSS and saw this: .home .intro { -moz-box-sizing: border-box; height: 100%; } Is this how they have created this effect? I thought it would have been some Javascript or something? Cheers, Al.

    • 3 replies
    • 890 views
  11. Started by mrludable,

    Hi all, Just have a question about this site - LINK In the intro section <section class="intro"> It looks like the height is always the height of the monitor screen (they have a min-height of 400px specified). I was looking at the CSS and saw this: .home .intro { -moz-box-sizing: border-box; height: 100%; } Is this how they have created this effect? I thought it would have been some Javascript or something? Cheers, Al.

  12. I need That Style FB linke box Code Plz Expert Enterfacebook, likebox, image attach blew its look like right corner a facebook like bow will be visible and user can be turn off it SOrry for my bad eng plz give me solusion will be hart full br. jewel

    • 0 replies
    • 3.7k views
  13. I have made a Javascript slideshow using the files here: http://msdn.microsoft.com/en-us/library/hh920769(v=vs.85).aspx It works in IE9/Chrome/Safari/Firefox, etc, but does not work in IE9 with compatibility mode on. It just jumps straight to the last image and stays there. Can anyone please recommend what I can do to get it working?

  14. Started by NiBi18,

    Hello guys , I have an issue with iPhone and javascript onchange, onblur events ... I made on my website select/option menu which is supposed to run javascript function after choosing an option. So onclick and onfocus events fires too early , onblur onchange doesn't fires. I found out it's issue of iphones using ios 5 and higher. Does anybody have idea how to solve this ? Thanks a lot in advance .

    • 1 reply
    • 877 views
  15. Started by CreativeSheep,

    I'm having an issue with my blog, the problem is to the right, the words overlap. It should be a simple jQuery issue, updating from jQuery 1.4.2 to jQuery 1.10.2. In the DOM jQuery 1.10.2 is loading, why is this problem persisting ?

    • 3 replies
    • 893 views
  16. Hi, Adobe Flash vs jQuery : Which is better for me?

    • 3 replies
    • 1.3k views
  17. Hi all, I want to add í to an infowindow in Google Maps. If I add í it displays like that in the browser? This is my code for the infowindow: var infowindow = new google.maps.InfoWindow({ content: '<div id="infowindow"><h2>HEADING2</h2><p>TEXT,<br /> TEXT,<br /> TEXT,<br /> TEXT,<br />Tel: <br /><a href="#"></a></p></div>', Cheers, Al.

  18. Started by mrludable,

    Hi all, My question is, would it be possible to have music - a song, playing constantly while someone browses through different pages of a website? It's something I've never thought about but someone had asked me and I have no idea. Cheers, Al.

  19. Started by Flowdy,

    I'm really confused. I've never had this problem before. I'm making a site for a friend. As i design i preview as i go as everyone does, however this time the links are not working. I'm using the same code and never had this problem before. Now i'm really confused. All i want to do is preview them. /* GENERAL */ a {text-decoration:none;} a:link {color:#FFFFFF;} /* unvisited link */ a:visited {color:#FFFFFF;} /* visited link */ a:hover {color:#878C6D;} /* mouse over link */ a:active {color:#FFFFFF;} /* selected link */ /* HEADER */ #headerwrap {height:150px;} header {height:150px;} #logo {width:918px; height:146px; background-image:url(images/logo-tr…

    • 3 replies
    • 886 views
  20. Hi folks I am trying to get the latest website of mine up and running,however I am having a small problem trying to get it working I am using boostrap v3.0 I have a simple imageas the background, I am wanting it to be a full page, and I have decided to make it responsive using the boostrap css class responsive image. Now for some reason no matter what I do the the picture never seems to display correctly, there is always a scroll bar on the right hand side, in order to view the whole image you need to scroll down. I am using the image size of 1366x768, Can anyone suggest any fixes as I cant seem to get my head around this. the domain is www.kaynescooters.c…

  21. Started by lozenges,

    Hi guys, I'm trying to get to grips with the twenty thirteen theme for wordpress and moving the nav to a vertical position. I think along the lines I've balled something up and now when you shrink the page the main body of the site does not move with the header. Any ideas on how to fix this? Link to site is here.

  22. Hey guys, I've got a little thing here for you pros. HTML: <html> <head> <title>Untitled Document</title> </head> <body> <div id="container"> <div id="bluebox">ON</div> <div id="redbox">ON</div> <div class="clr"></div> </div> </body> </html> CSS: body { background-color:#eee; font-family:Arial, Helvetica, sans-serif; font-size:20px; } #container { width:320px; background-color:#fff; margin:20px auto; padding:40px; line-height:50px; text-align:center; font-weight:bold; } #container:hover { background-color:#FC3; } #bluebox …

  23. Started by mantis,

    I have a form on a site that I am working on that needs to post (php) a day, a month, and a year. On the old site this was done in form of select menus but I would much rather use an html5 date input box or a jquery-ui datepicker. This is what I'm trying to convert: http://jsfiddle.net/#&togetherjs=8raaw5a4xz Into: http://jsfiddle.net/#&togetherjs=tGLsw63Fbz PS. There seems to be a new beta collaboration thingy on jsfiddle. I'm not really sure how it works. PPS. I probably don't need to support netscape or ie 4 like in the original

  24. Hello I am having a major debate with myself about when is appropriate to use the section and article tags with your document. After searching the web for hours I have found that it is not just me that is confused, most people even after reading the specification do not really know when exactly to use these tags. I'll give you an example of my webpage and a part of it where I think i could use the section and article tags and you can tell me whether or not you think it is appropriate. On my home page I have a section which is titled "recent work" and it has the 3 most current projects that I've been working on, now I personally think that the code could be…

  25. Started by snappy,

    This will seem so simple to seasoned developers, I hope. I've been out of the game for a long time and just building a site for a friend. She wants a horizontal menu with four items. Three of the items are simple links to new pages, the third has a dropdown list of sub-menu items that appear on rollover. Is this possible? I've found plenty of jQuery menus but not one that allows what I am looking for. Can anyone help? thanks

  26. Hi, I have been working with HTML and CSS for a long time now but I am a newbie in HTML5 and mobile devices. I want to know the following before starting a project: 1. Is it possible to create an HTML5 application that: a. detects the type mobile device and loads specific layout/functionality according to that? b. stores data (maybe through xml or in a database? what language can I use for that? php?) c. works offline as well - but where does it store the data during this? How does it sync when it gets connected d. provides drag and drop features on a touch device 2. If it is possible, what is the level of difficulty? 3. Are there any specific mobile platforms you wou…

    • 4 replies
    • 4.2k views
  27. I have this css as follows: root { display: block; } * {margin:0; padding:0;} body { font-size: 62.4%; font-family: "verdana", "Lucida Sans Unicode", "Lucida Sans", Helvetica, Arial, sans-serif; color:#000; background-color: #FAFAFA; } #container{ width:100%; margin:0 0 10px 0; padding:0;} * html #container{ height:1%;} #content{ float: left; width: 730px; margin:0 10px 0 15px; border-right: 1px solid #98FB98; } /*padding:0 10px 20px 0;}*/ #content h1{ margin:10px 5px 10px 5px; display: block; margin-left: 130px; color:#790301; font-size:28px; font-family: "Lucida Grande", "Lucida…

  28. I folks, i just started to build my first RWD site with skeleton framework. On my index page i have just navigation and under it 4 column structure using skeletons "four columns class". Now for some reason my columns breaks down in tablet size when i resize browser..(last column on right drops down)..everyting else work well. here's my html: <div class="container"> <header><!-- Header osuus --> <div class="four columns"> <a href="http://www.nhl.com"><img src="images/logo.png" width="220" height="33" class="scale-with-grid" style="margin-top: 119px;"></a></div> <!-- Navikaatio …

    • 1 reply
    • 4.2k views
  29. Started by Meh,

    Hi there, I found this script for validating forms with Javascript and PHP. http://livevalidationphp.leihitu.nl/index.php?page=home It all works perfectly fine, apart from the fact I cannot see where to actually send the information in the form... Here's a basic example of a working form: <?php include("livevalidationphp.class.php"); // the LiveValidationPHP scripts include("rules.inc.php"); // hold the rules $html=""; $frmTestLive=new LiveValidationMassValidatePHP("frmTestLive",$_POST); $frmTestLive->addRules($formRules["frmTestLive"]); $html=$frmTestLive->generateAll(); // check for a post action $frmTestErrors=array(); …

    • 3 replies
    • 880 views
  30. Started by neil0wen,

    Hi I'm using this Tab slider from this site: http://www.gayadesign.com/scripts/tabbed/ But I'm wondering if I change change the position of where the tab menu starts. To see more of the code you can see it here: http://www.gayadesign.com/diy/animated-tabbed-content-with-jquery/ I would really appreciate any help with this. Thank you Neil

  31. Started by Charly,

    I am working on a site that I did not personally build. I have noticed in Firefox only that there are grey lines that 100% width and shouldn't be displaying where they currently are. I have tried using the inspector tool like I normally would but I cannot see where they are coming from. Can anyone help me? http://www.therobbrown.com/ Thanks in advance :-)

    • 2 replies
    • 885 views
  32. Hi all, I have literally just started to read up about CSS on w3schools but need some help with an immediate problem. I've spent a good few hours trying to sort it myself but without luck i'm afraid :-( I have just set up a Wordpress site (2011 format) and have signed up to an affiliate program that provides a javascript search form for the site. I have inserted the javascript into the body of the page but have no idea how to position the form top, right of the page body with some spacing above and to the left and right of the search box. Do i have to give the javascript <script type='text/javascript' src='http://www.hotelscombined.com/SearchBox/136749'>…

  33. Hi all, Ok, I'm not too sure how to ask this question or explain it but I'll give it a go. I'm creating a new site, on the home page there are 4 links that bring the user to a section (div, or in this case a h2 with an id) on another page. But the thing is, I have a menu that has a fixed position, so when scrolling down the page it will stay in the same position. So, when one of the links on the home page is clicked, the user is brought to the page and the h2 with the id (and some of the content) is behind the menu, if you know what I mean. Is there a way I can position the h2 and content below the top of the page (90px is the height of the menu, so 90px b…

  34. Hello everyone, I need a little help here... I'm a designer, althugh I haven't done much web design lately I am looking to get into the development side of things. I have been looking into things and everyone says to learn HTML/CSS and PHP, I know that I want to start learning PHP but first I need to have a little question of mine answered. What is the difference between HTML and HTML5. Why would you use one over the other? I have seen some really interesting things done with HTML5 and I am trying to figure out where I should start learning, I will be mostly taking my designs and coding them into functioning sites. There is a nother thing that relates to t…

  35. Hello, I am working on my new website, and I have a large HTML5 video that I want to run once, then loop the last 0.5 (roughly!) seconds (or the last few frames basically). I have tried using "currentFrame" and then ".play()" to control the video, but there is a 1 second delay before the video is played again - ideally I want this seemless. I could use 2 <video> tags and overlay them, then just hide/show them when the first one is finished, but surely there has to be a cleaner way of doing this? Anyone have any ideas? Many thanks James

  36. Started by adamsmith,

    How is developing a program using Javascript and LUA done? I know this is a vague question and what I'm trying to get at is that in the web domain, Javascript is used inside HTML, not as a standalone language. Can a program be created using just JS and LUA or will there need to be another program/language that contains the JS and LUA code or would the files simply be saved as .js/.lua and be able to run? I know that another language is used to style the program, but ignoring that I need to know how a program can be written using these two languages and if there are any tutorials I can look at, everything I find for JS is all web related.

  37. Started by teddybear,

    Hi I´m having a bit of problem with accordions in jquery ui. I don´t want it to show the scrollbar and tried many things to hide it. Anyone having the same issue? Test page with accordion: http://atacgaming.com/modules/articles/? Thanks /tb

  38. I am a newbie in HTML5 and geolocation. I want to know the following before starting a project: Is it possible to create an HTML5 application that: a. allows a user to mark a location on a map (e.g. google maps) from a mobile device b. allows a user to enter more information (text & images) per mark c. this map with the marked location appears as shared for other users d. other users can submit their marks as well e. marks need to be verified by an admin before appearing on shared map If it is possible, can you please indicate the level of difficulty for this? Are there any resources, tutorials, APIs that can help me towards this direction? Thanks, Kadjia

    • 0 replies
    • 1.1k views
  39. Started by eiDare,

    hi, I want to make a vertical navbar without using the <li> tag. why? cause the less I have to wright the happier i'll be my issue: i've made the divbar using "display:block", but now I can click the link over the whole width of my page. and I only want the text to be clickable, not the rest. hope you guys can help! thanks already

  40. Started by Mephestic,

    I have a n00b question if i may! Im keen to understand some aspects of this website if anyone may be able to answer my questions on it: www.500px.com Its a photography website that users contribute photography for and its something I have an interest in. I was wondering what this website was created using? Also how difficult would you say it would be to design a website like that where I can have people upload digital photography? It has the ability for users to create their own account and upload photography which others could then purchase through transactions and comment on as well as rate. Im wondering if this website would be particularly difficul…

  41. Started by mrludable,

    Hi all, Just a quick question, when using a separate style sheet for IE, does it need to contain all the CSS from the original file or just the updated CSS for IE? (eg - if the normal CSS file contains 2000lines will those 2000lines need to be in the separate IE CSS file) - I'm going to guess with no. Cheers, Al.

  42. Hi all, Please help me with my jquery Project about sales invoice. Since im a newbie in jquery im having a hard time on it. My problem is im stuck on updating Total price on keyup of item quantity id. My first row field is succesful but when i try to add another row for item quanity, price,name etc., on keyup of itemQty of the next row my total price wont update and so on when newly row added. sorry for my bad english. hope you can help me with my project and will enlighten my skills. This is my Java Script: $(document).ready(function(){ $("#itemQty").keyup(function(){ sumValues(); }).keyup(); function sumValues() { to…

  43. Hi guys I have a few js codes on my .php page and I'm trying to move it to a separate file and then address this file (<script type="text/javascript" src="file.js"). but there is a php code in this js code and .js files don't run php code. because php codes are rendered before js/html is there anyway to move these vairables to js file? thanks

  44. Hey all! Just wondering what I'm doing wrong here (it's probably everything, my javascript knowledge isn't that great). I'm trying to have it so that if one variable = x and another variable = y, then a third variables value will be changed to k. This is what I have right now: var abc = parseFloat($("#abctextinput").val()); var xyz = parseFloat($("#xyztextinput").val()); var qrs = 0; ... ... ... if (abc == 123 && xyz == 789) { qrs = 456 } The variable qrs would then be used later on in the script.

  45. Started by pippin62,

    Hi, Is there a way to trigger the meta viewport tag based on the viewport width? Something like: if viewport (or client width?) > 500 <meta name="viewport" content="initial-scale=1"> What I'm aiming to do is set the scaling to 1 for mobile devices only. Maybe there's another way to do it. Thanks for your help!

  46. Started by williamberq,

    Hi Friends, I want learn HTML and CSS, any one help me

  47. Started by rahmanamer,

    Hey, I'm using this script to search my website. At the moment all the results open in a window. How do I get it to appear as a list on the same page within the website? What's the easiest and quickest way of achieving this? Any help is appreciated!! Thanks. <script type="text/javascript"> // Google Internal Site Search script- By JavaScriptKit.com (http://www.javascriptkit.com) // For this and over 400+ free scripts, visit JavaScript Kit- http://www.javascriptkit.com/ // This notice must stay intact for use //Enter domain of site to search. var domainroot="" function Gsitesearch(curobj){ curobj.q.value="site:"+domainroot+" "+curob…

  48. Hi Gang, Hit a real snag with the width of google.maps.InfoWindow and it's inconsistency of appearance. In IE and FireFox some of the html content decides to have vertical scrolls yet others (often with more content) do. It appears to make no difference how many pins, length of data, which order the array is in, whether I use div, p or a ul the only consistency appears to be the inconsistency. Screens attached (top IE 10, bottom FF). Has anyone else seen / had this problem? Edit: Forgot to say works fine in Chrome.

    • 8 replies
    • 5.1k views
  49. Hi everyone. I have a really strange problem that I just can't figure out. I have already posted this question elsewhere, but I think I need to turn to the expertise of this forum to get it solved once and for all. The problem concerns the navigation on the following site: http://stickerstack.co.uk As you can see, I have (li a) elements in the nav menu set to change background color on hover. Everything works perfectly where I have tested it so far (Mac - Opera, Chrome, Firefox; and Windows - Chrome, Firefox). However, in Safari (on Mac (and maybe windows - didn't test)) there is a strange lagging effect where the background sometimes either doesn't change, or…

  50. Started by mccloud,

    Hey guys, I tried to figure this out by myself, but I wasn't successful. Basically, what I want to do, is replace a submit button/image when I hover over it. Looks like this: And I need to replace it with a slightly different image: This is the CSS: #submit{ position: relative; left: 140px; bottom: 10px; z-index:1; } #submit:hover{ position: absolute; z-index:2; width: 96px; height: 29px; top: 435px; left: 1110px; background-image: url('../images/submit-hover.png') no-repeat; I messed with everything, but didn't work. And I guess this is a pretty common thing in webdesign so I want to learn this technique. Do you have any ide…

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.