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
-
Hey all. I'm building out a project purely for educational purposes, it is yet another todo app, but will have a load of features. The App itself - what it does is kind of irrelevant as it's intentions are to help cement my learning of React, Redux, React-router and how to test such an application with both unit and acceptance tests - where I will be using Ava and NYC I thought I would share the work-in progress repository as I think others can learn from the good things I do in here along with the mistakes I will inevitably make. @@citypaul I am sure you will be able to add some good feedback on how the testing can be improved. This is a WIP that I start…
- 14 replies
- 2.7k views
-
Hello! I want to know how to make a menu item (menu link) in a footer menu invisible? You can see it on a print screen I'm attaching to this question. A red arrow and red underlining show which link I'm talking about here. Also here's the link to my live web site (a test site for now). It's the "Disclaimer" link, actually. idevsky.com Maybe it would be better just to move the whole footer menu to the right for about 150 px? 'cos I've heard that seach engines don't like hidden links...
-
- 3 replies
- 1.2k views
-
-
Hi all, Bit of a pickle on this one. When trying to style a class I have inserted I can only get the styles to show if I use inline CSS, but when I put them in style.css they do not show up and I can't work out why. I have used Firebug to try and resolve this, but have been unsuccessful. Any advice would be much appreciated. style.css .chapter-box { background: #f8f8f8 !important; background-repeat: no-repeat; background-position: 90% 89%; box-shadow: 0 0 3px 1px #d8d8d8 inset; padding: 90px 24px 90px; position: relative; } <div id="content" class="clearfix row col-md-8 col-md-offset-3"> <div id="main" class="col-sm-8 clearfix" …
-
- 4 replies
- 1.4k views
-
-
Hello, I'm having a problem with this code I created. As you can see in the JSFiddle I post below you can click the Region button and click a region. The main text changes then. But when you click on the background a couple of times, the button just becomes blank and it shows no text. How would I go about keeping the current text I selected in there untill I change to another region. The second question is. I've tried multiple things to get the button on the right side in the search box. So it's not underneath there, but it's not working. https://jsfiddle.net/03ba1u5m/ Thanks in advance BPrepper
-
- 3 replies
- 1.6k views
-
-
https://www.codeeval.com/open_challenges/211/ So basically from reading the challenge, I imagine you would have to start by checking the input string for the letters (example: ot) after the | of the input string, then use a conditional to check whether a wine bottle in the first part of the string (example: Cabernet Merlot Noir) contained all these letters, the first wine bottle does contain these letters, even if they're not in order it will work too. The examples would print: Merlot Chardonnay Sauvignon False Now, you will only output the name of the wine bottle if it contains the letters, if no wine bottle has the letters, you print "false". My questio…
- 8 replies
- 1.6k views
-
I need to pass this JS object to the page, but not sure if I have to use a separate js file for it. [{"firstname":"Bobby","lastname":"Fisher"}, {"firstname":"Charlton","lastname":"Wizard"}, {"firstname":"Anthony","lastname":"Lizard"}, {"firstname":"Mike","lastname":"Knight"}] And this is the code I have to edit to upload it. http://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_ajax_getjson <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> <script> $(document).ready(function(){ $("button").click(function(){ $.getJSON("demo_ajax_json.js", func…
- 16 replies
- 3k views
-
I'll use an example.. I have a site with sound (mp3) preview player like Soundcloud, sound libraries etc. I am guessing they work based on ajax ? Anyway, I thought I'd be able to locate the sound file itself in the 'sources' tab (Google Chrome). But I couldn't. Usually I find images this way. Is there a reason, why it doesn't appear there ? And is there a way to locate / get it somehow ? Thanks!
- 2 replies
- 1.3k views
-
Site is question: http://www.cqwebdesign.co.uk/wine-site/france.html Basically in the left sidebar if you click the heading they collapse. However when you do this you will notice the list of check boxes glitch about like there is a margin or padding being added somewhere. I can't seem to find the problem or what is causing this anyone else see whats going? Thanks
-
- 1 reply
- 1.4k views
-
-
I use this program called brackets, which lets you preview a live version of the website, however it doesn't show you how thick the margin, padding and border is, it just highlights an element when you click on it. I've never tried developing using devtools. I'm wondering when do you actually use devtools? I see that you would use it for inspecting the source code, and various other things, my opinion is that you would use it when looking at other people's websites, and doing various tests on your own, except developing the code, as that would be for the text editing program on your pc. Brackets should have an indication of the sizes of padding, margin, border etc.
- 7 replies
- 1.7k views
-
I am trying to style a search box inside a header using CSS. Here is a picture of my problem to help try and make things clearer: When the search box is visible: So my main problem is when the search box is faded in using JQuery it is taken out of document flow because I am using position: absolute; on .topSearchBarResultWrapper to get the search box where I want it on the header. I have tried using position: relative; which does bring the element .topSearchBarResultWrapper back into flow but does not display the search results below the header. Thus, when I use position relative I did try and use top: 80px; to bring the search box wrapper down and then use margin-top…
-
- 0 replies
- 1.5k views
-
-
Hi I've tried a simplish CSS menu, see here: http://www.worldclassphotographic.co.uk/test/ The problem I have is when I am using tablet view and have the screen width at 600px for example on my Nexus 7 I get the following: Is there a way I can wrap the text and make the box that it sits in 2 lines high (just for the options with long text, not all options)? Here is the HTML: <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Test menu 2016</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="../test/styles.css">…
-
- 1 reply
- 2.4k views
-
-
I'm not 100% sure where to post this. I'm not talking about a ul dropdown, but <select>: I have a dropdown for a selection of dates on an ecommerce website, the dates are written long hand, i.e. Monday 1st March 2016 - Friday 5th March 2016 Which is one <option>. As the options are long, they run off the edge of the screen when viewing on your phone, so you can't see the full date... Has anyone had this issue before or has a solution? You would assume the text would wordwrap... but isn't this part of the UI design for Android / iOS etc ???
-
- 4 replies
- 1.5k views
-
-
I got SVGO which as you all probably know is a Node.js module working I ran the following command but svgo didn't generate a second version of the original file but the process was complete ? svgo -i INPUT C:\1\woolpartmorph.svg convertShapeToPath -o C:\1\woolpartmorph2.svg
-
- 8 replies
- 1.7k views
-
-
I am currently working on a website which uses a banner image on a profile. However if a user uploads an image the position of the banner may not be correct and they may want to change it to display the correct position of the image they want. So I have been following this guide: http://w3lessons.info/2014/08/31/facebook-style-cover-image-reposition-using-jquery-php/ I have used this guide and it works without error when I am on desktop screen sizes like 20" and above... However when ever I try to change the image position on mobile it doesnt scale correctly and the image thumb nail is not cropped correctly. But it works when the website is on a desktop because the im…
-
- 2 replies
- 1.9k views
-
-
What methods do you use for sticky footers? I've tried a few different ways and seem to keep finding drawbacks.
-
- 1 reply
- 1.4k views
-
-
Strange situation happened. I tried to connect remote server with Ajax in React. I use webpack-dev-server. Console shows status 200 OK, but says "data is undefined" and "connection with server is not secure". I can't understand what happening and for 2 days try lot's of ways to get data but without any results. Any ideas will be greatly appreciated! First way. const UserGist = React.createClass({ getInitialState: function() { return { username: '' }; }, componentDidMount: function() { $.ajax({ url: this.props.serverPath, dataType: 'jsonp', cache: false, success: function(data) { const first = data[0]; thi…
- 22 replies
- 5.7k views
-
I managed, to get Grunt Installed. I have a gruntfile.js, within the gruntfile.js I have a grunt file task, how do I run a grunt task within obviously node command prompt ?
- 18 replies
- 3k views
-
Any professional iOS app developer here? If yes and you are interested to answer few questions related to iOS app designing in Photoshop or Illustrator then let me know and I will ask my Questions then. Thank you.
-
- 0 replies
- 1.4k views
-
-
I have some code for a login page, but the margin is set to auto which centers the login box to the center of the page. I want to move the login box to a certain spot on the page that is not in the center of the page like in this example pic. How would I change my code to do that? And also, you see how the fields where you put your username and password have an orange outline to help match it to the background? What code would I use to do that? Thanks
- 6 replies
- 1.5k views
-
wasn't quite sure where to post this so apologies if not the best place anyone got any tips on email signatures? difficult finding definitive information... trying to make a sig for a customer that uses outlook 2013 / 2016 though some at the same company also use office356. on mobile there's a spread of outlook, android clients, and ios... link or embed. pretty confusing and base 64 encoding seems iffy - especially with web based email clients. i link my own email signature to a jpeg sitting on our server, pretty much like you would for a webpage, and it seems to work but i'm limited as to ho wmuch testing i can do. customer said they saw our logo when they open…
-
- 5 replies
- 1.3k views
-
-
Just seen this site (linked below) and it has a cool banner with a pyramid of blocks which are animated to fall over when hit with a circle element. http://andreaslagerkvist.com/blog/2015/how-to-create-a-scrolling-twitter-feed-for-your-website/ It's really cool. Just sit watching it for 20/30 seconds or so and you'll see the animation. My question here is: Should I jump into HTML5 canvas and just use HTML5 canvas natively... or should I be using one of these html5 engines that are all over the place? (like crafty)
- 10 replies
- 2.8k views
-
I have the following layout: Which as you can see the "Learn More" buttons are all in line but with the CSS I am using they lose there text align center and don't align to each section. I am using the following CSS: Parent Div: #homeServicesWrapper { text-align: center; margin-top: 20px; position: relative; } Child class (Learn More Buttons): display: inline-block; position: absolute; bottom: 0px; My aim is to get all of the learn more buttons at the same level all inline with each other as when I take the above CSS off they result in being at different heights and are not inline with each other. I was trying to push them down to the bottom of the #hom…
- 7 replies
- 3.7k views
-
Hi everyone, I'm wondering if anyone has any advice! Here is the page in question: http://185.116.213.24/~demotester/brochure-test/ I would like be able to scroll through those 4 (or more) DIVs with the use of a Next and Previous button. Which I have done in the past with absolute positioning. But, I have the prerequisite of those DIVs maintaining an aspect ratio as you can see if you resize the page. I have tried 2 or 3 available sliders but they all fall down when getting them to maintain aspect ratio like you can see on the page. I would also like a small portion of the other DIVs to be shown on screen so the user can see there are more DIVs they can slide to…
-
- 4 replies
- 1.3k views
-
-
Hello all Iv been making a website and have a fixed bar at the top of the site: pic1 .navBar position: fixed height: 160px width: 100% background: image: url(/assets/img/trans1.png) z-index: 999 -webkit-transition-duration: 5s /* Safari */ transition-duration: 5s &:after display: block position: absolute content: '' height: 13px width: 100% background: url(/assets/img/trans2.png) repeat bottom: -13px left: 0 .barContaner height: 160px width: 1200px margin: 0 auto font: family: "Times New Roman", Times, serif the problem is that when I scroll down I have some images and the images hover over the ba…
-
- 2 replies
- 4.2k views
-
-
I have a couple of wordpress websites and I intend on having a lot more of them in the future. But, sometimes I don't like the limitations of a theme I'm using and I'd like to know how to make changes in the code to get them to look how I want them too. Well, actually I think you're suppose to make a child theme first so the changes don't revert back when the theme gets updated. I don't know how you do that either. I've learned that I can make changes by going into the editor, and making changes to the right file. I understand some of the code (the basics), I read a book on XHTML and CSS a few years ago. But a lot of it I have forgotten, and now I think they've…
- 8 replies
- 1.8k views
-
Hello Everyone, I have posted code below and need some assistance. Please see image attached, I hope this helps you understand my explanation. I am building a basic website for my local pool league which contains a section for competitions. I require the amount of time left to play each competition to show in the right hand column of each competition. The code below works perfectly for the first cell in the right hand column however it does not work for the cells below. Please can you assist me? Do I need to add more code to make this work? Am I missing some code? HTML Code (Only included HTML code for table): <table class="tg" style="undefined…
-
- 1 reply
- 1.6k views
-
-
Hi all, I have been getting some feedback regarding the drop down menus sometimes appearing a bit glitchy on this website: www.mason-uk.co.uk Most of the time they are fine, but sometimes if the site is loading slowly, they go a bit flickery and glitchy. This seems to be mostly seen in Google Chrome, but I have also occasionally seen it in Firefox. Any idea what might cause that? Or how to solve it? Kind Regards Rich
-
- 0 replies
- 1.8k views
-
-
Does the order of the code in your theme's stylesheet determine the order of how things show up on your site? I tried to move the title code above the header image code in order to get the title to show up above the header image, but it didn't work. So how then would I get my title above my header? I am using wordpress if that matters.
- 9 replies
- 1.6k views
-
I'm just wondering what meta data people include on their websites? At the moment I just put the description, and for FB graph I insert title, description and image. Should I be doing anything else? For example, this is what I have on my DJ profile site: <meta name="description" content="James Winfield - underground house/minimal DJ based around Berkshire & London. My aim is to musically inspire you."> <meta property="title" content="James Winfield - Underground House DJ"/> <meta property="og:description" content="Enter for a world of musical joy and maybe even some inspiration...please share and enjoy" /> <meta proper…
-
- 6 replies
- 1.4k views
-
-
Hi, anyone on this forum have a Galaxy S5 or S6 or both to debug a page with Chrome ?
-
- 11 replies
- 2.2k views
-
-
Hi. I am currently developing my own personal website and so far I am enjoying it until recently when I have run into a issue regarding webkit animations on mobile device. Basically, my website at http://www.daniel-chaplin.co.uk has a color changing animation on the text "Food and Beverage Park Host at Dreamland Margate" and "HNC in Computing and Systems Development graduate from Canterbury Christ Church University" which looks great on desktop, but on mobile it really messes up as the text goes onto another line, the animation doesn't go with it - basically I have this code that I want to be run when it goes mobile so there are no animations if that makes sense. T…
- 5 replies
- 1.9k views
-
Hi i'm a pretty experienced front end developer with excellent sass, less, css, javascript, jquery, html, grunt etc. Now when i want to achieve some interaction that can't be done in plain html, css i turn to jquery/javascript for user triggered events and ajax and this has served me well and still feels like the standard for web development. However i feel i need to learn a Javascript framework but i'm not sure what type of projects i would pick angular 2 over Jquery. Can i use it to build websites or is it just for apps? i was thinking of doing a portfolio site using angular but this seems over kill. Can someone shed some light on this with some examples
- 14 replies
- 4.4k views
-
Hi all, I'm pretty certain the answer is no but does anyone have any experience with this website builder on the one.com website? I'll try to make this as short as possible. Problem is that IE8 browser doesn't display our banner or other images I understand IE8 is on its way to being obsolete (but our site is pretty basic - the only fancy thing is a sliding banner at the top - so would like it to be available to as many browsers as possible) I could look at creating the site using something other than their website builder but my manager wants to be able to edit the site and its simple enough for him to use. One.com support sit back and say 'we don't support IE8,…
-
- 8 replies
- 1.7k views
-
-
Please help guys. I should be able to sort this out but I can't do it. First of all, to see what I am doing, click this link: http://mason-uk.co.uk/service.asp?pid=1#.Vxmc8UeS8qj about half way down there are three youtube videos, each one has slightly different CSS to try and get it to do what I want. None of them are doing what I want. Argh! What I would like is for each of those videos to be aligned in the center. I have tried the CSS of setting margin to auto and width-"100%" but it doesn't seem to work. They are seriously nested tables and I need it to be responsive too as the rest of the website is. CSS .youtube { margin:auto; padding-…
-
- 4 replies
- 1.5k views
-
-
Hello there, I desepreatly need a a bit of direction over how to change & add functioanlity (from JQuery) to bootstrap framework used a directoy software called brilliant directories. I would much appreciate a bit of direction or advise. Many Thanks in advance.
-
- 2 replies
- 1.5k views
-
-
Hi i know little about web designing if someone can help me to do my job. I download a html5 responsive template and edit it in dream weaver to make my own website for my app but i need help with the following. 1. Need help to configure my email in the form section. If someone send me email so i get it. This website is html based but i do understand i might need php page to do so but how and where i put the code in. 2. I need to integrate facebook, twitter and intagram like button at the bottom my website is wwww.islamdaily.co.uk Thanks
-
- 3 replies
- 1.3k views
-
-
Dear community, I am responsible for the migration of our website to a new system. In the course of the migration it turned out that my boss wants me to change the layout and other things of our new website as well. For example, he wants a pretty cool startpage without a "boring navigationbar". The attached picture shows what might be something that he would like to have. It is just a very easy example since I do not want to show the whole prototype here. In fact, the circles are going to be hexagons. We want to add mouseovers as well, for example, if you hover a circle/hexagon, it should flip or something else and then show the menu point as text (like the "contact…
- 14 replies
- 2.3k views
-
I've been trying to figure out how to have one SVG file translate while at the same time effect the opacity of another SVG element ? As well translate the one SVG relative to the page. I tried adding a class to @keyframe and nesting a class within @keyframe, nothing worked. [JsBin Code] For some strange reason CTRL+ENTER doesn't refresh the page to preview the CSS ?
-
- 0 replies
- 1.2k views
-
-
I am having an issue when using the flexbox for a layout. I have 4 sections which are in rows. What I would like is for section 4 to be right below section 2 instead of being inline with section 3. This is not happening at the moment as the height of section 2 is the same as section 1. Is there a way to get the height of section 2 to be the the actual height of the element and not stretch to match section 1? I have attached an image to try and explain what I mean. If anyone can help, I would be grateful.
- 10 replies
- 2k views
-
Hi Gang, I'm working on a pet project and hit a snag with an accessible approach to my content. I have an icon (png) with one or two spans containing stars, so it looks something like this... <span title="Name 2 or 3 Star"> <img src="/images/icona.png" alt=""> <span> <i class="fa fa-star" aria-hidden="true"></i> <i class="fa fa-star" aria-hidden="true"></i> <i class="fa fa-star-o" aria-hidden="true"></i> <i class="fa fa-star-o" aria-hidden="true"></i> <i class="fa fa-star-o" aria-hidden="true"></i> </span> <span> <i class…
-
- 1 reply
- 3.4k views
-
-
Hello Im about to finish my wordpress website, but I stuck during designing menu. The point is I wont to get it more useful, so I decided it would be great if menu will stick on one place, no matter if user scroll down or not. Im seo and analitics specialist and so Im pretty sure it will also reduce my bounce rate, so it will be benefitial for my on site seo. But my programming skills are weak, so I couldn't make it by myself. Obviously I can hire some website designer to deal with this issue, but somehow I feel its is a very simple code necessary to implement to. So if any of you would be so kind and look into my website source code it would be great. …
- 4 replies
- 1.8k views
-
I hope someone understands this! I would like to create several drop downs that give you a result..... Drop down 1... Your body shape: pear, Apple, hourglass, etc. drop down 2.... Your style: funky, classic, cool Etc etc.... Results: your perfect dress is called 'Audrey'. Would this even be possible? Thank you, kitty
-
- 3 replies
- 1.3k views
-
-
Hi all I wanted to create something and I don't know how hard this is or where to start.... Top slider has pictures of tops... Strapless top, halter necks, sweetheart top (stay with me!) Bottom slider has skirts.... Long, short, 50's, etc etc. The user can slide aline the different tops with different bottoms, to see how they would look together. Any ideas? Thank you kindly
-
- 1 reply
- 1.8k views
-
-
Hello, I am hoping someone might be able to help me. I am having issues with IE11 on a virtual machine I am running (mac user). I am looking at a site I have developed http://dev.whitstabledesign.com/SPS/ and can see in IE11 it is: Not showing background colours on the homepage, appointments, contact page. They should be all salmon colour, no white space at all. Also, it seems to be ignoring the top padding on every page but the homepage. Am I missing something really obvious here? Works fine on all other browsers including IE10.
-
- 3 replies
- 1.2k views
-
-
I'd like to make the images on my site work as links, however, not external links, rather for them to simply open a new window, without having to load the page. If I'm not mistaken, I should be able to do this using AJAX right? This is an example of a coded image: <li class="hex"> <a class="hexIn" href="#"> <img src="assets/fitness.jpg" alt="" /> <h1>Fitness</h1> <p>Sample text</p> </a> </li> So the question is, how do I replace 'href' with that 'open window on click' functionality? Thanks in advance.
-
- 1 reply
- 1.9k views
-
-
Hi, I love it when you have a fixed background somewhere and you scroll the page up or down and you see this difference in "layers" basically, some moving, some not moving, it's a nice contrast. But I was wondering if it's possible to achieve this effect in emails? I just designed an HTML page for newsletters. I tested it in Safari, or actually, I used Safari to work on it as well, and this scroll / fixed effect looked really nice. I then tried to send the newsletter by mail to see what it would look like, and the effect got lost. Discuss please!
-
- 7 replies
- 1.4k views
-
-
I'm using a Wordpress plugin for a newsletter, and basically, there's a code that you can place anywhere on your website and it will include a form with email and submit button in that place, for users to subscribe to the newsletter basically. This form is made out of a table, and here's what it looks like: (click on image, I know, the preview looks small) As you can see, there's three horizontal lines around the form. I'm trying to remove these, but I don't manage to do so. Here's the form itself: <script type="text/javascript"> //<![CDATA[ if (typeof newsletter_check !== "function") { window.newsletter_check = function (f) { var re = /^…
- 7 replies
- 1.9k views
-
I use a really simple jQuery dropdown for a menu on a small screen. It's triggered by a media query. Someone has asked if it can push the content down rather than layer over the top. It sounds simple but I'm not good enough a developer to work out how to do it. You can try it here: testblog.co.uk/. Reduce the browser window or take a look on your phone. I thinks it's a css thing not a jquery thing. Or if there is a better way to do this (ideally without using jQuery) that would be icing on the cake
- 5 replies
- 1.3k views
-
Hi All, I am using a pure css template for modal popups. I would like to know how to make a link to an already 'poppedup' modal so I can share it. Thanks Fiddle HTML <label for="modal1">OPEN</label> <input type="checkbox" class="modal" id="modal1"> <div class="modal"> <article> <p>Modal content here!</p> </article> <label for="modal1" class="close"></label> <label for="modal1" class="overlay"></label> </div> CSS label { color: #00f; text-decoration: underline; cursor: pointer } .modal, .modal * { box-sizing: border-box; -moz-box-size: border-box; transitio…
-
- 0 replies
- 1.3k views
-
-
I had a go at fizzbuzz on codeeval.com, it has confused me a little... https://www.codeeval.com/open_challenges/1/ I am going over it again as I failed my first time around, I am going to try to work out the problem from writing psuedocode. I also think that I need knowledge of how to input and output files, it says something about how you will be using the numbers that is inputted. I am getting an intuitive sense of how the program would work, you would use conditionals to display "Fizz" (When it's divisible by X), "Buzz" (When it's divisible by Y) or "FizzBuzz" (Divisible by both). But you would have to nest the conditionals in a while or for loop and use N …
- 10 replies
- 2.7k views