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

    Hey guys, Built this page the other day (yes I know it's a table) of information (probably best viewed on a smart phone as thats what it'll be for: http://hireboats2go.co.uk/a/date.htm I bascially had it all neatly laid out, validated the code, and the spacing has messed up at the top, where it currently says "Shadowbox", etc, should all be neatly lined up (less line height) and the rows below have too much line height too. I seem to have got myself in a bit of a mess of ems and line-heights, can anyone see where I seem to have gone wrong? I've put the CSS Internal atm just for ease of uploading but will seperate it out later! Thanks in advance! Chris

    • 4 replies
    • 1.1k views
  2. Guest
    Started by Guest,

    Hi I would like to know how to make a drop down menu in HTML/PHP form but i want it so that the rest of the form after the drop down menu will change depending on what option they select for the drop down menu. Is this possible??

    • 12 replies
    • 1.3k views
  3. Ok, I'm sure that I am missing something obvious here, but I cannot seem to get my Nav bar to align right. Its really frustrating me, tried the float:right and also margin:auto, but not getting anywhere. Do you have any ideas? This website is responsive/elastic, so I am reluctant to resort to fixed pixel widths or even percentages if I can avoid them (although will try this if I have to) There must be a simple way of just telling a div to align to the right? http://www.mason-uk.co.uk/responsive/html5boilerplate5-newnav.html

  4. Hi Everyone, Thanks for your help before with responsive web design. The template is progressing nicely now; http://www.mason-uk.co.uk/responsive/html5boilerplate5.html Although I am having some issues in IE with the Navigation. I am using the following Nav (although pretty good in Google Chrome and Firefox): Flexnav: http://jasonweaver.name/lab/flexiblenavigation/ Have any of you experience this? How did you get around it? Do you know of any better code for this? I've been looking at: http://webdesign.tutsplus.com/tutorials/site-elements/big-menus-small-screens-responsive-multi-level-navigation/ Which seems a bit more robust, but again, doesn't quite…

  5. Started by Mufasa,

    hey everyone! Im designing this homepage, got everything set up, started to code. problems. In my design i have... its better if i show you. This is what what im doing needs to look like: ( imgur /Rn1Az6w png ) sorry, not allowed to post links or images. Its a CSS box in a box essentially, but that yellow box will be linked (not sure if thats possible on CSS, im fairly new to it) The issue im having is its not letting me pad it or margin it. As you can see from this example - i lost my other one ( imgur /UP97rGb png ) the red arrow is the button box, and the blue is the outside box. as you can see, the button box is nowhere near where …

    • 5 replies
    • 878 views
  6. Started by Timothy Clark,

    i've started to incorporate css3 rollovers on my buttons. Please see the following page: timothy-clark.com/work.php the top 3 buttons are the ones in question. I found the code on a tutorial but I want to have a different effect than the one it currently does. I simply want the circle pics to fade into a darker pic (though still semi-transparent) and I want the text to fade in as well. I also want the whole button to be clickable. Can anyone help me with the necessary code to achieve this, please? thanks.

  7. Started by Benn_Kingy,

    I have googled and googled and cant find a thumbnail background switcher/jquery. I have a screenshot of the website. The thumbnails will change the massive background image. any ideas to a juqery script that can help me?

  8. Started by WiSkify,

    Hey all, I was wondering how this website { cruyffclassics .dot. com } has pages that act like they're in a virtual space, almost like a photo slideshow, but have things like links and hover points over the top? If someone could point me in the right direction to achieving this, I'd really appreciate it.

  9. Started by rdownesy,

    Hi, I've created a test page using an iCarousel example I saw. I've just used a couple of random images and it works as expected, however, I have a use in mind where I'd want the images displayed to be wider. I created a couple of dummy 800 px wide images, but even when I changed the width options listed in the css file to match the width of my new images, it throws the display completely. I've changed the widths specified in the css file from 500 to 800, but this didn't work and I can't see any variables in the Javascript (well, nothing obvious to me) as to where I can change this. I can't post a link as I have less than 25 posts, but if you Google 'icarousel…

  10. Started by Stuey,

    The icon I have inserted into my Css, is not showing up next to my contact number.

    • 12 replies
    • 1k views
  11. Started by mantis,

    I recently built a site on a usb key that uses fancybox.js. When I transferred the site to localhost and latern to my server it no longer works. The site and file structure is exactly the same so I can't work out why it isn't working. Here's a link to the site: http://rcassidyconsulting.com/index.html The problem is with the Contact link which is supposed to open a Contact form module. Any help would be greatly appreciated.

  12. Started by lanadiago,

    Hi can somebody tell me how i would remove a .fla file from an html document if being viewed on an ipad or iphone so i dont get an error?

  13. Started by MOMSN,

    Hey, need a little help here, how do i create this? Its 3 images and i want them to fill out 100% no matter how i scale it. I have tryed different thinks but can't get it to work. Starting to get pissed! Thanks guys

  14. Started by Lewis Scrafton,

    Having some trouble recently with the floating social bar on my website. Hosted on Wordpress, we're using the DiggDigg plugin. It seems to be working perfectly fine on all pages, except those with embedded elements like YouTube videos or Google Map embeds. Can anyone advise what the problem may be, or how I could rectify it? Thanks in advance! P.S: I should also note, this occurs when scrolling down or up, past the embed. A live example of this.

  15. Started by JaCEnt,

    Morning everyone, I'm in the process of building a new mock-up site, using a HTML5 template, and I am trying to add a login\registration drop down to my current theme. The code behind the registration system works fine - Unfortunately I have come up against some CSS problems when I try merge the two components together which I have been pondering over for about 5 hours now!! What the page currently looks like; dev jacent net / index php What it should look like (excusing the lack of styling to the content); dev jacent net / index_new php It looks to me that the theme's stylesheets are adding additional styles to the top drop down section, however as that…

  16. Started by lanadiago,

    Hi can anyone tell me what this effect is called with the scrolling that animates the blue line on this page: http://newsroom.fb.com/sustainability.aspx?section=0&x=0&fb_ref=snippet-0&fb_source=home_oneline Thanks

  17. I fairly new to responsive stuff, if you were building a template for a cms would you integrate a framework or just create a custom stylesheet? I have integrated an entire responsive framework into a cms before, I do prefer it but I'm wondering in the long run is it worth it?

    • 7 replies
    • 1.6k views
  18. Started by AndyDesigns,

    Hi all, Can't work out why float:right; isnt working on the main photo in Firefox, it works fine in Chrome and IE9: http://www.agtdesigns.co.uk/portfolio%20sites/pizza/index.html Also can't get the curved box shadow effect to work on the slider images Any help much appreciated.

  19. Started by JaCEnt,

    Morning all, I'm playing around with a new HTML5 website and instead of having to edit my header\footer\nav bar etc on every single page every time I make a change, I wondered if there is an equivalent in HTML5 to that of PHP include? Probably a very daft question which one of you HTML gurus will easily answer Thanks!

  20. Is it necessary to use $_SERVER['HTTP_USER_AGENT'] for my website created with Adobe Flash from Google point of view?? Please advise me.

    • 3 replies
    • 9k views
  21. Started by predatorx,

    Hello I am trying to use SASS in a project, but have come across a problem and I was wondering if anyone could help? I have created two style sheets. One called defaults.scss and one called styles.scss. In the defaults.scss I have declared the following: $mainColor: #848484; I then try to call the $mainColor in my styles.scss using the following: nav ul {list-style: none outside none; margin: 0; font-size: 1.2em; color: $mainColor; padding: 50px 0 0 0; font-weight: bold; text-align: center;} But I get the following error message: Syntax error: Undefined variable: "$mainColor". Can anyone see what I am doing wrong? I have compass running. Thanks.

    • 3 replies
    • 877 views
  22. Started by AndyDesigns,

    Hi all, Having some real trouble getting this jquery carousel working, please see live preview and editable code here: Preview - http://jsbin.com/eragic/1/ Editable - http://jsbin.com/eragic/1/edit Your help would be much appreciated!! tia Andy

  23. Started by predatorx,

    I have managed to get the Orbit Slider onto my page, but it does not have the timer or the naviagation arrows like the example given on the Foundation Framework website. I downloaded the Framework using Sass and it says in the documentation that the Orbit JS and CSS will be part of my environment already. How do I get these to show? They do not load when I check using Firebug. When using Firebug it shows the following: .orbit-wrapper .slider-nav span.right { background: url("../images/foundation/orbit/right-arrow.png?1360951464") repeat scroll 0 0 / 100% auto transparent; right: 0; } in _orbit.scss But is says failed to load image. I don't know how to get t…

    • 0 replies
    • 1.6k views
  24. Started by Azuk,

    Hello everyone, I would be pleased to get your help on something I can't get working correctly with a static website I'm building in CSS & HTML. The problem is about my CSS, i would like to have my text menu colored in red when we are on the selected page, but for a reason I don't know yet, the text keeps being displayed in grey. I can't find a solution. Here is the CSS code for that : .current{ font-family:arial; font-weight:bold; padding-top:45px; background-image:url(../images/selected_g.PNG); background-repeat: no-repeat; background-position: center; color:red; #should display my text in red but doesn't work } It's in french, my mother l…

  25. Hi guys, hate to leech on my first post but i hear this is a good forum for help. I have a blog and as you can see there is a white line between the header and navigation bar. I want this line gone so there is no gap between the nav and header. What line of code do i have to alter? i have tried for hours playing margn settings etc;' but to no vail. If anyone needs me to post any code just hola.

  26. My website’s script utilize: VENDOR PROPRIETARY EXTENSION <config>. I want to have my website conform to having valid HTML. Please help me...

    • 2 replies
    • 883 views
  27. Couldn't think of a better title but it's basically what I'm asking. I run a few websites which detail the live gig history of rock bands and I'm redesigning/rebuilding one from scratch at the moment. Usually for a site of this nature I'd create a table with all of the shows listed on one page and then a user would click the one they want and it would open a new page, either static or dynamically generated from a database, with all the details. That means each show has it's own individual page with a title, keywords etc making it appear in searchs for that specific show. As I was re-designing this site I thought it'd be nice to have an index listing of the sho…

    • 0 replies
    • 1.2k views
  28. I have created different tables in different pages of my blog but all tables have same header , i need to enter data in these tables, some data elements are common for some tables, so how can i enter data in these different tables at a time, Like categories to a post..... i will explain my problem with an example In my blog I have created 10 tables in different pages,names of those tables are x0,x1,x2,x3,x4,x5,x6,x7,x8,x9, all tables have same header, if a data entry is common to some tables say x1,x3,x4,x7 , now i need to enter data in all these tables individually, which takes very much time, so please send a way how to enter data in multiple tables at a time...

  29. Started by Stanza,

    Hi guys, I'm potentially going to be working with a client that builds a range of furniture and wants some sort of interactive product configuration interface built into the site. So for example you could select a chair and in real time (using AJAX?) select different upholstery colours/patters and see it demo's on screen. This kind of facility is pretty common on car sites where you can "build" your own car by selecting the model/interior/colour/wheels etc etc e.g: http://www.volkswagen.co.uk/#/new/polo-v/configure/837/paint/ Obviously that example is really "high end" and wouldn't be necessary for my client. But the essence of it is right. If anyone has an…

    • 1 reply
    • 3k views
  30. Started by PJWeb,

    I'm just wondering how those stylish one page websites are made? They have anchor links at the top which automatically scroll down the page when clicked (via jQuery I presume). Thanks

  31. Started by welshhuw,

    Hi, I can not figure out why my text-indent rule isn't working on the Email Us link on this website: http://www.mitchellmalonelaw.com/ It's located in the top right of the page. Can you figure it out??!! I bet it'll be something simple knowing me! NOTE: Sorry, website is now blocked with a landing page theme! Will put up new link soon.

    • 1 reply
    • 1.1k views
  32. Started by jpwd,

    I have a lightbox pop up on a larger screen, which brings up a larger version of an image when clicked. As the site is responsive this lightbox is not required on a smaller screen such as a mobile. Now I don't want all jQuery turned off as there are other elements (drop down nav) that use it. The jQuery in question is in an separate file (galleryItem.js). Can I put something in the CSS or HTML that means the file won't be loaded on a screen less that 745px in width? Alternatively what would be the easiest way of shutting of the jQuery element with jQuery? Thanks.

  33. Started by Lovelock,

    Hello, see here: http://www.damnthatsgenius.com/ you can see the big grey square. In this square i wish to use the facebook plugin in where it shows likes and all that jazz. How can i make it so that the first row of the product results is squashed so it fits next to the grey box, but carrys on and expands back out after on the next line? I cant think how to use the css positioning etc to make it 'wrap' around it. Like the 'tight' feature on word images etc. Craig.

    • 3 replies
    • 1.2k views
  34. Started by justanother,

    Apologies in advance is not correct room.... Im posting this on behalf of a colleague, so dont shoot the messenger Is it possible to somehow use Google tracking to track pdf downloads through a tweet. Ie somehow embed the tracking html in the response field? Or if there is a plugin from Twitter that will allow me to do this? Thanks

  35. Hey, First off the website: http://www.lethal-zone.eu/forum/ This part is built on PHPBB3, with some custom css files and what not with a load of other things to bulk it up. However if you're in Chrome you'll notice that it lags as you scroll down, compared to Firefox where it's nice a smooth (as it should be). Now I've never come across this before, so any suggestions are warmly weclome. FYI: Tried chrome://flags and nothing changes it. I was thinking it was a CSS issue, CSS3 rendering? (The webpage fully loads, so it can't be oversized files slowing things down, could it?). Any help would be gooood!

  36. Started by Flowdy,

    Im in need of more help. Im getting really confused.... My code is as follows. <div id="header></div> <div id="navigation"></div> | this floats left <div id="main"></div> | this floats right <div id="footer"></div> | this is the problem i cant see this unless i type something in. Im assuming its hidden behind the two floating. What am i doing wrong. Thanks

  37. Started by Lovelock,

    Hey, been having this issue for ages... so my .htaccess is this: RewriteEngine On RewriteRule ^([^/]*)/([^/]*)\.html$ /moreinfo.php?title=$1&more=$2 [L] and my original URL is something like this: http://www.damnthatsgenius.com/moreinfo.php?title=Camper+Van+Tent&more=More+Info However nothing happens... if i do e.g: werfgh into my .htaccess file, it gives a 500 error so i know its being read. But it wont rewrite my URL's

  38. Hey guys, I've tried inserting this "Infinite Carousel" on to my page, but the arrows either side to move it don't seem to be appearing, can anyone see what I'm missing here? I also know the arrows are on the top slider are way off in different browsers which I need to fix, not sure if anyone can suggest something for that too? Thought I'd post here save me spending hours trying to twiddle with it! Live Link Here Cheers, Chris

  39. Started by Tom Davison,

    Hi, I've got this script in a fiddle, if you go to jsfiddle and append this to the URL /fRAiLtY/kcxf4/ you will be able to see it, which currently sets a cookie on your browser session, and casually counts up until the session resets. The client wants an amendment whereby the script counts up from midnight that day, i.e. 00:00:01 in the morning and if possible in random amounts. It's a "fake" points indicator that displays how many customer points have been earned that day, so having it increment in even steps is a little bit of a giveaway. If anyone can help it would be appreciated. Cheers.

  40. Started by iMaCuLaTe,

    Hey guys, what types of programs would you need to create a site similar to Facebook or LinkedIn or something like that?

  41. http://gmwd.us/bd13 If you go to that site in Chrome you will see a gray bar going across the site. In Firefox it's not there nor in IE9. Can you help me figure out what the heck it is? Thanks.

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

    Hello, a while back i made a website using the scroll to function of javascript. As far as i can remember it was a couple of lines at top of my page that made it all work fine. Ive been searching but everything seems so complicated and long winded as opposed to the one i had. Any codes from you guys?

  43. So I'm wanting to create a vertical scrolling page using javascripts scroll to. I know how to do this part, but how do I get each different 'page' to fill the screen height wise on all browser and screen sizes? I'm going to be using block colours for each page so it needs to be spot on. Thanks.

  44. Started by Kamrava,

    Hi every body I can't draw a shape with css like this : help me please. tnx

  45. Started by Michael Robson,

    Hi Folks, I'm doing a gallery page on a friends website and was wondering if anyone knows of any php gallery scripts they are impressed by and wish to share? Thanks,

  46. Started by somendra,

    I like a wordpress design. Can I copy it? How to do it and can it work?

    • 2 replies
    • 947 views
  47. Hello, I am looking to create a website which integrates a route planner into its pages where users can type in two destinations and a mode of transport and be given a rout. It will work exactly like this: http://www.connectteesvalley.com/jplanner1.asp Does anybody know how I would go about this. Are there any plugins which do this sort of thinhg? I don't mind paying for a plugin if it does the job. Thanks in advance for your help. John

  48. Started by Juelz,

    Learning CSS and Im stuck! please help, below is the question I have been asked: topic: Multiple Selectors On the CSS tab, select only the h3 header nested inside three <div>s and change itscolor to red. this is what my HTML looks like <!DOCTYPE html> <html> <head> <link type="text/css" rel="stylesheet" href="stylesheet.css"/> <title>Result</title> </head> <body> <h3>I'm plain old font!</h3> <div> <h3>Me, too!</h3> <div> <h3>Me three!</h3> <div> <h3>Forget you guys. I'm about to be red!</h3> </div>…

  49. Started by pacovix,

    Im trying to make my navigation a bit responsive by making font smaller when on tablet/phone, can someone tell me why isnt this working: #navbar ul { margin: 0; padding: 5px; list-style-type: none; text-align:left; background-color: #000; font-family: 'Jockey One', sans-serif; font-size:18px; } #navbar ul li { display: inline; } #navbar ul li a { text-decoration: none; padding: .2em 1em; color: #fff; background-color: #000; } #navbar ul li a:hover { color: #F00; background-color: none; } @media only screen and…

    • 2 replies
    • 1k views
  50. My website is www.sweetsunnyvibes.com which is an alpha build of a relaxation website similar to rainymood.com, with several different variable and mutable sounds. At the moment everything works fine (In chrome) except sometimes the elements are in the wrong place upon loading. In firefox, the problems are worse, firefox seems to have a higher native volume than Chrome, so my initial sound mix is off and also some of my mute buttons aren't working - despite having the same code controlling all of them. Also the background video works fine offline, but not online! All of my code is within the html page so you can easily see how it works. Thanks in advance. Here's a few th…

    • 0 replies
    • 882 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.