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. I hold my hands up - I'm a novice trying to put together coding from several different websites to create the content that I want for a new site. Also I have taken the tutorials online (or so I thought) about the sections I require. But I now have hyperlinks in paragraph text, animatedcollapse (or even just links in general) taking the attributes of the menu bar items. Not sure if there's some way to distinguish between the two - have done this before with <li> and <li2> for example, but it's definitely not working this time... I'm also probably mixing up html and css for styling which presumably won't help! All help greatly appreciated Thx C

  2. Started by Yakindo,

    I've been looking into this for a while and I'm going to start developing a canvas game, just curious as to whether anyone has built a game on these forums and if so, any links? aha

    • 0 replies
    • 971 views
  3. Hi, I'm fairly newish to the whole coding thing and was wondering if anyone could help me. I'm currently using dreamweaver and using the whole div boxes. This is my current website, note the picture of me with the rollover logos... www.adamsdezineshop.com This is what I want to happen on my new layout I'm currently doing, however that was done using absolute positioning. I've realised that its not so good in some high res screens, so have switched to relative and the whole auto margin thing. It's taken some getting used to with the positioning of things, but I'm getting there. One problem about this position is however that when you place a series of imag…

  4. How can I implement 'text content with scroll' in a slider? Also please consider the design responsive. Thanks in advance. [snip]

  5. Started by Isa Al,

    Hey I am creating a new site and I like Mashable menu but I don't wanna do like it because I think it's copy right for mashable but I was amazed that many websites are teaching how to do like it http://megabloggerlab.blogspot.com/2012/07/mashable-drop-down-navigation-menu-for.html http://webilyzer.com/make-a-mashable-like-menu/ so is it a copy right or it's a normal menu and anyone can have it? I mean that if I do a drop box like Mashable or buisnessinsider is it copy right? because also my website is about tech like mashable and I don't want google adsense to reject me because of this menu or any other problems later knowing that I have a paid hosting and domai…

  6. Hello, i have a textarea where users can post in what they have on other forums to save them typing it all again. However the bb code do not display an image. How do i make these work on my website? Cant find anything about it. After some more looking i have to integrate bb code somehow into my website but have trawled google and yet to find anything... Craig. SOLVED! Found some guidance, had to bodge the tag part but ah well! it works function basicbbcode($text) { $text = str_replace("[b]", "<b>", "$text"); $text = str_replace("[/b]", "</b>", "$text"); $text = str_replace("[u]", "<u>", "$text"); $text = str_replace("[/…

  7. Hey guys, I'm wondering whether any of you have any methods, which you implement when you're creating responsive websites for your JavaScript, I've been using: if ( $(window).width() >= x ) { // code here } and: $.browser.device = (/android|webos|iphone|ipad|ipod|blackberry/i.test(navigator.userAgent.toLowerCase())); They both seem to work, however I wondered if there's anymore ways which you've come across that could help me and maybe anyone else on here out, Cheers

    • 6 replies
    • 978 views
  8. I have results from a database displayed and they can be sorted via Ajax. I don't want them to just appear though. I have done a search and can't find anything under the terminology I'm using. Something like the old results fading out and new ones in. Or them all muddling and moving around on the screen. Just something less bland. Any ideas?

    • 1 reply
    • 892 views
  9. Hi, I'm looking to link to a specific part of another page from a button on my homepage, now I know I can normally do this by adding an ID to the part of the page I want to link to and add that to the end of my href, E.g. www.mysite.com/mypage.html#section ... BUT the page is dynamically created via a CMS (Expressionengine) and the .html part of the link doesn't exist. Does anyone have any ideas of how I could go about this? Thanks.

    • 3 replies
    • 896 views
  10. Started by LukeN24,

    Hi Guys I need some help, I want to do the following: Have a button that when clicked will go through to a random website, the websites will all be in a JavaScript array. The website that is chosen from the button click needs to be completely random and not the same if the user visits the site again. Does anyone know an easy way to do this using JavaScript? I thought of just using an Array and go to the next one after each click but that is not random. Is there a way that we can have a constant loop through the array of websites and when the user clicks it stops on a website? Let me know guys I know i'm asking a lot so any input you can give would b…

  11. Started by Isa Al,

    Hey I have a question about the sharing buttons like FB,twitter,google + etc... in this website http://forum.fiverr.com/ on the right there are buttons for facebook and twitter and others so my question is : are they powered by addthis or sharethis and like this sites or they are by coding and scrips? and if they are powered by a site please let me know which site ty

    • 3 replies
    • 878 views
  12. Everything that I put on my site regarding plugins jquery UI does not work, porfavor me help!!! In the example below I tried to use the Tooltips, and has not worked. <!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 Tags--> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="author" content="Alexandre S. Fonseca/ Gabriel S. Rodrigues"> <meta name="description" content="Etekianos - A rede social de ensino de Centro Paula …

  13. Started by Lovelock,

    Hello, trying to do a simple write to database form with validation. I have had it working on another website but cant get it working with a new project... heres some code: The form: <form action="process/addnewbuild.php" method="post" id="addnewblog"> <input type="text" name="addbuildtitle" id="addbuildtitle" class="addbuildtitle" placeholder="Build Title" /> </br> </br> <input type="text" name="addbuilddesc" id="addbuilddesc" class="addbuilddesc" placeholder="Enter a short description about your build" /> </br> </br> <input type="text" name="addbuildcover" id="addbuil…

  14. Started by Sp00kie13,

    I'm currently developing an interactive part of my website and am have some real difficulty with my array. I currently have over 2000 questions, but have restricted the loop to just 50 at a time. xml.find("question").each(function(){ var q = $(this); number++; //console.log(q.contents().find("media").text()); var question = new Question({ question:q.contents().first().text(), image:q.find("media").text(), prefix: prefix, number: number, fixHeightListener: fixWrapperHeight, questionListener: questionListener, singlechoicehint: singlechoicehin…

    • 0 replies
    • 878 views
  15. Started by Lovelock,

    Hey, trying to make a mini blog and want my blog results to sit like pinterest does it. I have everything set up and currently have the images with a max width of 200px and am getting the random height ratios etc as i want. But the images are not sitting how i want. At the moment they site perfectly in rows. How do i make it so they sit underneath the last one without being in perfect rows? Hope this makes sense?

    • 2 replies
    • 869 views
  16. Hi Guys, Firstly I have a Magento based site... and.. I want to replace the slider on my eCommerce website to a big image - for example, lets say a photo of a guy and a girl - so If you hover over the guy it is click-able and a say 50% opacity colour overlay highlights him (or puts a border around him etc) and it pops up 'shop guys' and vice versa for girls. Whats the best way to implement this sort of thing? It'll need to be a polygon based map. Ive been looking at all sorts from html image maps (from what I can tell though these don't have all the options i want), to css, jquery, js maps etc but just don't know (any other methods that I don't know about?) - I was …

  17. Ok, I'm now stumped. All solutions googled don't seem to work or I'm already doing: Here's a sample page: http://www/fizzwebdesign.co.uk/sample The H1 tag (the main on page title) should be using an installed font - it works for IE7 & 8, but not upwards. Font folder loaded in root, H1 html code linking correctly. This CSS is generated from fontsquirrel, so surely should work? @font-face { font-family: 'sansita_oneregular'; src: url('../fonts/sansitaone-webfont.eot'); src: url('../fonts/sansitaone-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/sansitaone-webfont.wof…

  18. Started by Isa Al,

    Hey I am creating a new site and I like Mashable menu but I don't wanna do like it because I think it's copy right for mashable that's why I wanted to ask you if you know any drop down menu that is not copy right and with pics in it so like mashable or businessinsider but sure not copyright BTW, a pro designer gonna do it so no problem about codes or designs ty

  19. Started by stevefai,

    Hello. I experimented all morning with different types of layouts and I seem to have stumbled upon this problem. Here's what I have so far: http://pastebin.com/5qtPi7ff . Please load it in your browser. I don't know if you could tell, but I want the black box to be just below those green boxes. Sure, I could use relative or absolute positioning, but I feel like that's not a very good practice because the size of the green box could change anytime new content is added inside of it. So. Is there a simple way to tell the browser to display the black box just below the green ones? (something like overflow: hidden or clear)

  20. Started by iems,

    Hello. I often come on here to browse and sometimes click on the links to your sites. In a couple of instances in particular, the site comes up "quirky" and doesn't look good. I hit F12 in IE9 and sure enough, the site was in quirks mode. I looked up why - it has to do with not having a <doctype> in the header and / or the <doctype> not being the very very first thing in the header. So just wanted to give a heads up, you might need to double check that. I'll PM the site in particular where I am seeing this. Thank you for your time.

  21. Started by Matthew Claffey,

    Hello, I have a couple of errors in my code which I have no idea how to fix.I have made the site one page so when the user scrolls to the about us section for example it will hover over the button in the menu. Now that all works but if I was thinking from a users point of view scrolling in between these sections it seems to glitch between the buttons. if there is any other errors you see let me know. http://www.matthewclaffey.com/updatesite/index.php live example jquery code: (I have only a few months experience in jquery) $(document).ready(function(){ $("html, body").animate({ scrollTop: 0 }, "slow"); $('.about-me').hide(); …

  22. Started by peter12321a,

    Ok guys I want to turn this photoshop design into a webpage and I have no knowledge of coding at all. Does anyone know a very basic tutorial that could help me do this ?

  23. Started by Row,

    Hi guys, I found this odd failure in the script, but I can't figure out why the script isn't running correctly in Chrome! It does run in IE and Firefox, what already is strange huh? Here is my test page for the code: http://rowruffdesign.nl/tutorial/test/ I got the script from: http://www.script-tutorials.com/pinterest-like-script-step-1/ I wanted to give this a try It only works after you pressed on Comment on one of the pins, but that isn't a good solution of course. I tried to load the function on page load, but that didn't work! Here is the code that should deal with it: $(document).ready(function() { // masonry initialization $…

  24. I downloaded a theme on wordpress but it's poorly designed and I've been making a few changes. Can someone please help me edit this code to make the facebook/twitter links open in new tabs rather than on in the same tab. And can you also tell me the changes you made to it incase of next time. Thanks

  25. Hoping someone might be able to help me out with a bug on the below site: http://skepticamp.co.uk/ You'll notice on the home page that there is a section immediately under the header/navigation area with the id of #showcase-wrapper. Looks fine on my laptop with the browser window at full screen, but as soon as I reduce the window and some of the image inevitably moves off screen, it disappears. If you then scroll horizontally, the background image is cut off. It's even worse on a tablet or phone. When the page loads, only part of the background image shows up (about 1/3 on an iPhone, and changes on the iPad depending on orientation at load). I encounter…

    • 2 replies
    • 895 views
  26. I have a DIV with a specific image as a background (inside that DIV). Now I want that image to be clickable, so I’d need to put the DIV inside an A. I’ve read that even if I would use display: block, it would be still far from correct. Now, those posts I’ve read are quite old already. Has there been some changes with HTML 5? Because that’s what I’m coding in. I could of course just simply place the image in an IMG tag, but I’d prefer to have it inside the DIV to be honest. It’s harder to download (for normal people) for example. Thanks!

  27. Does anyone know why my buttons are showing these weird corners on Safari after they have been hovered over? Here is my code: <div class="buySaturday clear"> <h4>Saturday 25th January</h4> <p><a href="#" class="buttonPink">Buy Tickets</a></p> </div> .buySaturday p { float: left; width: 40%; margin-top: 0; font-size: 1.5em; } .buttonPink { color: #ffffff; text-transform: uppercase; background: #bc1789; display: block; padding: 10px 30px; text-decoration: none; font-size: .6em; border-radius: 5px; font-weight: 300; } .buttonPink:hover { b…

  28. Started by question1234,

    Hello Guy's i want to learn HTML.Please suggest me any best site to learn this language...

    • 10 replies
    • 1.6k views
  29. Started by Revs,

    Is there a way how I can do this? Always when I use the <p> tag, it would do a huge margin everywhere around it. It’s annoying if I would like to have the text sticked underneath another text, in smaller for example. Then I’d need to do something like margin-top: −15 px which is so wrong on so many levels lol. I know that <p> is meant to be a paragraph. I could use <span> but it doesn’t jump a line and I don’t like using <br />.

    • 6 replies
    • 887 views
  30. Hi, I'm building my first website, and i noticed my layout is pretty much the same in every browser, except for chrome, where characters seem bigger. After a few head scratching, i figured that the chrome navigator was sometimes installed with the generic option of "large" for the font size ( inside the "web content" section) instead of "medium" (which would give the same layout as in all other browsers). When the option "large" is chosen for the font size instead of " medium", my text is overflowing a little outside my paragraphs. I use "EM" for the size of my letters; should i use instead "%" ? Is "%" always preferable to any other size value when in…

  31. Started by nfbnnttn,

    Hi, I'm creating a website for music downloads (legal). I'm going to have a list of tracks put into divs, row by row. There is also one main player which will be placed above this list. Beside each track title, there will be a play button. When people click the play button, I want the main player to load the selected track into the player and start playing automatically. While a track is playing, if the user clicks on another track's play button, I want the track to change automatically to the new selected track. I hope you understand what I'm trying to achieve here. So, the main question is...shall I use flash or jquery or something? which one will …

    • 2 replies
    • 894 views
  32. Started by daydreamer,

    All my site links are take the style of .post and not using the site wide link styles links in <div class="post">Link</div> are working fine My standard site wide link styles a:link,a:visited,a:active { color: #3599F3; outline: 0; margin: 0px; text-decoration: none; -o-transition: .5s; -ms-transition: .5s; -moz-transition: .5s; -webkit-transition: .5s; transition: .5s; } a:hover, a:focus { color: #3B5A9F; -o-transition: .5s; -ms-transition: .5s; -moz-transition: .5s; -webkit-transition: .5s; transition: .5s; } Link styles for div .post a:link,a:active,a:visited { font-size:16px; font-weight:700; color:#595959; } .post a:hove…

  33. I'm trying to center a placeholder for a text input field but it won't work for Mozilla Firefox, I feel as if I am going to go insane what do you suggest I do? it seems to work on other browsers I've used (Google Chrome). Current CSS code: ::-webkit-input-placeholder { text-align:center; } :-moz-placeholder { /* Firefox 18- */ text-align:center; } ::-moz-placeholder { /* Firefox 19+ */ text-align:center; } :-ms-input-placeholder { text-align:center; } Google Chrome: Firefox:

    • 3 replies
    • 5.2k views
  34. I have a line, with a question, a question anyone can ask. Underneath that, I have (in a smaller font), the username of who asked the question, in which category it was asked, and at what time it was asked. Left of that, I’d like to display the avatar of the user. I want it to take the height of both lines. I want to do that by using lists, I’m not sure which one would be the best, however. The avatar would basically replace the bullet with list-style-type and list-style-image or whatever it was. I just stumbled across another type of lists on W3 Schools, which is <dl>, the descriptions list. Would this be inappropriate? The “description” in this cas…

  35. Started by CreativeSheep,

    I want to insert the Windows Logo [ÿ] into my HTML document. I set the rule to font-family:wing-dings, from my searches there isn't a solution, besides either inserting a huge CSS code to create the windows logo using browser hacks, which is useless to me because the HTML document will be viewed on IE7+ or create a windows logo image, which for something like this is an overkill, sure I could do it in 1.5 seconds I prefer to use code If someone can point me the right direction, I would appreciate it.

    • 1 reply
    • 994 views
  36. Hi, I'm building my first website and i've set my webpage to have the fixed resolution of 1000 pixels wide and 850 height. Once i'm seeing it on small resolution screens ( i have an old 800 x 600 LCD monitor)) the webpage isn't centered but appears shifted to the top and left side of the webpage; this forces people to scroll on the right and bottom to see the high resolution pictures my webpage contains. Is there a way for me to center my webpage both horizontally and vertically on these smaller resolution screens ? People will still be forced to scroll, but at least they will see the center of the pictures the first time they load the page, instead of seeing …

  37. Started by dustinquash,

    I made this thread in General but am reposting here as I'm trying to get Technical advice: Hi guys, just wondered if anyone else knows about this cookie law from the EU? I'm still learning how to make websites (thinking of making a career of it in the future) but this new cookie law concerns me. I'm not intending to have cookies on any website but it seems that if you just make a simple flash video (like a short clip of a spinning graphic or similar) and add it to your site, apparently you have to declare this under a 'cookie policy' as flash puts LSO's (flash cookies) in flash files by default. So: 1) Is there a way to remove flash cookies from a flash file created…

    • 3 replies
    • 870 views
  38. Started by dpuk44,

    Got a site but am having difficulty loading the windows stylesheet, but I cant see why this isnt working. I have a Windows Radar phone to test it on, but no changes are happening. Why is this? The test site can viewed at http://www.nurdit.com/saschapt index.php <!DOCTYPE html> <html lang="en"> <head> <title>Sascha Personal Training & Sports Massage Therapy | Home | Bournemouth | Poole | Dorset</title> <meta charset="utf-8"> <meta name="description" content="Welcome to Sascha Personal Training & Sports Massage Therapy based in Bournemouth, Poole, Dorset and the South Coast"> <meta name="keywords" content="personal …

    • 12 replies
    • 1.6k views
  39. Hi Gang ... Working on a responsive list which adapts from 4 column to 3, 2, 1. Most of it is working fine but I have hit my age old problem of floated li getting caught on the floated li above with longer text ... I really want to put this to bed ... permanently. The Fiddle - you can see the problem in the image below. I'm running out of ideas on how to do this. Help appreciated

  40. First Off not sure if this is the right section... but here goes... OK so here is the story, I run a couple of business's of a slightly adult nature (all legal) about a year ago we lost one of the partners in the company who if you like took care of all our "Technical Needs" we've made do but really want to find someone who is interested in coming on board... Ideally this person would have programming/coding skills (I am very untechie so hope that's the right term) and a bonus would be if he/she also had some design skills... We are ideally looking for someone who want's to become part of the company, there is no buy in except your skill base... Oh a quick PS... we a…

  41. Started by fleur,

    Hello! I was looking for plugin making this "on mouse over" effect for the long time. I am talking about this site http://www.simonbutcher.net/ When i put mouse over the text line (on the right of the face) the paragraph is appear. What plugin or code help me to achive this. I will be very greatful for code or link. Thank you!

  42. Hi guys, I hope someone can help me. I am creating a music download website and would like to list each track in divs rather than tables. I want the main details of the track to display in the .main div and once clicked, to collapse some more info about the track (.under). I have designed everything and all I need help with is the actual expand/collapse side. Please see this image for more info....http://s22.postimg.org/rmfkzsssh/samp_fw.png Also, there's a + sign at the right end which I want change to - on click. I also want the .main div to change background color to #999 when the .under is visible/collapsed. Here's the html: <body> &lt…

  43. Hi guys, Fiddle: http://jsfiddle.net/tJzj3/2/ Full site: http://fiddle.jshell.net/tJzj3/2/show/ Can anyone tell me if there are any obvious flaws in this for working across mobiles? On all the devices / emulators I've tested this on it's worked perfectly for the most part. However, when I test is on my phone (HTC Motzart) the site fails. Made me think this method may not be as robust as I was hoping. Can anyone clarify if this is the correct way to do this? Source is here: http://artprima.eu/777-how-to-vertically-center-div-content-and-add-a-sticky-footer-at-the-same-time.html Thanks for any advice.

    • 0 replies
    • 1.3k views
  44. Hey guys, I've been learning some javascript and i've tried to make my own little script for changing my header's text. I don't really know if it is the right way to do it but it works so far. But now i'm kinda stuck. Although everything works i would like to add a fading effect on the changes for a more subtle and professional look. I don't really know how to do it though. I hope someone can point me in the right direction? You can view the result here (just a rough example) function replaceText() { if(teller==1){ lettre.innerHTML="D"; lettre.style.color="#966ea1"; lettre.style.left="500px"; lettre.style.top="200px"; bigtext.innerHTML="Dynamic"; bigtext.st…

  45. Hey My client wants to upload images and text to a used products page. Can anyone advise what to use Or supply code to upload the photos, add product text, display gallery Thanks

  46. Started by CreativeSheep,

    This page, the H1 header is cut off when viewed in IE7, how do I fix ? Is there any way to get hinted at what the problem could be when dealing with browser issue, firebug won't necessarily point out the problem, may there is something I'm unaware of.

    • 24 replies
    • 1.3k views
  47. Hello! I’m having a small problem here. I have a <div> inside a <div>. Let’s just call them DIV 1 and DIV 2. DIV 1 is more like a “main box” to keep other DIVS in one place. One of them being DIV 2. DIV 2 is a float element. The problem is, then DIV 2’s height increases, the one of DIV 1 doesn’t. Which means DIV 2 will kind of “overlap” DIV 1. DIV 1 doesn’t have any fixed height. I’m pretty sure it has to do with the float element. If anyone knows the solution… throw it over! I can also upload a picture and some code if needed.

    • 5 replies
    • 1.1k views
  48. Started by Carlos001,

    I wanted to know how i use java script so that they not affect the loading time of website. My website takes long time to loading. And I think this because of java script.

  49. CSSmatic is a very useful tool for your CSS styles. CSSmatic makes it easier to develop new features in CSS3 like boarders, shadows, textures or gradients. It will automatically generate the code and show you the effects in real time. It is developed using java script in order to help designers and developers to create and apply borders, texture and shadows,

    • 5 replies
    • 1.1k views
  50. Hi, I am making a blogger website for my friend. I am using a premade template and tweak it a little bit to fit my friends wishes. But the template is build this way so regular posts are displayed first and then comes the Text/HTML widget. I want to place a short text before all the regular posts on the upper left side below the menubar. I tried it to arrange it through Blogger but somehow I can't place anything before the regular blogposts except the widget Popular Posts. The widget Popular Posts has the spot I want to use for my Text/HTML widget. But I don't know how to move my Text/HTML widget to that spot. They renewed Blogger so I don't have a clue how to t…

    • 1 reply
    • 1.1k 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.