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

    I have had this problem before, I develop my sites in Firefox and then adapt to look right cross browsers, and this time I am having a problem with my 1000px width wrapper centering in IE. Looks fine in FF and Opera, so created ie.css and added an if IE conditional tag, put an extra wrapper round all content and in ie.css i added #iefix {text-align: center;} and then put text-align left on my inner wrapper. This isnt ideal but has worked in the past, not this time! I have also once has this problem because of my Doctype but i am using the same Doctype I have used alot recently: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/D…

  2. HI all, I have to make a small social networking site for a group of people. I'm thinking about downloading a website template and modifying it with Dreamweaver. I need some website from where I can download those templates. Any form of suggestions, advices, or any help will be much appreciated. Thanks Regards,

    • 4 replies
    • 911 views
  3. Guest 4li4s
    Started by Guest 4li4s,

    This a simple one really. All the stuff I do is responsive and despite the issues involved, I don't usually have problems with images other than the occasional 'serve scaled images' to improve the speed. The little gripe I have at the moment is when I do testing on numerous platforms, I continually have recommendations to set height and width attributes within the markup. I have done this, but it doesn't have much of an effect. The sites load up relatively well and the images resize accordingly, but the perfectionist in me wants to ensure everything is running smoothly and effectively (I made another post along the same lines about validation a minute ago). A bog stan…

    • 2 replies
    • 878 views
  4. Started by egtrev,

    I'm looking to build a basic HTML/CSS website for a local Siteseeing Tour, I will be having one morning and one afternoon tour, 7 days a week. I am wanting to using Paypal Checkout for customers to buy a ticket online, I have used this in the past and it works fine for my needs. What I want to have on the ticket page is a small availabilty checker so users can check if that date is still available before buying a ticket. I basically want a drop down calendar (So the date can be selected) and a dropdown box with selections AM or PM, then a button called "Check Availability" Then the selected date needs to be checked against some sort of simple self maintained …

  5. Started by ZaLiTH,

    So, this is a bit of a two-part post... On the one hand, this could serve as a "don't do this! ever!" sort of message, and also I think I might need to rant... Just a little bit. First things first, I've blurred the identifying comment at the top of the sheet (I do have some decency), but take note of a few things in this screenshot first: For those of you who don't know Sublime, the sidebar on the right is a thumbnail scrollbar that in this case is showing about three quarters of the document. All the little light blocks in that scrollbar are matches for the '!important' rule I have selected on line 16. This particular document is imported at the core of a …

    • 5 replies
    • 1.4k views
  6. I have the autocomplete working and getting values from mysql but am wondering if there is a way of inserting the selected row data into more than 1 textbox. At the moment, the value of the selected autocomplete data only goes into that 1 textbox. I have read the autocomplete ui wiki but am unable to find anything to suggest you can do this. Any help (As always) much appreciated.

  7. Started by unknownmale,

    I've made this, but it has an awful flicker when you mouseover...I'm sure there is a simple fix, but I can't figure it out. Any help would be great. http:// jsfiddle .net/NKC2j/494/

  8. Started by unknownmale,

    I have a menu bar which I'm fixing to the top of the screen when the user scrolls. This feature is part of a responsive design so I need the bar to react according to the screen being resized. I want the bar to animate 'top', '40px' when the screen size is less that 960px...Can anyone help me out? The top part of the code (Reacting to the user scrolling) is working fine. $(function() { var bar = $('#menu'); var top = bar.css('top'); $(window).scroll(function() { if($(this).scrollTop() > 5) { bar.stop().animate({'top' : '0px'}, 200); …

  9. Started by ramo55,

    i have a contact form, i downloaded it from the internet, what i want to do is instead of having the input fields, such as name, address, email etc.... i want the user to click on images, heres what i mean: the user goes to the contact us page, he will be displayed with the contact us form, the form will have 4 images, and he will choose one, once he has chosen one, the form, will do a transition effect, and take the user onto the next step (the transition effect is already in the form and working) the next step will probably be a field which will allow the user to write in it, and then finally after the user presses next, they will be taken to the final step…

    • 2 replies
    • 882 views
  10. Started by dpuk44,

    Im trying to change the image on the select drop down box. I have 3 items to display which are stored in my img folder. Is there a simple clean way to do this as all tutorials I have found for this are either poor or really old. <select name="os0" onChange=""> <option value="Black">Black </option> <option value="Blue">Blue </option> <option value="Red">Red </option> </select>

  11. I have attempted to create a fluid grid layout following the article by Ethan Marcotte on Fluid Grids (http://alistapart.com/article/fluidgrids). However, the simple 4 column grid I have created displays an unwanted 'space' to the right. This is not evident in Firefox or Chrome. But is evident in Safari and more so on the iPad in Safari and Chrome. In JS Fiddle and CodePen it is again not visible. Can anyone suggest why such simple code for 4 column fluid grid is not displaying correctly? Live test site: http://www.jailbirds.co.uk/ JS Fiddle: http://jsfiddle.net/BibCra/6AwkN/2/ CodePen: http://codepen.io/BibCra/pen/bvrsK Thanks.

    • 6 replies
    • 884 views
  12. Started by champ,

    I'm not sure if I am posting this in correct thread but does anyone know of any good tutorials on div tags? When I say good I mean one that explains the logic and usage of a div tag.

  13. Started by active-worker,

    Please see the attached file "practical_project01". You find all codes there. For you kind information, if I want to large or small this page "Vector Design" goes out of the actual body of the page. What should I do? Thanks. practical_project01.zip

    • 3 replies
    • 877 views
  14. Hi, I'm hoping someone can help. I'm trying to locate some code that allows a full screen HTML5 video to stream on a page, with a fallback (e.g. flash) in place for non-HTML browsers. I'm looking for something very similar to what is shown on the homepage of http://www.alpha.org/ Can anyone recommend any good scripts out there for this please?

    • 2 replies
    • 843 views
  15. Started by dpuk44,

    I have 3 div's on a page that each relate to a hyperlink. Each page is a different height and I want the body to reduce size in relation to the div. Here is the pagehttp://www.purewarrior.co.uk and the code is HTML <?php //require ('../includes/connect_db_pw.php'); ?> <!DOCTYPE html> <html> <head> <title>PW</title> <link rel="stylesheet" type="text/css" href="style/style.css"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <!-- Include Facebox CSS and script files --> <link rel="stylesheet" type="text/css" href="facebox/facebox.css" /> <script type="text/j…

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

    CSS 3 info: http://www.css3.info/ CSS 3 gradient generator: http://www.colorzilla.com/gradient-editor/ Layer styles to CSS : http://www.layerstyles.org/ Another CSS 3 generator - border-radius, box-shadows, transform, transitions, etc: http://css3generator.com/ Image to CSS (if anyone will ever need it): http://codepen.io/blazeeboy/pen/bCaLE Font-face kits: http://www.fontsquirrel.com/ Icon fonts: http://css-tricks.com/flat-icons-icon-fonts/ Will love to see what you have to add to the list

  17. I'm not sure this question belongs here, I can't see a better place though so hopefully someone here can help me? I am in the process of building a mobile website that I intend to turn into an app using PhoneGap (or a similar service). I came across Socialize as a 'one stop shop' solution for connecting native apps to various social media sites and allowing users to share/tweet etc about their use of the app. Does anyone know of any similar solutions that I would be able to drop into a 'web-site based app' that would have the same level of automation with facebook, twitter etc? Socialize doesn't yet appear to have a HTML5 option and I'd rather not build something…

  18. I have two div tags, and this is the code for them: #menu { width: 1000px; height: 34.4px; background-color: #00F; } #youarehere { width: 1000px; height: auto; background-color: #FFF; color: #333; } I want to change the height of the #menu div tag to auto. But when I do this, the #youarehere div tag doesn't display directly below the #menu div tag. It displays directly below the #menu div tag when the height is set to how it is now, but not when I change the height to auto. Instead it just appears next to my menu bar in the #menu div tag (there is a space between where the menu bar ends, and where the end of the div tag is) rather than appearing below it. …

  19. Started by David Cook,

    anyone have any idea why my slider wouldnt work, everything is correctly place including js but nothing

  20. Started by dpuk44,

    Simple issues I cant resolve. All I want to do is add a margin of approx 20px from the sections above. Any ideas. <!DOCTYPE html> <html lang="en"> <head> <title>Welcome to Malro Baltic</title> <meta charset="UTF-8"> <link rel="stylesheet" href="css/style.css"> <link rel="stylesheet" href="css/picture-slides.css"> <link href='http://fonts.googleapis.com/css?family=Economica:400,700' rel='stylesheet' type='text/css'> <script type="text/javascript" src="js/jquery.min.js"></script> <script type="text/javascript" src="js/PictureSlides-jquery-2.0.js"></script> <script type="text/javascript"&g…

    • 11 replies
    • 1.1k views
  21. Started by Stuey,

    Hello, me again. What I want to know is if it is possible to position one word in a ul li. I can sort the margin for the other words but I just want to centre the Products. Cheers Stuey

  22. Started by David Cook,

    Anyone know why a page wont fully load from local source. my portfolio page wont load gets bout half way through the loading bar then hangs if chrome it comes up saying killing page or wait. i have tried everything, the setup is the same as main site, so dont know why it would not work thanks

    • 2 replies
    • 871 views
  23. I have inserted a Spry Menu Bar using Dreamweaver CS6, and created a CSS rule to apply a certain style to a menu bar item when you are on that page (for example: when you are on the home page, the Home button style is slightly different to the one used for the home button when you are not on the home page). When I view the page in Internet Explorer the height is just right, but when I view it in Firefox it is slightly smaller (by maybe 1 or 2 pixels). It may not seem like much, but it makes it look out of place. So why is the height of this item smaller in Firefox than it is in Internet Explorer? Thank you for any help. --Merged-- This is the CSS code I have written:…

  24. Started by webDesignerJon,

    Hi all I'm just looking to pick peoples brains about the compatibility of Html5 <video> or in some cases the lack thereof. I've been following a tutorial series about Html and spent all day scratching my head as to why the mp4 wouldn't work on my Chrome browser. Then I found out that, for whatever reason Chrome dropped support for the mp4 format. But neither would it work for Ogg or webm files, and it needed a quick workaround and a bit of painstaking research from myself to get any video to work. So... I guess my question to you all is, what's the game with Html5 video element? Jon

  25. I have just launched the new responsive website I've been working on. Thank you all for all your help, it would've been A LOT harder without your guidance, and I really appreciate all the help you've given me. Unfortunately there is now an issue, and its quite major as the drop downs in IE are displaying on two lines. This means that on many monitors they are dropping off the bottom of the screen. Is there a way to force IE to display this on one line? It seems to want to display the width of the drop downs as the same width as the title of each drop down section. http://www.mason-uk.co.uk This is quite urgent as the new site has now been launched. Tha…

    • 2 replies
    • 1.7k views
  26. Started by Charly,

    Hi, Can someone check http://agirlhastoeat.com/ in IE versions for me please? I am checking the sidebar with the category list in. It should be displaying with a line under each category and have an indent when you expand a category. My client says it isnt viewing correctly in IE but I have checked all versions on my computer and there's no problems. just need some others to check for me please

  27. Started by pixelcoder,

    I'm assessing how quick I am here at translating a design from PSD to HTML and wondering how quick everyone here can be. Using GetSkeleton and LESS I typically write the markup then any CSS required. I will then go and grab a sprite of all the images and sample some for things like sliders. Finally any jQuery will be hooked up and cross browser debugging will be completed. Today, I've spent a couple of hours so far and have only written the markup so far. Granted this depends on the complexity of the PSD, but a general guide would be helpful. Thanks

  28. I can't get the css menu between the centre of the banner and container. I left my wee notebook (problems and solutions i had in the past) at work but i am not due back in till next Monday. Could someone spare a few mins to figure this out for me please. HTML: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="viewport" content="width=670, initial-scale=0.45, minimum-scale=0.45"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="keywords" content="St. Mary's, Whifflet, …

    • 2 replies
    • 891 views
  29. Started by David Cook,

    I am using a hr bar to under each section however on the one above and below my work they seem to be indented and i dnt know why as if its doing it to them then it should do it to the my services one link is http://tinyurl.com/caqdrye

  30. Started by AndyDesigns,

    Hi all, This is my first attempt at making a website responsive/mobile-friendly. I think the layout works ok but I keep getting this horizontal scrolling when viewing the site on mobile browsers. I tried centering the content using margin: 0 auto; but that just creates even more horizontal scrolling. Any help with this issue and any other aspects of the mobile design/code would be much appreciated, see below for link: http://www.agtdesigns.co.uk/portfolio%20sites/organicfoods/ tia, Andy

  31. Hi, i am working on a site for my friend, who is an architect. And he wants one slideshow for photos of his buildings, and one for the drawings for the building I thought that i could make å tab system for this, so have one tab with Photo-Slideshow, and one with Drawings-slideshow, but i can´t find out how really. So do any one have any idea how to make something like this? Il made some photos showing it, just an example. sort off, just remember that the photo in the tab have to be sort of a slide show. So i guess the real task is how to but a slidshow in a tab? Thanks if any help, i guess it was a bit complicated.

  32. I have created a Spry Menu Bar using Adobe Dreamweaver CS6, and I want to set it up so that the colour of each button is different when you are on that page. For example, when you are on the home page the "Home" button is a light blue, but when you are not on the home page the "Home" button is a dark blue. Is this possible, and how can I do it? Thank you for any help.

    • 2 replies
    • 1.8k views
  33. Started by Kofl,

    Hello, for a friend of mine I am trouleshooting an existing layout. The last bug is really nasty. The 960s layout works fine, but if the browsers needs to scroll vertically the content jumps to the left: Fine: http://wechsellandcup.devcon.cc/Regionale.131.0.html Bad: http://wechsellandcup.devcon.cc/News.55.0.html I already tried to debug with Firebug and Web Developer tools for hours but had no luck. Any advice is really welcome, Thanks, Thomas

  34. I want to create a layout using div tags, to the design described below. A div tag named "header" at the top, with a width of 1000px and an auto height A div tag named "menu" directly below the "header" div, with a width of 1000px and an auto height A div tag named "you are here" directly below the "menu" div, with a width of 1000px and an auto height A div tag named "text" directly below the "menu" div, with a width of 800px and an auto height A div tag named "images" to the right of the "text" div, with a width of 200px and an auto height A div tag named "footer" directly below the "text" and "images" divs, with a width of 1000px and an auto height The part I'm…

  35. Sorry if this is a silly question but this goes beyond my ability and I really need help. I have created a site for someone but it is done through EKM Powershop. Now it turns out that one of the catagories in the shop requires password protecting. Simple you say.... well not really, my customers online shop is used by members within his group who have P.C's with Javascript disabled and because the shop is created using EKM we do not have access to the server to upload an access file. Is there any other simple script I can use to create a login that does not use java? It doesn't have to be massivly secure and my friend is not concerned about the password being visable wit…

  36. <div id="nav"> <ul> <li id="selected"><a href="#"><dfn title="nav1">button 1</dfn></a></li> <li><a href="#"><dfn title="nav2">button 2</dfn></a></li> <li><a href="#"><dfn title="nav3">button 3</dfn></a></li> <li><a href="#"><dfn title="nav4">button 4</dfn></a></li> </ul> </div> I want to change the text color of the <a> tag that is inside the "selected" <li> tag which is inside the "nav" <div> tag the default color of the text of the <a> tag is #nav li a…

  37. The problem is, I have set the height of this div tag to auto, using CSS. But when I view the page in the web browser, the background doesn't fill the entire div tag. It does expand as the div tag expands, but there is a small section at the bottom of the div tag where there is no background, so the background colour doesn't fill the div tag entirely. This is the CSS code I have for this div tag. #textnoimage { position: relative; width: 995px; height: auto; overflow: visible; float: top; top: 0px; left: 0px; min-height: 100px; background-color: #FFF; padding-left: 5px; color: #000; } Could someone tell me what I need to do to fix this please? Thank you for…

  38. Hi All, Still working on this responsive website. Strange request this time, but I have a picture enlarge on my website, so if a visitor clicks any image (pretty much) it should enlarge up to about 600px wide by 450px high. I use a Javascript code that I found called Tinybox.js Now this is fine on most PC monitors, but obviously not ok for tablets or phones as the image goes off the screen (and takes up most the screen too!). The javascript is linked from the html (although there is a couple of CSS styles in my stylesheet for it too), is there a way I can turn this off for the lower res's? Can media queries be used to effect anything other than CSS? Is ther…

  39. Is there any way to have a background image go across the whole site in wordpress twenty twelve theme, including main content and menu? Perhaps setting some kind of transparency with css, or cancelling color rules? www dot robinandrews dot comze dot com Kind regards, Robin.

    • 1 reply
    • 874 views
  40. Hi All, Thanks so much for your help, its really been a massive help with my first responsive website. But now I have yet another question. Down one side of my website (on larger res's) I have a grey 'News' bar, and above this bar on the product pages there is also a 'Datasheets & Installation Photos' bar. This looks fine on 800px + But down on mobile phone/tablet sizes the 'News' and the 'Datasheets/Installation Photos' drop down below the bottom of the page. This is fine and I want the 'News' bit where it is, but with the 'Datasheets/Installation Photos' I want it to appear above the 'Related Products' (in the blue boxes) directly above. So the order mo…

    • 0 replies
    • 4.7k views
  41. Started by cbobo,

    Hi You have to forgive me i'm quite new to this. I cannot seem to centre my site I created its always stuck to the left edge. I chose 960px wide by 1440px high, im using corel draw x6, coffee cup editor or i can edit on goddaddy. Any help would be greatfully accepted

  42. Guest
    Started by Guest,

    Hi, I'm having an issue with an H2 element not listening to my width command, I know the solution is probably really simple but my mind is slowly melting today! Here is the code I'm using: #wpss_survey h2{ font-family: 'Exo', sans-serif; font-size:24px; color:#fff; font-weight:bold; width:575px !important; background-image:url(images/awards-h2-png); background-color:transparent !important; height:40px; padding:0px; margin:0; display:inline-block; } Any and all help will be appreciated! Cheers!

  43. Hi Guys, Having a problem with the footer on my website's category pages: http://www.bucketwarehouse.com/excavator-tilt-buckets-42-c.asp I have copied the footer of my website by using it's css and html, and replaced what goes in it with my websites navigation element - I've then placed this below my list of products. However, in doing so it has now messed up my website's actual footer on all the category pages (but not the res of the site as you will see). It's obviously something I've done but I can't see using firebug any element or code that is causing the footer to act behavely on the category pages?? Any help appreciated Hugo

  44. Hello All Question 1: Really frustrating this one as I feel that I should be able to solve this as its a bit of newbie prob, but I've tried messing about with the clear:both and content: " "; and I can't seem to effect a change. Essentially the problem is that one of my paragraphs of text jumps up overlapping another paragraph of text. I cannot set these paragraphs to fixed sizes cos they pull the info from a database and also because the website is responsive/elastic. Its the first and second paragraphs of body text on this page: http://www.mason-uk.co.uk/responsive/html5boilerplate5-contactpage.asp Question 2: Also it would be cool if the bolde…

  45. Started by jpwd,

    A site I'm working on is beyond saving in IE7, so I'm going to drop support for it. However as it is most of the content isn't even visible, so I was wondering if you can just turn the stylesheets off and let it run just from the HTML. I'm pretty sure css-tricks.com does this in IE7.

  46. Hope the question is not too stupid but I’m a bit confused. The one thing I know for sure about OOP is that everyone tells me it’s the way to go. But what’s the definition on OOP. I’ve heard people say that OOP is when you e.g. include a PHP script or link to a JavaScript that handle a certain task with predefined functions and you feed those functions with vars and use them when needed. But wouldn’t that be modular programming since we’re including modules of code? Another definition I’ve seen a lot is that when you use classes with various properties then its OOP. Hope someone can help me.

  47. Guest
    Started by Guest,

    Hey, I've been asked by a client to create a mini-site for awards voting. I've done forms before but I want to create somethings classy, something using jQuery (To which I have very limited knowledge)... My idea is to ask the user to vote on a category and as soon as they vote it loads the next category with a progress bar above, ideally I want to utilise CSS3, jQuery and/or HTML5 but I simply have no idea where to start! I usually just create and build Wordpress sites but I really want to extend my knowledge of these technologies so if anyone could lend a hand and/or point me in the right direction that would be awesome. Many thanks in advance!

    • 0 replies
    • 1.4k views
  48. Started by PenguinMedia,

    Hey! This is a bit of a strange one as i've never actually had this problem. (Sorry mods for linking but its an issue I need to solve!) My home site penguin-media .co .uk works fine on everything, except in Chrome, specifically the Mac version of Chrome. Take a look at the 3 blue boxes on the home page, the "full features" and cost seem to be pushed up, but only in Chrome on a Mac! It's a bit nuts so was wondering if anyone could figure out what's going on here? Much appreciated! - Nemo

  49. This is only a problem in IE8. IE7 is fine and so is IE9 aswell as other browsers. I want the images to sit side by side but they are stacking incorrectly under each other Any suggestions? Html is as follows:- <span class="socials fright"> <a href="https://plus.google.com/" target="_blank"><img src="images/gplus.jpg" alt="" /></a> <a href="http://www.linkedin.com/" target="_blank"><img src="images/linkedin.jpg" alt="" /></a> <a href="http://www.twitter.com/" target="_blank"><img src="images/twitter.jpg" alt="" /></a> <a href="http://www.facebook.com" target="_blank"><img sr…

  50. Started by robinmujician,

    Hi Folks, I've been working on this site: walledgardenflowersdevon dot co dot uk using the WP 2012 template. There's just 2 traces of grey left: the menu items briefly after I click them, and the cursor when it hovers over text which isn't linked to anything. I've tried using developer tools to find them, but can't work out how to "catch" them, since they only appear under certain circumstances. I'd love some help finding the css rules for these two things. Kind regards, Robin.

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.