Frontend
HTML, CSS and JavaScript - Having trouble with CSS? Post your question here. Find solutions & discuss stylesheets, hacks and techniques.
13,911 topics in this forum
-
- adaptive
- responsive
- fluid
- design
-
Tagged with:
Hello. I have just created a couple of video tutorials (beginners/intermediate) about how to create responsive designs from scratch. I would really like some feedback not only about the methodology but also about the format. Is it too fast, too slow, too confusing, too boring or what do you think? I will really like to improve my tutorials and I'm currently looking for work as a teacher so your feedback will much appreciated. Part1: https://youtu.be/DPd-g892Kuc?list=PLdczXqd0Xsf4zI_LLr14W3GLNOqRxY3PS Part2: https://youtu.be/hZ4EdO-iZeI?list=PLdczXqd0Xsf4zI_LLr14W3GLNOqRxY3PS The total time of the tutorials is about 30 min. I have disabled all adverts for …
-
- 7 replies
- 2.6k views
-
http://bit.ly/1bvsRXw When you scroll down my footer items fade in, however if you keep scrolling they keep trying to fade in. I've been trying and trying to work out how to fix this with no luck, if you could please help! <script> $(window).on("load",function() { function fade() { $('.fade').each(function() { /* Check the location of each desired element */ var objectBottom = $(this).offset().top + $(this).outerHeight(); var windowBottom = $(window).scrollTop() + $(window).innerHeight(); /* If the object is completely visible in the window, fade it in */ if (objectBottom < windowBottom) { if ($(this).css('op…
- 2 replies
- 1.5k views
-
Hi, Trying to get the mobile menu to kick in on landscape orientation for iPad but its not working: http://www.manvanglasgow.co.uk/index.html I'm using the following code: @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 2) { #MenuBar1 { display: none; } #nav-bar { background: none;} .js .selectnav { display: block; width: 90%; margin: 0 auto;} .hs-menu-wrapper {display:none;} } I've tried it with and without the (-webkit-min-device-pixel-ratio: 2) with no joy. Any help much appreciated.
-
- 2 replies
- 1k views
-
-
Hi I'm working on a website that has a video background with an Owl Carousel overlayed. When changing slides on a PC/Laptop everything is fine but when using a mobile device on pages that requires the user to scroll down when the visitor moves to a different slide they have to scroll up to see the content. I'd like the slide to automatically scroll to the top when a slide is changed. Below is the javascript that my navigation uses. Presumably I can add something to this to force the page to scroll to the top. I've tried a couple of things but neither have worked. The website is www.handcoded.co.uk/2015 Any help would be gratefully appreciated. $('.homestart'…
- 4 replies
- 2.1k views
-
I'm currently creating a website. I'm creating a section that willd display 3 testimonials, which will randomly display from a selection. I have got it working using a XML file that holds all of my testimonials. (testimonials are placeholders) I have a couple of questions that I would like to ask the professionals... 1 - I would like to style the 'author' to make it bold/different colour/ size etc. I'm struggling to get this working. I've tried adding HTML to it using CDATA and i've tried attaching a CSS stylesheet but none of them work 2 - Javascript experts - is it possible to add a line of code so it will never display the same quote at the same time? …
- 4 replies
- 2k views
-
I recently tested a website in 'Nibbler' which someone on here linked to (http://nibbler.silktide.com/) One problem it found was: 'No images have defined sizes. Add width and height attributes to all image tags. The width and height you specify should be the same as the source image. If you want to resize an image in the browser, use CSS.' I didn't realise this was necessary and typically only really set min/max widths on my images with CSS as I want them to be responsive. The w3 validator doesn't have a problem with it, so do I really need to do anything about it?
- 7 replies
- 2.7k views
-
Good morning, I am very sleep deprived and need my soul saving lol. I am working on a site and I can see lines in the background colour at the bottom, I cannot see what is causing this. It is a very subtle difference but you can see it. The background colour should be #455259 and nothing else... can you spot the problem? The url is here. Thank you in advance lovely people x
-
- 2 replies
- 1.4k views
-
-
How do I view the JS object that Modernizer produces ?
-
- 6 replies
- 1.4k views
-
-
Am I using the clip-path rule correctly ? background-image: url(); clip-path:url(); SVG of the above image My background image is not being clipped where the clipped image is ?
- 4 replies
- 1.1k views
-
Adding ?iv_load_policy=3 to youtube videos takes away the annotations but gives the video a blue border.. but if you click it goes away? Anyone know how to get rid of it?
-
- 8 replies
- 2.5k views
-
-
Can anyone help me style the tooltip on my Google Map please (bottom of the homepage and same one on contact page) - www.ryanfit.co.uk? Here's the JavaScript I have. I need to move the tooltip slightly to the left, add line breaks to the address and make it blue with white text. Thanks guys!! <script> jQuery(window).ready(function ($) { $("#map").gMap({ markers: [{ latitude: '.$tmp_conf['post_coords']['lat'].', longitude: '.$tmp_conf['post_coords']['lng'].', title: "Hub Fitness <br /> Milltown <br /> St Ra…
-
- 2 replies
- 1.2k views
-
-
Hi guys, anyone can help me in decreasing or increasing the opacity of the main-content-area. I have used Ruby theme: themeforest(.)net/item/ruby-wordpress-theme-for-business-and-portfolio/10776135?ref=KingKongthemes about 1 month, everything works just fine, only customizing the opacity of the main-content-area I don't know how to solve. Please, let me know. Tks
-
- 2 replies
- 1.5k views
-
-
I have been working on fixing this bug for two days now and hair has nearly been ripped out from this bug. I am using Hammer.js to make the image zoom,pinch,pan and everything works fine and dandy. However the client has come back saying that on a landscape device you cant scroll to get to the bottom of the image. I have tested this and my senior has tested it and he says it something to do with Hammer.js. I have used the overflow scroll on the element thats containing the image but the image is 100% width so no matter where I scroll it will be on top on that image. Has any other Hammer js users came across this problem? if so please advise. Cheers!
-
- 0 replies
- 2.1k views
-
-
Hi all, I made a popup search box in standard HTML, but I can't get it to work in WordPress - can anyone tell me what I can do to get it working, maybe there is a plugin I can use? If you visit this page and click on the search icon on the menu you will see what I am aiming for (incidentally, it only works properly in Chrome for me). <script type="text/javascript"> (function(w,d,t,u,n,s,e){w['SwiftypeObject']=n;w[n]=w[n]||function(){ (w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t); e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.insertBefore(s,e); })(window,document,'script','//s.swiftypecdn.com/install/v2/st.js','_st'); _s…
-
- 1 reply
- 1.1k views
-
-
I am trying to use the iFrame tag to hide my folder and file-names in my URL. I've found the correct syntax from online tutorials. However, when I execute it, for some reason, the window which is displayed is severely "restricted" The Height and Width are restricted to only about a fifth of the entire screen. Here is the code for my INDEX.HTML file : <!DOCTYPE HTML> <html> <head> <title>My Title</title> </head> <body> <iframe src="mytest.html" height="100%" width="100%" name="Your Title" /> </iframe> </body> </html> Index.html is, of course, the default webpage f…
- 11 replies
- 4.7k views
-
I'm just finishing off my first portfolio site and I've added an button which when you click on it gives links to all my social media pages. However when I go to make it responsive it goes out of place. It starts off following my cursor as though it'll be responsive no problem so it would be fine on iPad's etc but when i go even smaller to smartphone size it stops. Anyone got any ideas what it could be?
- 9 replies
- 1.5k views
-
Following this tutorial here on form validation using jQuery and dosnt seem to be working. No idea why as have included the js file and the jQuery lib? <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> <title>Move Makers</title> <!-- Bootstrap --> <link href="css/bootstrap.min.css" rel="stylesheet"> <link href="css/style.c…
-
- 3 replies
- 3.5k views
-
-
Hi. I have those two elements: .cover { background: #000; height: 100%; opacity: .4; position: absolute; transition: all 1s; width: 100%; z-index: 900; } .title{ margin-top:-221px; margin-left:15px; margin-right:15px; height:105px; color:#eceff0; position:relative; z-index:980; } As you can see they have different z-index value. What i want it to change the opacity of .cover when mouse is on .title Tried that code but doesn't work .title:hover .cover{ opacity:0; } Any idea ?
-
- 8 replies
- 2.4k views
-
-
Can anyone tell me how I redirect users to a "thank you page" following a successful ajax form submission please? The site is http://www.ryanfit.co.uk/ebook/ I need to track conversions using the following code: Happy to listen to any better ways of doing this too! (function() { var _fbq = window._fbq || (window._fbq = []); if (!_fbq.loaded) { var fbds = document.createElement('script'); fbds.async = true; fbds.src = '//connect.facebook.net/en_US/fbds.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(fbds, s); _fbq.loaded = true; } })(); window._fbq = window._fbq || []; window._fbq.push(['track', '6025272007909', {'value':'0.00','cu…
-
- 2 replies
- 1.2k views
-
-
How can I make the columns all the same height? <div class="container"> <div class="row"> <div class="col-md-8"> <img src="img/movemaker-logo.jpg" class="img-responsive" alt=""> </div> <div class="col-md-4"> <img src="img/snail-logo.gif" class="img-responsive pull-right" alt=""> </div> </div> <div class="row"> <div class="col-md-3 cream"> <ul class="nav nav-pills nav-stacked"> <li role="presentation"><a href="index.html">Home</a></li…
- 35 replies
- 8.8k views
-
Hello. I have that simple div <div class="labels"> <span style="margin-left:10px;">atttt</span> <span style="margin-left:65px;">attt</span> <span style="margin-left:45px;">att</span> <span style="margin-left:50px;">at</span> </div> .labels{ padding:0; clear:both; margin-top:160px; /* font-family: 'Roboto';*/ font-style: italic; font-size:12px; font-weight:bold; color:#95a5a5; } I linked google font roboto within the page, and realized that if i use that font in the css, padding values of span are changing between chrome and firefox browser. From the other hand if …
- 14 replies
- 1.8k views
-
So recently I was looking at some well-designed websites, with the functionality that I want to achieve / learn. However, the problem is, that even though I manage to download the complete website (most recently I was using Scrapbook from Firefox), the website is not fully functional. Seems like the JS isn't working.. For example, a page like this. When downloaded, the animations, progressive loading etc. are missing. I am guessing it's using Ajax to communicate with the server then? Or what's the reason? Is there a way to get it working? Cheers.
- 7 replies
- 1.4k views
-
Hello out there. I'm just registered @ this forum and i'm kinda new in web dev area so i want your lights I'm trying to create a navigation menu which will be consisted from circles. Here is an image i draw to explain to you. The idea is this: When user clicks on circle with number 1 , the next two circles appears below the first (with the number 2) and finally if you live your mouse on circles with number 2, circles of the third generation appears. The way i tried it so far is by using CSS with a big border-radius value but i reached only the first circle. I don't know how to add the rest of them (i used ul and li) . Also here is the code jsfiddle…
-
- 3 replies
- 1.2k views
-
-
Most of us are aware of ES6, the next generation of JavaScript that has many nice features https://medium.com/sons-of-javascript/javascript-an-introduction-to-es6-1819d0d89a0f I thought I'd share a transpiler that I've been using on a few projects and it's working really nicely. It transpiles ES6 code into ES5 which is compatible in all the modern browsers IE9+ Here's the transpiler that I'm using: https://babeljs.io/ It's also available as a Grunt task.
- 3 replies
- 2.1k views
-
I have a paragraph that I want aligned at the bottom of a div. Without setting the div to position relative and the text to position absolute is there another more modern approach?
- 9 replies
- 1.7k views
-
Hi there ... i am facing problem... link here Please look at the menu bar. after cliking the about us button the button highlighted but not selected How can i solve this issue ? here is my menu html <nav class="top-nav"> <ul> <li class="selected"><a href="index.php"><span>Home</span></a> <ul> </ul> </li> <li><a href="about_us.php"><span>About us</span></a> <ul> </ul> …
-
- 1 reply
- 3.9k views
-
-
Suppose you have multiple background images <background-imageA>,<background-imageB> you want to apply a bottom-padding, only to the first <background-imageA> would the correct method to write this out be as such; bottom-padding:0, bottom-padding:<value> because it's not working
-
- 0 replies
- 1.1k views
-
-
Hy! I've made a mistake and I need to fix it quick but I can't find what is wrong. See the attached pic. Blogger platform, Custom theme. Please help me! Thanks!
-
- 2 replies
- 1.1k views
-
-
Hi there, i am facing scrolling problem on my canvas.. here is 2 canvas, ans one canvas has 5/6 image. i want to scroll it. But its not scrolling live link is here and code is here <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Drag&Drop between Two Canvases</title> <script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script src="http://code.jquery.com/ui/1.10.1/jquery-ui.js"></script> <style> body { background-color: ivory; padding:10px; } canvas { border:1px solid red; } #canvas { overflow-x: scroll; over…
- 3 replies
- 1.8k views
-
Hello guys I know my post are really irritating . So i'm with my new problem. HOW vast can map tag pe usable .Can i use it to so fine areas instead of rectangles , circles . ????
-
- 3 replies
- 1.2k views
-
-
Is HREF ATTRIBUTE is only used to direct the destination link .. ???????? & SCR ATTRIBUTE FOR IMG LINK
- 2 replies
- 1.4k views
-
hello guys , I just know about is there any possible way to add two func. in style attribute . LiKE <p style="font-family:verdana" & font-size:90%" >IS THERE ANY WAY TO USE THEM BOTH IN SINGLE ATTRIBUTE</p> P.S. I am waiting for your help .thank you .
-
- 2 replies
- 1.5k views
-
-
Been trying to get my head around this. Works fine in Chrome but breaks in IE and Firefox. What is the best way to center a Bootstrap website both horizontally and vertically? <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> <title></title> <!-- Bootstrap --> <link href="css/bootstrap.min.css" rel="stylesheet"> <link href…
- 1 reply
- 1.2k views
-
I found this - http://kryogenix.org/code/browser/everyonehasjs.html and it made me think. Which points do you think should be taken into account? To be honest I can't imagine life without Javascript / jQuery and although I do try to provide fallbacks for users with disabled js, some complex features are simply not usable without it. Interested to hear your thoughts.
-
- 4 replies
- 1.1k views
-
-
I'm currently creating a website but im having an issue which I'm struggling to work out the cause of it! Something in my code is pushing the browser window to the right. On desktop it displays ok, but there is a horizonal scroll to the right with blank space. On mobile this is causing more of an issue as the white space is visible. Can anyone using Firebug look at the code and see if they can work out where the problem is. It something to do with the #restoreBanner divs http://s230164745.websitehome.co.uk/ Thanks Nick
-
- 1 reply
- 1k views
-
-
Hi Gang, Working on a project and the customer wants registered users to be able to add video / tours from various media channels. Originally they just said YouTube but from their samples I also have Google Tour and Vimeo too. So, I was just wondering if anyone knew any other big video suppliers which a registered user might want to embed from? I'm trying to make this as simple for the registered user as possible whilst retaining control over various players / sources; essentially they paste a path like https://youtu.be/dbckIuT_YDc and we do the rest. Uploading the file to the main site isn't ideal, some registered users can barely tell the difference between …
- 4 replies
- 1.8k views
-
<script> $( document ).ready(function() { $("ul.products > li").addClass(function(i){return "item" ;}); }); </script> This code above adds a class "item" to each of my product li's. I am trying to add: "sbsa-animation="bounceInLeft" sbsa-time="1.5" inside each li tag but not sure how to add it because this is not a class attribute!
- 1 reply
- 1.1k views
-
I started doing a bit more coding for my portfolio site with Dreamweaver and using bootstrap as a framework, I'm not sure what I've done but most of the elements have moved across to the right, ruining the whole look on the site. I must of moved something with the live section which you can't undo! Is there anyone who can help me? Thanks in advance
- 9 replies
- 2.3k views
-
Hi, I have just done a website for my father in law and the header BG disappears when the browser window is made smaller and you scroll horizontally. Just cant figure it, any one can shed any light on how to fix it I would be very grateful. Thanks Andy http://www.rotherhamfunerals.co.uk
-
- 3 replies
- 1.2k views
-
-
I just watched this video about all the things one has to learn if one wants to become a web developer, covering both front- and back-end. I liked it, but I would like to hear your comments too. Is the guy right about everything he says?
- 3 replies
- 1.4k views
-
Here is a function for random search and add class <div class="pic pos_1">1</div> <div class="pic pos_2">2</div> <div class="pic pos_3">3</div> .animate { color: red; } var arr = $('.pic').get(); function random(arr) { if (!arr.length) { return; } var el = arr.splice(Math.floor(Math.random() * arr.length), 1); $(el).addClass('animate'); setTimeout(function () { random(arr); }, 1000 + Math.floor(Math.random() * 1000)) } random(arr); I can't understand one thing. I know that splice() metod can delete member of array. Here is three member of array arr <div class="pic pos_1">1</div&…
- 6 replies
- 2k views
-
I've read a bit of the history of html (http://www.yourhtmlsource.com/starthere/historyofhtml.html) and I wonder if there is any point in learning XHTML at all now that HTML5 is W3C's recommendation and the future of the web?
- 3 replies
- 1.4k views
-
Hi all, I've been doing some research around cross browser add to favourites / bookmarks as my script didn't seem to work for Chrome or FF no more. This time I've decided to ask for help because there seems to be a lot of options out there on what to use in order to accomplish this. What do you all recommend I use / what works best? Thanks for your help in advanced.
- 6 replies
- 5.5k views
-
I wanna remove the end slashes like.. www.trevorsiu.com/email www.trevorsiu.com/email/ I literally have this in my .htaccess file: RewriteRule ^(.*)\/(\?.*)?$ $1$2 [R=301,L] Have I put the code wrong or something?
-
- 9 replies
- 1.5k views
-
-
Hi, We host a number of websites for a specific industry sector, by providing a hosted ecommerce platform. All our client sites rest on the same server (a Google Cloud VM) with Google Cloud SQL behind. All our client sites experience page load times of around 2-3 seconds, except one. This client who is experiencing the slow load times feels it is our system causing this but as all our clients run through the same code, same database, same server it cannot be the case .. could it? The problem website is; http://www.companyformations247.co.uk Some examples of other client sites on the same environment are; https://www.rapidformations.co.uk http://www.blueskyform…
- 7 replies
- 1.6k views
-
Well, this should normally be put in Wordpress but it just seems to be more suitable to be posted here. So, I have this plugin that shows related posts on my site and normally it works and shows like this: 4 But now when I use a defer javascript plugin, it looks like this: What can be the problem ? And interestingly, using that plugin solve a conflict making one of my other js not working when another js was active on the same page. Thanks in advance.
-
- 1 reply
- 1.3k views
-
-
Hello, I'm trying to get started with coding a responsive website, and learning a lot from some useful blog posts online. But I wondered if someone could help me with (a possibly very basic!) query. I've created a container grid which I want to hold a 2 column layout. One blog I'm using to help me get started walks through using a container div with a width of 980px. I've then arranged a <section> and <aside> within the container with both of their widths specified in %. When I try to minimize the browser with the above code, the container isn't scaling down - I'm assuming because it's specified in px? If I change the container to 75% instead of 96…
-
- 5 replies
- 1.2k views
-
-
Hello I'm trying to redesign my DJ page and I am literally stuck on the first step - trying to include a background image of bg.jpg. What am I doing wrong? I know it will be something simple and dumb. http://www.jameswinfield.co.uk/v2.html Thanks James
-
- 3 replies
- 1.4k views
-
-
Hello, Is there any good recommendation for a good busiss theme for wordpress?
-
- 6 replies
- 1.6k views
-
-
Hello, I am working on a site and I have noticed that the text in the bottom captions is getting cut off - only in Safari! http://tinypic.com/r/24lkmr7/8 I am customising a pre-made template so I appreciate the theme CSS may not be the best. I have been trying to make the website full screen without any scrolling - I am wondering if this is where the problem lies... The URL is http://goo.gl/RMzGjJ Thanks in advance :-)
-
- 2 replies
- 1.8k views
-