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

    Hey, I finished a navigation menu and I feel that it would be much more user friendly to have that border to stay on the parent menu item as the sub-menu rolls out. You can see it on the first two menu items. So basically, the bottom border would be still there as the user hovers over the sub-menu. Is this possible somehow ? http://fld.php5.sk/ Don't worry about the language on the site Thanks

  2. As you can see on this picture i got a simple navigation like this: <div class="nav"> <ul> <li><a href="#"><span class="welback">Welcome Back,</span>TheUninvited</a></li> <li><a href="#">Settings<b class="caret"></b></a> <ul> <div class="arrow_box"></div> <li><a href="http://localhost/forum/usercp.php">User CP</a></li> <li><a href="http://localhost/forum/modcp.php">Mod CP</a></li> <!-- start: header_welcomeblock_member_admin --> <li><a href="http://local…

  3. Hi all, I've been at this for hours now and I can't seem to crack it. Any help would be greatly appreciated. I'm trying to embed a YouTube video in/on to an image. I've designed my image in Photoshop, leaving a 633x356px place holder for the video. I've sliced the image up + created the HTML file. In the HTML doc I replaced the place holder image code with the YouTube embed code and previewed in Chrome/FireFox/IE and it all looks perfect. However, when I upload the files to a Wordpress blog and amend the HTML to point to the corrent image locations, this is what I see - notice how it breaks up in the middle? When I remove the video and just use the pla…

  4. Started by artisites,

    Hi Does anyone know how to apply a box shadow around all 4 corners of the div? I'm using -moz-box-shadow:inset 5px 5px 10px #ccc; -webkit-box-shadow:inset 5px 5px 10px #ccc; box-shadow:inset 5px 5px 5px #ccc; but it's only applying shadow to 2 sides.

  5. Hello, everyone. I've been struggling with a vertical CSS menu. The HTML for it is: <ul id="menu"> <li><a href="#" class="link">Home</a></li> <li><a href="#" class="link">Calculations and services</a> <ul> <li>Test 1</li> <li>Test 2</li> </ul> </li> </ul> The CSS for it is currently: #menu { list-style: none; padding: 5px; } #menu li ul { display: none; list-style: none; } #menu li:hover ul { display: block; } #menu li:hover ul li { padding-left: 200px; } .link { text-decorat…

  6. Started by MixCreations,

    Can you insert an img instead of text in nav menu using only css? If so. How plz.

  7. We seem to be having an issue with one of the pages on our latest website. All pages appear correctly on the iPad & Kindle apart from the contact page which displays at a smaller width. When checking the page the width settings are the same as all the other pages on the site. The pages display correctly on all other platforms and browsers. This just seems to be an issue with mobile devices. Any help would be appreciated. The site can be viewed at www.somethingbluebrides.co.uk

  8. Started by hsdn,

    After learning of the proposed html css templates for you to start practicing what? Please introduce a simple format to start

  9. hello! guys this image thats what i trying to code it, on my 13" it fit but when i am in a 21" i have a lots of margin padding and i don't want them i want a static design and fit on all screen doesn't matter this the url test1.supercasaspuntacana.com thanks for help me Cooljl

  10. I'm trying to edit the "C" logo at the top left of the website, I would like to edit it so that it's smaller and fits into a menu bar at the top. I had tried editing the img tag in CSS but it edited all the images on the website, I would like to edit that specific logo rather than the whole lot but don't want to edit the XHTML, if I edit the XHTML then I won't be able to switch back to the original theme that I was using. If something went wrong with the Style sheet then I'd be in trouble. I've though about creating an alternative homepage that suited my stylesheet but surely their is a better way to do this. It doesn't let me define anything more specific tha…

  11. Hello, A little help on this would be much appreciated! Basically I'm having the same problem that has been mentioned and unanswered here: http://www.webdesignerforum.co.uk/topic/56854-table-header-background-image/ I have a background image that I want to use as a table header. The image is 888px wide and I have the CSS set up for it like this: thead { background-image: url(../images/tablehead.jpg); background-repeat: no-repeat; height: 34px; width: 888px; margin: 0px; padding: 0px; } Which works great in Firefox, but for some reason in Safari (and possibly Chrome), it doesn't act as a row, and acts more like a cell. Basically the image starts again …

  12. Started by teodora,

    When you need to have tabular data, how do you make your tables responsive? I usually either build a fake table made out of divs (when possible) or if it's a complex table, I show it as table down to the point when it doesn't fit the screen anymore, then hide it and show the table content in a div. I would be interested to see if there is a better way / what's your preferred solution.

  13. Started by rbrtsmith,

    I've been working on a slider for a project that I've built this evening, thought there might be one or two of you who might want to use this in some way It displays 3 slides in the viewport, the current slide, the next slide to the right, and the previous slide to the left. It requires a minimum of 6 slides to work at the moment. Slides can be toggled via clicking on the next or previous slide, or using the indicators. To remove these just delete the associated html so you can use or the other, or both. You can add any number of slides (beyond the minimum of 6) The slider is easy to customise via data attributes in the html, slide-transition timing, auto sl…

    • 0 replies
    • 1.1k views
  14. Hello all, I am looking for ways of enlarging a section of an image on click on a html page. The image itself ( example attached below) is of a map of the inhabitants of a housing block in a small village. As you can see, the image is pretty dense with information which doesn't make it very easy to read. Normally, if if wanted to enlarge an image, I would use prettyphoto or an equivalent. But in this case I do not want to enlarge the whole image but only a section of it. Any advice would be greatly appreciated!

  15. Hi guys I've tested a new website on all the main browsers and different screen resolutions, it looks perfect in all, but for some reason the CSS container structure looks, well wrong on my ipad. If someone could spare the time to have a quick look I would appreciate it, just can't see the issue, you know sometimes when you're too close to it. Website Screen shot attached of ipad.

    • 10 replies
    • 1.6k views
  16. Hi, my menu disappears when I use my own custom wordpress theme. I have tried using customizr wordpress theme but when I use my own wordpress child theme, the menu disappears. The child theme imports the CSS of the customizr theme and then adds properties onto it. I would like to know what has caused my whole menu text to dissappear, before it showed the words "Home", "Services", "About me", "Contact me" etc but now it's gone. What could I do? http://www.codexx.co.uk

    • 5 replies
    • 1.8k views
  17. The real issue is if it's possible to do this using a fade The image is black and I want to fade to white. The image can be an SVG

  18. Started by portia79,

    Hi there, I have been asked to create a simple website for dyslexic people. As it's really going to be only about 3-4 simple pages and the content will be static. I'm just going to code it by hand (no CMS needed). For css I'll be using Sass (just to learn it better). Now there are certain guidelines for displaying text to people with dyslexia. The best background colours are some light/pastel colours (NOT white) with some dark fonts (not black). The problem is that it's an individual thing. I would like a visitor to be able to adjust the theme of the website to their preferences. what I am thinking is give them an option of 5 themes to choose from (with each th…

    • 4 replies
    • 1.2k views
  19. Started by markyp,

    hi everyone im mark, i am new to the board and quite a novis at present, been working on a dating site and could really do with some help, i hope im posting this in the right place, ok here goes, i have a few questions so will put all here as not to take up baord space, 1, on my site i have a notification page at the top, and on there is a clickable link that turns red when you have recieved a new message, however its quite hard to notice so i would like a new popup or a something more obvious so members can see when they have a message, 2, my site is responsive, i have mobile banner set to 300px wide, and desktop set to 600px wide, somehow, i have be…

  20. Started by CreativeSheep,

    Hi, I've changed the function name from "event" then to "e" then back to "event" and the script won't work in FireFox ? $(".reachme a").click(function(event){ event.preventDefault(); ("#reachme").animate({bottom:'0px'}, 2400, 'easeOutBounce');

    • 4 replies
    • 1.1k views
  21. Hi there, I have created a html/css lightbox, but have a problem. I would like the lightbox to have a scroller inside the lightbox, and I would also like a close button at the top of the box, but when I use overflow:auto; the close button disappears, but without the overflow:auto; I cannot scroll and need both of these elements. CSS code: body { width:100%; } .black_overlay{ display: none; position: absolute; top: 0%; left: 0%; width: 100%; height: 100%; background-color: black; z-index:1001; -moz-opacity: 0.8; opacity:.80; filter: alpha(opacity=80); } .white_content { max-width:414px; display: none; posit…

    • 4 replies
    • 1.7k views
  22. Hey all, I am experimenting with prototypes and I am wondering how I can extend and existing object in javascript - the Array object in this case and get access to the values? Example: Array.prototype.duplicate = function() { //GET VALUES OF ARRAY SO THEY CAN BE USED console.log(this.values); } var a = [1,2,3,4,5]; Is this kind of thing possible?

  23. I tried and tried, I just can't seem to find the bug in this code. Its a simple form price calculator. When the user changes the select box the price is supposed to update by getting the selected option and get the price from an array. jQuery: // Dropdown "value" prices var colosize = new Array(); colosize["14"]=229; colosize["12"]=339; colosize["11"]=699; colosize["31"]=2000; var power = new Array(); power["1c16"]=0; power["1c24"]=135; power["2c16"]=135; power["2c24"]=250; var bandwidth = new Array(); bandwidth["100"]=0; bandwidth["200"]=99; bandwidth["500"]=499; bandwidth["1000"]=999; …

    • 3 replies
    • 1.1k views
  24. Started by lolo44,

    } </style> <link href="style 2.css" rel="stylesheet" type="text/css" /> <script src="Scripts/swfobject_modified.js" type="text/javascript"></script> <script type="text/javascript"> function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_findObj(n, d) { //v4.01 var p,i,x; …

    • 0 replies
    • 1.5k views
  25. Hi all. I just finished a landing page for a client but i'm having issues with a php form on the page. I believe that it is set up correctly but when i send an email from it I don't receive an email into my inbox. Can anyone with html/php Form knowledge help. Here is a link to the site: http://www.chimpmarketing.com/wealthlanding/ and here is a link to the source files: https://www.dropbox.com/s/i7wh54pyi4jhxlx/wealthlanding.zip Thanks for reading. Kindest Regards Gary

  26. Started by buzar,

    Hello guys, can anyone here give me his skype so I can share screen and you take a look on my code? I don't understund some parts how they are done, for example where font is defined. There is no font-family in css nor on index(html). Also I have few other problems. I prefer not to upload whole site here. Thanks

    • 1 reply
    • 1k views
  27. Hey everyone, I have a very aggravating problem, and I can't figure it out - enough time wasted. I have an input with an ID of "#queryCountry" on it. There is jQuery that is adding the Auto Complete functionality to this input. On this page, I also use UI Tabs. I've styled the tabs how I want them (using jQuery UI styles, but they are in a separate style sheet), however the styles we are using for the Auto Complete screw up my tabs. Solution: Use a CSS scope to target only the Auto Complete field. Great. So in my UI CSS file, I add a CSS scope before each declaration of ".jqueryUI". In the HTML, I wrapped the form containing the "#queryCountry" input in a div …

    • 3 replies
    • 3.7k views
  28. I'm working with the Trip advisor API that is installed on a booking engine's server and am having trouble making ajax requests from the browser but not from the command line. I presume this has to do with cross domain restrictions and that I need to have CORS enabled for this to work but I am getting the url to the requested information in an error message in Chrome so perhaps it is working after all? Does anyone have experience with this and if so do I need to have the booking engine set CORS headers for me to have access to the API? Or is my ajax request perhaps missing some key information that I missed? I can post the code if need be but thought it best …

  29. Hi Guys, Ok this may be a long one, I am using this source code for my site Thumbnail Grid with Expanding Preview | Codrops It looks very similar if not the same as google images when you click on an image, now the problem I have is that I do not know how to add more features into the drop down box, if you go onto google images and click an image the drop down shows multiple things including more images and links to the source of the image and video links, I need to know how to edit the source code from the above site to add more features than just the title, description and one link, Any help is much appreciated, Many thanks Marko

    • 5 replies
    • 3.3k views
  30. I am learning JavaScript for a while. But things on I am focusing I can't find in tutorials that I have been watching. I want to make filter of my post like in mobile or laptops specs websites. Here Is an example:- http://www.phonearena.com/phones/full You can see there is a long side bar to find phone which fulfill you requirements. I have seen like it on many other website. But I can't make my own in my website. I have learned Html,Css and currently learning JavaScript. Should I have to learn any other language to do like.And Please tell me what Jquery is.But answer my main question too. Sorry for Bad English. Thanks in advance.

  31. Started by DavidAndrewReilly,

    Hi, I am looking to improve the testimonial section of a website. The text is currently left to right and covers that section, looking to make 50% width, maybe. I can’t seem to get this done at the moment? Thanks, www[]dianneinglis[]com

  32. Hi all, I have built this (http://goo.gl/plH43k) using bootstrap 3 and i'm just adding finising touches but something is really bugging me in IE. If i open the site in IE11 or below initially everything loads up and it looks fine but if i start scrolling to the bottom the horizontal scrollbar appears. I've checked all my code and i just cant seem to figure out what is causing this. Its my first time using bootstrap or anything responsive for that matter but i decided to check the bootstrap demo page and i get the same behaviour there (http://getbootstrap.com/examples/theme/) so i'm wondering if this is some sort of bootstrap bug that has been overlooked. Any thoughts?

    • 20 replies
    • 7.6k views
  33. I'm trying to use Sharrre and get it to work. I've got these 2 buttons to show up on JSFiddle as I like them to look for now. I keep trying to get it to show up on my own test page, but I'm obviously missing something, as nothing shows up. (I spent just under 5 hours yesterday, trying multiple things.) I place the following Javascript code just before the closing body tag: (You might have to highlight it to read it.) <script src="http://code.jquery.com/jquery-1.7.min.js"></script> <script src="test.js"></script> I upload the javascript file which you can see on JSFiddle to the server in the same directory as my pages and nam…

    • 0 replies
    • 1.2k views
  34. Hey I have 3 questions that I'm having the user answer that filters information. If they answer yes to any of them then they get one set of information about obtaining a world cup travel visa. If they answer no to ALL the questions then I need to give them information to obtain a tourist visa. I set this up with three questions and two filter divs in the html. For some reason I can't get the jQuery click functions to update the correct value in the tracking array. I think this has something to do with my lack of understanding of how jQuery keeps track of registered click functions after you called them the first time. Maybe they run asychronious and therefore I can't …

    • 0 replies
    • 1.7k views
  35. Started by teodora,

    Hope someone can help with this I have a function checkWidth - checks the window width and if it's more than xxx px applies equal heights to two columns. However I have run into an issue - I have expanding tabs in on of the columns. How do I call the checkWidth function again (on tab click) to re-calculate the heights? Code: jQuery(window).load(function(){ var height1 = $('.div1').outerHeight(true); var height2 = $('.div2').height(); var $window = $(window); function checkWidth() { var windowsize = $window.width(); if (windowsize > 900 && height2 <= height1) { $('.div2').css('height', height1+'px'…

  36. Started by ~Luke,

    I have seen some sites use multiple <header> tags - I would have thought HTML5 would use just one header tag to identify the 'header' at the top of the site and that's that. My question is... What is the <header> tag actually for? What does it do or distinguish differently to a div or class container being used for a header?

  37. Started by rockinlinux,

    I am making a site and on my horizontal menu i want the text to add a drop shadow on hover. I made the images one is "home" and the other is the same plus a shadow. I have tried a few different things and have been googleing for a couple hours now and cant figure this out. Any help i would really like thanks in advance also i inlcued the images so you have an idea, the home.gif is the normal one and the home_sh.gif is the one i want on hover. I think i could do this with JS but i dont know much and it seems possible with css....i just dont know how

    • 26 replies
    • 14.6k views
  38. Started by neil0wen,

    I need a bit of help with this sticky header if possible. I'm nearly there, but there seems to be a weird jolt when scrolling down. I think it has something to do with adding some height in here: .header, .nav { text-align: center; color: #fff; height: 103px; } If anyone can help I would be really grateful: Link

  39. Started by neil0wen,

    I'm wondering if someone can help me with a static header? I have created a static header which works fine, however what I really want is the top part of that header to move up when someone scrolls down. Then the lower part of the header moves up to the top of the screen and stays at the top and is fixed there whilst they continue to scroll down the page further. Does anyone know of any tutorials that can show me how to do this? Thank you.

  40. Hello, I am having a problem with the mobile version of a website. I have uploaded two screenshots to show you. One is a YouTube video width being too long. The other being at the very top, I want all the menus on one line. I would be grateful for any help. www[]dianneinglis[]com Thanks,

  41. Started by Vulcan,

    Anyone know of any Tree navigation code ? I am wanting to create folders to add files or something along those lines, I needs to be easy and clear for users to find each document

    • 6 replies
    • 1.5k views
  42. Hello, I come across a problem in firefox when I want vertically align div inside of a full browser width and height div. I used a table for parent and table-cell with vertical-align: middle for a child div method. here is my code CSS .container { display:block; position:relative; min-width:100%; min-height:100%; display: table; } .intro-div { display: table-cell; vertical-align: middle; text-align:center; } .fullscreen-img { display:block;position:absolute;z-index:-1; min-width:100%; min-height:100%; background:transparent url('../images/introslika.jpg') center center no-repeat; background-size:cover; -webkit-background-s…

  43. Started by cooper82,

    Hey, I'm using Login-box http://wordpress.org...gins/login-box/, and want to add an overlay so that the rest of the page is dimmed when the login box appears. My javascript lknowledge is pretty limited. This is the code: <?php wp_print_scripts('jquery'); ?> <script type="text/javascript"> var loginbox = { theme: '<?php echo LB_THEME; ?>', key: '<?php echo LB_KEY; ?>', keycode: '[<?php echo ord(strtolower(LB_KEY)) ?>][<?php echo ord(strtoupper(LB_KEY)) ?>]', ctrl: <?php echo LB_CTRL; ?>, backtopage: <?php echo LB_BACKTOPAGE; ?>, fade: <?php echo LB_FADE; ?>, auto: <?php echo LB_AUTO; ?>, string: { clos…

    • 3 replies
    • 2.7k views
  44. Hi, I am continuing to have an issue with YouTube Embed video on mobile. I have included a screenshot. I believe it is in my core.css where the problem is. It is fine on the desktop version just not the mobile version. www[]dianneinglis[]com Thanks,

  45. I've got an image gallery where the images change from black and white to colour on hover and I've been using webkit and svg filters to do it but I can't get anything to work in ie, even in ie9 and above. I made this codepen to test things out and would love it if anyone could solve this. Either that or just tell me its impossible and I need to resort to background images in an ie stylesheet.

  46. So I run a website that has two iFrames on it (I would not be using iframes if I didn't have to - I assure you ), One of the iframes has a setInterval() timer on it refreshing the content, while the user navigates the other. However ever since chromes recent release that they automatically rolled out, Version 35.0.1916.114 it appears that chomes iframe history is causing the iframe context to get mixed up and not display properly when pressing the back button etc. As an example I have made a jsfiddle. Press Run and then wait for the left iframe to refresh - then click any link inside the right iframe and then press chromes back button. You'll notice that the right…

    • 0 replies
    • 1.6k views
  47. Started by ars,

    Hi! I was wondering if any of you is using Foundation 5 because I'm struggling with the installation of Sass. I've found alot of tutorials, but none of them is for beginners. Can you suggest a good tutorial or help for absolutely beginners? I appreciate any help!

    • 3 replies
    • 1.8k views
  48. Started by ericburnard,

    Hi there, I am needing a bit of advice. I am currently working on a new site, and I have my links at the top in a fixed header, and the rest of my content throughout the same page. http://sr.bluepigeon.com have a look it will make more sence then me describing it. Now i have worked a little bit with jQuery but do not know all the ins and outs of it, which is why I am a bit stuck. Now when I click one of the links on the page, I want the page to scroll down to that div and display it in the center of the screen. Now the code I am using (see below) obviously works on my laptops screen size but won't be as 'perfect' and centered on other sized screens. If i user the foll…

    • 1 reply
    • 1.3k views
  49. Started by Garbeth,

    Hi all i been trying to create a picture slider for my web but for some reason it does not work, it shows the first picture but it doesn't slide. i thing there is something wrong with my code. if anyone know the ansewr to my problem it will be awsome, its been drving me mad for the last 2 days. thank you. i upload the code here : http://jsfiddle.net/Garbeth/6WZYq/

    • 2 replies
    • 1.1k views
  50. Started by KG60,

    We have just gone live with one of our new sites but we are having an issue with extra blank space at the bottom of some of the pages. On some of the pages everything displays correctly with the page ending at the bottom of the footer. On certain pages though there is a varying amount of blank space after the footer which we can't seem to explain. Can anybody suggest a reason for this issue? The website can be viewed at www.somethingbluebrides.co.uk

    • 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.