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

    Hey Guys, It's been a while. and I'm back with a new problem. Hopefully this time someone can help me.. My problem is that IE , FF and Opera don't scroll back to an anchor by pressing the back button. or using JS history.back(). Example: I am at www.website.com/#anchor1 and I will click a link that takes me to www.website.com/#anchor2 Then I press the back button of my browser. the URL changes to www.website.com/#anchor1 but the location of the window doesn't change to #anchor1. So, after searching for a while. ( 1 1/2 hours and counting) I can't find anything that helps. The problem occurs at www.4people.nl if you go to cases a…

  2. hello frnds, i tried to increase size of this slider but here when i increase size of left img as u can see after few slides there is a gap between images also i increased right navigation to 400px but it isnt increasing in width? i tried to edit this js file but all in vain? script00.js // JavaScript Document /*! Copyright (c) 2009 Brandon Aaron (http://brandonaaron.net) * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers. * Thanks to: Mathias Bank(http://www.mathias-b…

  3. Started by nicolasks,

    Hi! The landing page on my website displays a collection of small photos in a TABLE http://torontorabbits.org. I'm wondering if there's a better way to do this? This display will be expanded to include lots more photos. My latest attempt just puts the images loose in a DIV http://nicoleonline.tumblr.com/testing, which is cleaner than using a table but it still has a fixed width. The reason I made it fixed is because I may be putting some text beside it. If I don't, I'd like it to fill the entire area (the blue box), regardless of screen size -- but then maybe I need to center it, so that it doesn't look awkward when the screen isn't quite big enough to admit a…

  4. Hey guys, So I'm working on a site and I need to come up with a slider, but I need to be able to set my own bullet points (as images). Sample link here: http://www.canaljunction.com/index-chris.html - On sample it'll basically cycle between the images (Hireboat, Hotelboat) etc. I found a few that will do thumbnails but just small versions of the actual slides. I almost need bullet points that I can set myself? Any ideas much appreciated! Thanks, Chris

  5. Started by NiBi18,

    How can I fill display height using one div ? I've got static width of 800px and I need to set height of div to be from top to bottom and avoid of scrolling on smaller resolutions . This condition I need when div content is empty . If there is a lot of text or any other content and filling all div it should automatically extend div and then should be possibility of scrolling . I hope you understand what I mean , simply I need something like div{min-height:100%; } and if needed automaticaly extend the div . I want it like preventing of webpage end is in middle of screen on some resolutions and on other it's on a bottom . Simple example is web what I'm doing now http:/…

  6. This is the code I have for my form: <form id="contactus" name="Contact us" method="post" action="contactsubmit.html"> <p> <label for="textfield"><strong>Your details</strong><br /> </label> </p> <p><span id="sprytextfield1"> <label for="name">Surname<span class="required">*</span></label> <input name="name" type="text" id="name" /> <span class="textfieldRequiredMsg">Please enter your surname</span></span><span id="sprytextfield2"> <label for="name">First name</label> <span class="required"&gt…

    • 3 replies
    • 1.6k views
  7. Started by jimmymustang,

    Can anybody tell me the best way to add a Date Time Picker to my form? I'm using dreamweaver cs6. THANKS!

    • 5 replies
    • 5.4k views
  8. Started by Neil@creative,

    Hi, I;ve currently got this code in my .htaccess: Options +FollowSymlinks RewriteEngine on rewritecond %{http_host} ^tileandstonejournal.com [nc] rewriterule ^(.*)$ http://www.tileandstonejournal.com/$1 [r=301,nc] But I also want to redirect the index.html page to go to the domain itself. I found this code: RewriteRule ^index\.html$ http://www.mysite.com/ [L,R=301] But it doesn't seem to work for me. Any ideas? Thank you

    • 0 replies
    • 1.4k views
  9. Started by nicolasks,

    Could someone explain what's going on here? How come this validates <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title></title> </head> <body> <dl> <dt>term</dt> <dt>term</dt><dd>definition</dd> </dl> </body> </html> and this doesn't? <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title></title> </head> <body> <dl> <dt>term</dt><dd>definition</dd> <dt>term</dt> </dl> </body> </html> Thanks so much for your he…

  10. Hi everyone, I really hope someone will be able to help me! I am getting pretty frustrated with my website www. frodshamweb .co .uk which when published a couple of months ago, worked fine on iPhone, android browser and also Chrome mobile browser which is what I use on my HTC One X and of course on desktop browsers. It seems now for some reason (may be something to do with the chrome update I did a couple of days back) that when looking at the website on an android, the text size is out of proportion and rather big. It overlaps the footer and is a real pain and makes the whole website unreadable! On an iPhone is stays in proportion to the rest of the page and …

  11. Started by fleur,

    Hello! Our company bought this WordPress theme http://themeforest.net/item/inceptio-responsive-multipurpose-wordpress-theme/full_screen_preview/4659745 Its very good theme! But owner wants vertical parallax on one page of this site. I put lots of scripts but its not working. Maybe someone knows the good and simple script of responsive vertical parallax? I need script like on this site http://www.enloop.com/features Any help will be greatly appriciated!

  12. Started by JordanC,

    Does anyone know how to affect multiple classes from within CSS? For example I have a series of bars I'd to apply some universal CSS to. For example .bar-1 .bar-2 .bar-3 and I want to apply "height: 10px;" to each without having to repeat it for each .bar-* class. I've found similar uses within CSS elsewhere like: [class=*-bar-*]

  13. So I've been coding in HTML, CSS, and JS for a grand total of 3 days now and everything was going quite swell up until this footer became an issue. I have gone all over the internet trying to figure out how to make this work and it looks like the main issue I am having is that my body is using the CSS style: position: absolute for the content of the body. I want the footer to stick to the bottom but when the window height shrinks the footer begins to go over my content. What I want it to do is when it gets up to the bottom of the form (around maybe 20px away from the form) I want it to stay where its at and start scrolling down. If you resize the window and make…

    • 0 replies
    • 1.4k views
  14. Started by JobJar,

    Hi I need some help with my rss feed. It was previously working but I inserted some data and it doesn't seem to work now. <?xml version='1.0' encoding='ISO-8859-1' ?> <rss version='2.0'> <channel> <title>JobJar Recruitment</title> <description>Latest jobs from JobJar</description> <link>http://www.jobjar.co.uk</link> <language>en-gb</language> <copyright>2009-2010 © JobJar.co.uk</copyright> <webMaster>webmaster@jobjar.co.uk</webMaster> <image> <url>http://www.jobjar.co.uk/images/logo2.png</url> <title>JobJar Recruitment</title> <…

    • 10 replies
    • 2.4k views
  15. Started by dowhatyouheard,

    Hey everybody, I'm a bit of a web noob and I've been working on a template that I got given to help me learn and quickly put a page together for myself.. I can already sense the groaning.. I'm pretty much all there with it, however, I'm having trouble getting some links to work. They are links to external pages, I want them to open in a new window. When I test the page and click them, nothing happens. However.... the browser recognises the link and displays it in the bottom left corner. Something is stopping the links from working in my code but I have no idea what! The image i've attached shows what happens when I hover over the blog link, the same th…

    • 9 replies
    • 1.5k views
  16. hello frnds, any idea why this jquery slider which i have implemented here works on localhost but not online

  17. Urgently i need solution for my problem i have done a news letter for my clint in my newsletter i have writen in 2 lang 1 is english and 2nd is kannada.. on the top of my newsletter i have writen a link like this if you want this in kannada click here but the html newsletter is not supporting jump down in the body will anchors works for html email newsletters? or not ?

    • 1 reply
    • 972 views
  18. Started by nicolasks,

    For the past few years I've been using the universal selector, as such: * { padding:0; border:0; margin:0; } It was suggested on a different thread that I not do this, with reference here: http://www.cssreset.com/scripts/universal-selector-css-reset/ I'm not convinced and I'd like to talk it out. Maybe I'm confused. It seems to me I want to set every element's margin, border, and padding explicitly. Why wouldn't I? Why would I want these attributes inherited from parent elements? I can't think of an example where that would be useful. I was concerned when I read "Internet Explorer 6 and 7 don’t support the universal selector," but when I followed t…

  19. Started by unknownmale,

    I should first mention my Jquery skills are pretty much null... So what i'm trying to do is, On page load have the black rectangle; flicker slide right to reveal some text delay slide left (Hiding the text) and revealing the website which slides with the rectangle flicker fade out I've gotten so far - http://jsfiddle.net/lecollective/htuUZ/3/ But the issues i'm having are: when the rectangle flickers it reveals the text on each flicker when it slides back left I can't get it to slide with the #main to reveal the website or flicker at the end. Any insight into this would be really appreciated!

  20. Started by Snel pUppie,

    Okay... So I am about to learn Javascript and I am wondering how the most simple way to create a dropdown menu with onclick in javascript is? I know how to make a dropdown menu in CSS but I want to make it with javascript now. Got any great tutorials? Tips? I was thinking something like this: When onclick is activated (on the mainlinks) the display attribute(for the submenus) will change it's value from none to block and vice versa... I want this as simple as possible for easier understanding Thanks in advance!

  21. Website URL is http://www.legionpaintingstudio.com I lightly modified a wordpress plugin that allows my client to post his latest youtube video to make it responsive. That side of things works flawlessly and should look great in mobile. However when I load the site on my I-phone there is just a blank space where the video should be and I am not sure why. This is the code the plugin spits out: <section class="youtube-video"> <param name="movie" value="http://www.youtube.com/v/HmsQSk1c5Kw" /> <param name="wmode" value="transparent" /> <embed src="http://www.youtube.com/v/HmsQSk1c5Kw" type="application/x-shockwave-flash" wmod…

  22. I'm trying to include some images with shadows on the right hand side and bottom in my web sites, like the poster on this page (http://www.grantachorale.org.uk/event027.php), but often the bottom shadow gets cut off, like the lower image on this page (http://www.signuptosing.org/). I've tried many things to fix it, but I can't find a trick that works every time. It must be something to do with the width and height of the image, the width and height of the image with the shadow, and the width and height of the element that the image is inside. Can someone please advise me a reliable way of achieving what I'm trying to achieve? If you think you might know the asnwer and…

    • 2 replies
    • 1.1k views
  23. Started by sdjknights,

    Not sure if this is the right place to post this, so I apologise in advance if it isn't. I have been searching on google for well over an hour now in search of this question, but am still unsatisfied. What I'm trying to do is tag audio files or pages on my website so that viewers can search my music in terms of mood, genre, instrumentation etc. I then want to create a tag cloud linking to these files/pages. I've found a few tools for helping, but they mostly automatically generate them based on frequency of words throughout my whole website, whereas I want only specific tags (genre etc) to show up under a category of pages (ie, not the home page, contact page etc). An…

    • 0 replies
    • 862 views
  24. Started by mrludable,

    Just a quick question. Is it ok to use minus margins? I use it sometimes with images or divs, try to avoid it if I can. Currently I am positioning a logo with a minus margin to bring it down slightly over the div below. Have checked it in 5 browsers and it's diplaying fine... Thanks for any replies. Al.

  25. Is it some way how to use transparent colour of div background without content transparency ?

  26. Guest
    Started by Guest,

    Hi A few days ago JQuery cycle was working fine with next and prev buttons all over my wensite but now it doesnt work with the buttons. I have tried taking the buttons from the code and the slideshow will work fine automatically going through the images but i dont want that. I have also tried changing the buttons from an id to a class but that doesnt work and ive changing the class and id of the buttons but that hasnt worked either. Here is a link to one of the pages on my site that uses the JQuery cycle: dan .vdsh .net / jwt / new / ets2-bio .php Edit: Sorry if this is the wrong place to post this but i cant find another forum that i feel would suit this.

  27. Does anyone else find this the most annoying chore? I'm trying to set up once again Facebook sharing links for the site I'm working on, but once again the images are not showing up. Is there something I'm missing when doing these? I prepare using the Open Graph protocols <meta property = "og:image" content = "http://www.autoc.co.uk/images/logoicon.png" /> <meta property="og:image" content="www.autoc.co.uk/logoicon.png" /> These are the image protocols that work every time without fail on a current website of mine. But I'm trying to do the same process with the image required on the root folder, amongst the pages and in the images folder. No…

    • 3 replies
    • 1.1k views
  28. When I view links on my homepage in opera offline they work fine however online they don't, normally its a path problem but in this case I can't establish what it is, I have took some screenshots to show you what I mean and my <HR> doesn't show either, however in chrome it does. The website is www.cherrietestingwebsite.org

    • 2 replies
    • 875 views
  29. Hey everyone my first <HR> link is not displaying properly in some browsers, for some reason it just disappears and doesn't show and my read more links don't float to the right and work properly in opera when the site is uploaded to the net. However they seem to work fine offline, bit strange. There is a slight problem with the border wrapping round the footer in the contact me page, not sure what is causing it. The website is www.cherrietestingwebsite.org

    • 3 replies
    • 1k views
  30. Hi I'm new to forum so hopefully posting to correct category . I just need help with my issue with css div . If I add 1px of padding or 1px border it add at least 10px on div height . It only happens when I use h1 text otherwise it's working correctly . Concrete example here HTML CSS I hope you understand what I mean , many thanks for reply

  31. Hello I have a designer friend who ships me psds of his website designs and I do the slicing, coding, and hosting stuff. He designs his websites on a wide screen monitor and the site container winds up being around 1100px wide. Is this not okay? Specifically what I'm thinking is that these sites won't look good in 1024x768 resolution. Wondering if you fellow coders have any tips on this? Thanks a ton!

  32. Started by Archer,

    Right basically I have a page with several links on it. What i want is certain parts of the content to be hidden and then when you click the link relating to that content, it shows up, click another link, the info for that link shows up etc. Is that possible using just CSS??? I figure there's probably a way to do it with javascript (which if anyone had any tips on it i'd love to hear ) but was mostly curious to see whether it can be done with just CSS. I have the info in seperate divs and can make those divs hidden, but want to make them unhidden when the link is pressed lol Thanks in advance

  33. I was following JQuery tutorials last night on codeacademy and I am very excited and want to learn it (well the very basics anyway) to add fancy design to my pages. But would it be frivolous; with mobile devices to become more popular than desktops this year, and most of the basic features that I would use (like enlarge buttons, change colour etc) would be wasted on mobile devices as they have not hover effect etc?

  34. Started by user-removed,

    Is this happening for anyone else? Moving around my page causes the whole browser to flicker. It was happening. Then it wasn't. Then it was again. I've not really changed anything so I don't get it? Pretty sure my code is fine, I'm wondering if this is a bug with the current build. Edit: My Chrome just updated and now the problem is much worse! What the?!

    • 17 replies
    • 1.9k views
  35. On my contact page the background disappears think there is some problem with the divs, as the border isn't properly wrapping round the container tag. Also on the homepage the <HR> between the 3 pictures and the twitter plugin and about me section doesn't appear in some browsers, for example opera, the read more links beneath those pictures align fine in all browsers offline but not opera when online. I was also looking to align the navigation buttons up against the sliding banner to get rid of the white gap, i tried valign bottom to align it to the bottom of the nav div but it didn't work for some reason? the website is www.cherrietestingwebsite.org

    • 3 replies
    • 887 views
  36. My question is clear, but i am somewhat very confused. I am using IPB, in my IP Downloads any member can download the files easily and that is not a problem. But I want to hide that download button until the like button is clicked. Or, for example to put a sample hover text on the download button telling please like. But the like button is in another page, Each download or each file has a support topic and the like button is in every support topic how can i code this? Thanks in advance. I know it will be very simple jquery but what i cant do is calling the other page?

    • 9 replies
    • 1.1k views
  37. Started by webdeveloper93,

    I tried everything i can think of but i have a bbcode system i wrote in javascript/php. However when i click say a smiley outside of the textarea it then moves the cursor back to the bottom of the textarea. How do i restore the cursor back to its previous position after the smiley/bbcode gets inserted?

    • 1 reply
    • 888 views
  38. If all my web pages have the same navigation and footer markup, what is the best way of avoid hard-coding this in every page, so if it needs changing it's only changed in one place so as not to have to edit every html file? Thanks

  39. I was wondering what you guys think about CSS frameworks. I've always preferred to create my stylesheets from scratch, or build my own framework which I can adapt for different projects, so using somebody else's framework has never really appealed to me. I feel like you lose a degree of control when you are locked into a pre-existing grid, plus the whole naming structure of <div class="6col"> is somewhat off-putting. I can see how this can cause some massive headaches when it comes to customising or debugging. I do understand the benefits of them; less coding required, quicker output, responsive, more likely to be standards compliant and cross browser compat…

    • 2 replies
    • 883 views
  40. Started by altis,

    I've created a table that shows text samples in various fonts - the font name is in the left hand column and the sample in the right. The table fills the width of its container and looks like the image attached. However, I don't like it where the samples wrap round onto a second line and just want it to clip instead. I've tried white-space:nowrap but this just forces the <td> to break out of the container and looks even worse. I can make it work if I nail the width of the column to, for example, 400px but I want it to flow out to the container instead.

    • 1 reply
    • 870 views
  41. Started by lozenges,

    I am trying to orginise a print file as the site goes over 4 pages at the moment and the navigation is everywhere. For some reason the print.css file doesn't seem to be taking effect. I have added <link rel="stylesheet" href="print.css" type="text/css" media="print" /> to the header.php file and included the print.css file in the theme folder. (wordpress site) Any ideas what I'm doing wrong? I tried to clear my cache but to no effect. The site can be seen here http://bit.ly/10M5EXB

  42. I'm not liking CSS today. Several hours later and what I imagined would be a really simple thing to do still eludes me. I want to align text vertically against an image for a logo, so even if the text is not as tall as the image, it will have the same amount of space above and below it. Here's my basic code: <html> <head> <style type="text/css"> #logo{ height:100px; width:960px; } #logo h2{ display:inline; font-size:72; color:red; text-shadow:1px 1px 2px black; padding-left:5px; } </style> </head> <body> <div id="logo"> <img src="my image" alt="image for logo"> <h2>Text to align vertically</h2…

  43. Hi guys, my website (mrv3d com) does not open on iPhone and iPad. W3C validators says that markup and css is OK. Mobile W3C validator shows no crucial warnings. iPhone emulators open website with no problem. Android devices open website with no problem. I can't test the website myself because I don't have access to an iphone nor does any person around me. Maybe some of you already have this kind of problem before? Thanks.

  44. Started by webDesignerJon,

    Hi everyone. Here I am again with this site, I was hoping I wouldn't have to show it to you again; it's almost complete but I have a problem putting together an image slider using a Javascript. This is an open source JS script that I've been trying to tweak to my own needs. I may not even end up using it but I'm stumped with this right now! :/ Here's a fiddle for it proof that the script should work. http://jsfiddle.net/xc8T2/1/ To save posting space this is the page, please view source html on browser. JavaScript //Background Image Slideshow- © Dynamic Drive (www.dynamicdrive.com) //For full source code, 100's more DHTML scripts, and TOS, /…

  45. I want to create a webpage which involves comparing a twitter users number of followers against their number of following's. All I really need to know is how do I retrieve these numbers? I'm planning on using javascript.

    • 2 replies
    • 890 views
  46. Started by Dipto,

    I have no idea about <base> tag!!! can anybody help me or explain me about base tag... that where i can use this tag.. and how it works!!!!

    • 2 replies
    • 1.1k views
  47. Hi everyone, I can't seem to understand media queries. I understand it sends a question on your browser or screens settings. Then runs conditions based on that query. But I cannot seem to understand how mine is working (no I didn't make it, a very helpful member on here did it for me; thanks ). Could anyone shed some light on helping me grasp it? The way I see it; Media Query changes when larger screen it gives me 4 list items (25%). BUT WHAT'S HAPPENING WHEN IT'S GOING FOR A SMALL SCREEN; I WOULD EXPECT TO SEE UL#NAVBAR LI { WIDTH: 100% } BUT I DO NOT SEE THIS, HOW IS THE BROWSER BEING TOLD TO MAKE THE WIDTH DIFFERENT ON SMALLER SCREENS? (NOT …

  48. Started by rbrtsmith,

    Some of you may be aware, but I wasn't until I came across this article so it's just a heads up to anybody not in the know: It looks as though the <hgroup> tag is now obsolete. Looks like we'll have to start putting subheadings in span tags! link to article: http://html5doctor.com/howto-subheadings/

  49. I am building a web site with a few web pages each with some links to some learning videos (10-20 videos) per page so i dont want to embedded each video After too much trouble with mp4 I decided to use flv The videos are different sizes by default flv open up full screen with google chrome (havent tried other browsers) Im wondering if there is a parameter to open a video in its original size Ideally a webpage parameter (so I only need to add it to each page once) to open any video in its native size?

    • 2 replies
    • 862 views
  50. Hello Developers, I am a newbie into development and one of my client asked me to develop his website in HTML by using one of the template he purchased. I am able to edit all the areas except contact form. I am not able to understand that how can I setup the receiving email? Also, he want me to add an upload file feature which I added in html but not able to make it functional. Moreover, the contact form is not getting submitted. Below are the codes - <div id="content"> <div id="main"> <div id="maincontent" class="positionleft"> <h2>Keep in Touch with Us</h2> <div id="…

    • 4 replies
    • 3k 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.