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
-
Hello Everyone. As someone who has long had a fascination with the weather, I've been very keen to find an excuse to use this raindrop effect http://maroslaw.github.io/rainyday.js/demo1.html. I am trying to integrate it with a "no" button (you will need to click "Tell Me More twice" to get to it) - the theory being that when you click no, it will start to rain. This is my site http://www.sunshinedesign.eu/# The code in question is: <script> function run() { var image = document.getElementById('background'); image.onload = function() { var engine = new RainyDay({ …
- 12 replies
- 2.1k views
-
Hi! Wondering if a wizz is able to help me out here. I have set up a RSS Feed Campaign on MailChimp and it is going great! I would like to have a summary of the blog, instead of the entire blog feed. I can get the entire blog feed with this Merge Tag :*|RSSITEM:CONTENT_FULL|* And I can get a Summary with this Merge Tag: *|RSSITEM:CONTENT|* ....EXCEPT...this summary is showing up only one sentence...which is not really a "summary". Does anyone know the Merge Tag to have a bigger summary, a good, decent paragraph size? Please & Thank you!
-
- 0 replies
- 1.4k views
-
-
-
Hi (newbie alert lol) I have several websites for my Hotel but want to make them far simpler and user friendly. One site http://www.hinkleyhotel.com is basic, to the point and seems to work well across pc, tablet and phones However, I think the slider is pretty boring. I was working on an alternative website and really like the slider on that one http://www.royalclarencehotel.com/ I would like to use that slider - and the text effects - in http://www.hinkleyhotel.com Is it just a case of copying the JS and code across or is it more detailed than that ? Help appreciated and welcomed.
- 6 replies
- 2.2k views
-
I am having serious problems installing webpack, the server and react I want to try react but cannot get past the installation this is one of the errors I am getting Hash: 3aea6d8a27453c0be041 Version: webpack 2.2.1 Time: 43ms ERROR in Entry module not found: Error: Can't resolve '${srcDir}/app.js' in '/Users/xxx/Desktop/site' npm ERR! Darwin 16.4.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" npm ERR! node v6.10.0 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! testing@1.0.0 start: `webpack` npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the testing@1.0.0 start script 'webpack'. npm ERR! Make sure you have the latest version…
- 16 replies
- 1.9k views
-
Hi, On mobile devices the "secondary" navigation (actually the main navigation really), is shifted so far over to the left so that you can only just see the edge of the text in the menu when the screen is approx 750px wide, and otherwise not at all. How would I go about shifting it back across? http://claughtonprimary.co.uk/ Something in CSS is fixing the width at 740px. http://imgur.com/a/X2VNH
-
- 2 replies
- 1.2k views
-
-
Figured it out. Please delete this post. Is there no way we can delete our own posts?
-
- 0 replies
- 1.1k views
-
-
Hi, I recently started my own Blogger website in order to promote my Instagram account. I added a Lightwidget to my website homepage to display my Instagram posts but the widget appears on all pages of my website. I tried to add a condition to my code below but it causes the widget to stop working entirely. Any ideas? My Widget code is as follows: <b:widget id='HTML1' locked='false' title='Images' type='HTML' visible='true'> <b:includable id='main'> <!-- only display title if it's non-empty --> <b:if cond='data:title != ""'> <h2 class='title'><data:title/></h2> </b:if> <div class='widg…
-
- 1 reply
- 2.7k views
-
-
I was just hoping someone could help me resize my product images to 400px by 400px sitewide. The CSS is inline and i can't figure out how to edit my product images so that they will all be the same size. Here is a link to my Product Page: http://www.wiselinetools.ca/store/item?id=D25263K Thanks
-
- 1 reply
- 1.7k views
-
-
Greetings all, I'm trying to build a custom front-end for a home security camera project (which I later plan to open-source and share with others if it turns out to be useful). Project employs Raspberry Pi that only record video when movement is detected. The challenge is to overlay multiple video fragments over 24h timeline; this requires a custom video player control. This archive uploaded to Dropbox (7 Mb) is an attempt at that, it almost works but I cannot figure out how to make rewind work properly. During the 1st video (robot playing AC/DC) you can rewind by clicking anywhere in the video. After it reaches the green circle where 2nd video starts, the re…
-
- 0 replies
- 1.5k views
-
-
Hi Guys, Can you help me out please. www.poweredbysolutions.co.uk at the very top of the page there is a rogue '<' I've looked and looked and looked and I can't find the extra character in the HTML. It's starting to annoy me now. I'm hoping a fresh set of eyes can spot it for me. Thanks
- 2 replies
- 1.3k views
-
What's the best way to implement minimum character length for a search box? (At the moment I'm trying to stop the search results from showing all possible results when someone simply clicks Search, without having typed anything.) Should we use one of the following examples, and then use CSS to get rid of the red border around the search box in some browsers? Or do you know of other ways? <input pattern=".{0}|.{8,}" required title="Either 0 OR (8 chars minimum)"> Thanks
-
- 2 replies
- 1.4k views
-
-
Hi all I need to change the icons to something more relevant to the headings. -Site is offline at present but have provided code below. I want to change the heartbeat icon and sorry it’s super novice but I’m literally learning at the moment and I’d just like some advice really on best way to do it. `<section id=”services-block” class=”home content-block”> <div class=”spacer-5x visible-sm visible-xs”></div> <div class=”col-lg-3 col-sm-6″> <div class=”service”> <div class=”icon”> <span class=”nc-icon-outline health_heartbeat-16″></span> </div> The demo site is here http://www.demos.machothemes.com/regina-lite/ …
- 7 replies
- 3.3k views
-
Hi all, What is 15 skills to look for when hiring a front-end developers Markupbox
-
- 3 replies
- 1.3k views
-
-
Hi, I have been given this code by 123 reg to redirect to https but it doesn't seem to be working. myRewriteEngine On RewriteRule ^apache-redirect-http-to-https\.html$ https://www.urbanjump.co.uk/apache-redirect-http-to-https.html [R=301,L] I have placed this code in my .htaccess file. Any ideas on how to get urbanjump.co.uk and www.urbanjump.co.uk to redirect to https://www.urbanjump.co.uk?
-
- 5 replies
- 1.6k views
-
-
Hi All Sincerely hope I've posted in this in the right section Could someone have a look at the image below, it's a snippet I took from the BBC website. It's a live commentary of a football game that someone posts. I have my own amateur football club website and I'd like to the same thing but have no idea how it's done. Is it some sort of chatbox, javascript? will it be easy enough for a developer to implement on my site
-
- 1 reply
- 1.6k views
-
-
Hi. I'm new to this forum. I want some help and I would like to now if this is the correct forum. Can anyone give me a hand with a website? I use WordPress as CMS, the thing is that I'm using a theme and I would like to modify it (it's not a lot, it's actually pretty simple for an experienced programmer) Please, answer to this question if you are willing to give me a hand Thanks
- 11 replies
- 2.2k views
-
Hi, I am wondering if this is possible: So on my web page I wish to have an iframe containing another website. Within this other website is a form. So is it possible to redirect my page to another page when someone clicks on the other websites button contained within the iframe? (I cannot edit any code on the external websites page) Is there a bit of code that can do this? Or is it not possible?
- 2 replies
- 1.3k views
-
Hi I have an HTML site I'm building. It uses jquery for bxslider image slides and slicknav responsive menu. I have created normal anchor tag links from the gallery page (http://ettifordcottages.co.uk/newsite/gallery.htm) to the page with the property descriptions (http://ettifordcottages.co.uk/newsite/cottages-and-booking.htm) and these links are all jumping to the bottom of the targeted page, rather than the anchor tag. If I remove the bxslider, then they link correctly, so seems to be the bxslider causing the problem. There are also links from the property desc page to achors on the gallery page. This work OK as bxslider is not being used on this page -…
-
- 0 replies
- 3.8k views
-
-
I am using absolute positioning in a relative DIV to position two images over each other and I then want to put the main navigation underneath this banner header. I can't use a fixed height because the content is responsive. Does anyone have any suggestions apart from using a dummy spacer DIV and using javascript to get and set the relevant element heights every time the window is resized (surely there's an easier way). Here's the code and CSS. I want the "nav" div to appear directly under the "banner". <header class="wrapper clrfix" > <div id="banner" style="width:100%; position:relative"> <img class="abs" src="img/photo.png"> …
-
- 0 replies
- 1.6k views
-
-
Hi, I'm used to wrapping a hyperlink around a div to get a block effect I'm after. However I know this is not the correct way of doing this as w3c will see this an invalid. Could someone let me know the proper way of doing this: <a href="link.html"><div class="name"><p>Text</p></div></a>
- 2 replies
- 1.4k views
-
I just thought I'd clear something up that I commonly see in React projects: The use of ES6 class for component creation. But did you know you can create components with just a function? import React from 'react'; const Todo = ({ title }) => <div>{title}</div>; export default Todo; This is what is commonly referred to as a presentational or dumb component, it just takes some props and renders to the screen. It can also handle user actions/events by passing in a callback as a prop: import React from 'react'; const Todo = ({ title, handleTodoClick }) => <div onClick={handleTodoClick}>{title}</div>; export default Todo; To handl…
- 7 replies
- 1.3k views
-
Hi, can someone tell me what I' doing wrong here please. I've done this loads of times before but for some reason this aint working. Two divs side by side 45%, 55% width until they get to smaller devises then I want them 100% width. Why isn't this working!!? As you'll see, the border on the right div changes from solid to dashed so the media query is working . . . but not the width. I think I might need an early night!!!! Thanks for any advice. forgot to put the fiddle link in sorry: https://jsfiddle.net...dek/tbvua2ak/1/
-
- 6 replies
- 6.9k views
-
-
Help me i have a large text and i want to bem maximum in 500px height and just show in this 500 px what it can show out of text and if i want to read the full text i need to pus a button and the full text displays .. how can i do that ?? JavaScript? Help me pleas [emoji4]oh and scary halloween [emoji317] Trick or treat ☠️[emoji316][emoji316] Az én iPhone készülékemről küldve a Tapatalk segítségével
-
- 1 reply
- 1.4k views
-
-
Hello all. I was wondering if there are any tools available that can automate the HTML/CSS validation process. I use the tools available from W3C which are great, but was just wondering if there were any tools that could make it even easier? I've been using a linter for awhile now, which shows errors in code on the fly. I'm not sure if such a tool exists, but if it did someone here would know about it. Thanks
-
- 4 replies
- 3k views
-
-
Hi, I'm having trouble to get Isotope working. My content gets hidden, and when I inspect, the elements are way off. Any tips? I'm not sure what to do, as I am pretty noob on this. My website: http://bendik.purehype.no/newsite/new/ Thanks
-
- 3 replies
- 1.5k views
-
-
Hello all. I am trying to place some icomoon fonts on a page, but they dont appear to be working. I have copied the fonts folder and placed it inside another folder called src. I have then amended the css to the following: @font-face { font-family: 'icomoon'; src: url('/src/fonts/icomoon.eot?vle955'); src: url('/src/fonts/icomoon.eot?vle955#iefix') format('embedded-opentype'), url('/src/fonts/icomoon.ttf?vle955') format('truetype'), url('/src/fonts/icomoon.woff?vle955') format('woff'), url('/src/fonts/icomoon.svg?vle955#icomoon') format('svg'); font-weight: normal; font-style: normal; } [class^="icon-"], [class*=" icon-"] { /* use …
-
- 3 replies
- 4.1k views
-
-
Currently I’m in kind of trouble with a dificult question. In case of the next website a couple of things don’t work like they have to do: http://apen.org.ni/ I’m talking about the next things: – Parallex effect at the servicios pages don’t work anymore. Image is uploaded, and shows up in the media libary as well. – Black admin bar (in top of the screen) doesn’t show up. – Dynamic images (with css effect) don’t work. – Last posts (Últimas Noticias) don’t work anymore. This were also dynamic images with an hover effect. – On the page ‘Estrectura’ down there is a part of ‘Junta Directiva’ normally when you click on one of the names, more information will be shown. This par…
-
- 8 replies
- 1.9k views
-
-
Hello again, Can someone help me fix the alignment of the footer please? www.poweredbysolutions.co.uk the left column with the logo in seems to be too low. I've tried margins and padding but I just make it worse rather than better. Can someone tell me where I'm going wrong please? Thank you.
-
- 6 replies
- 1.3k views
-
-
Hi, I am trying to find the root path for Heart Internet. At the moment when I login to the FTP it starts with the public_html folder. I have tried: /home/domainname/public_html/foldername/includes/header.php /domainname/public_html/foldername/includes/header.php /domainname.com/public_html/foldername/includes/header.php /home/domainname.com/public_html/foldername/includes/header.php But none of them seem to work. Any ideas?
-
- 6 replies
- 3.3k views
-
-
Hi All, I've been completely stumped by this issue - hopefully one of you guys can help me? Firstly, this script is running completely fine on my live site (i.e. on my paid hosting). I'm trying to get the site working on my own machine so that I can make updates easily without it affecting live clients.... so I have installed xampp and connected the site via remote mysql connection - so far so good! until I hit this.... I use a lot of ajax on my system... but it's not working properly on my local machine. Note from the server this works perfectly. The Code: xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function () { if (xmlhttp.r…
-
- 2 replies
- 6k views
-
-
Hi Everyone, I hope you had a fantastic Christmas! I'm trying to get my website finished this week, or the first draft of anyway. I'm having some technical issue with some DIV containers that I want as HTML links. if you goto www.poweredbysolutions.co.uk - if you scroll down about half way you will find 3 circles. As you mouse over them, you will notice they get bigger and have a little icon on them. What I am trying to do is make the entire clickable area a link. So far, I've only managed to make the text a link. from a user experience point of view, this will be confusing and poor. Any help will be appreciated. Please note, I've not optimise…
-
- 5 replies
- 1.4k views
-
-
What is the common practice these days, <script> tags before the closing </body>, or placing them in the <head>? A couple of years ago I read an article saying that its a better idea to put them before the </body> as any DOM manipulation wouldn't start until the HTML and DOM has finished loading, however, I've been reading the last couple of days that in modern browsers this isn't a problem anymore and javascript wouldn't get executed until the DOM is loaded anyway. Since I read the article I've always put all my <script> tags just before the </body> without any problems, however I had a recent problem using PayPal's checkout.js…
- 10 replies
- 2k views
-
I'm trying to minimize my site and reduce the amount of scripts if possible, and I realize I have these 2 scripts in the head of my html: < script src="jquery.js"></script> < script src="https://code.jquery.com/jquery-3.1.0.min.js"></script> Do I need both? (I do have the jquery.js file on my site.) Or, should I just be getting jquery from Google or Microsoft instead (and then just have one script)? ie: <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> or <script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.1.1.min.js"></script>
- 18 replies
- 1.9k views
-
Hi there chaps, Essentially what I'm trying to do is embed a map in a website I'm designing in muse. I've created the map using http://www.gpsvisualizer.com/map_input?form=google. (plots gpx data on google maps) It outputs a .html file, but when trying to view the file in textedit all I can see is a loading screen. I should also mention I'm currently using adobe muse to build the site. A perfect example of what I'm looking for is here: http://www.walkingenglishman.com/lakes20.htm Thank you for reading & merry christmas! Scott
-
- 7 replies
- 1.1k views
-
-
Hi Guys, I'm looking for a bit of help. I have two pictures next to two boxes with text in them, which is not aligning to the pictures. I've changed the CSS which I think is controlling it, but nothing changes. I've revisited this a few times to see if different elements are controlling it; now I'm just getting frustrated! Firstly, you guys have been helpful in the past when I've needed help however, I know some of you have a hatred towards bootstrap. Please don't slate me for using it, I'm very new to this and bootstrap is a great help to learn with. That being said, I am having issues so if anyone can help me i'd be grateful! Website is: w…
-
- 4 replies
- 1.2k views
-
-
I have been playing around with codepen and created a pen with a hero image with some buttons next to it, below the buttons is a tiny space of about 0.9px of which I would like to remove, I am having trouble figuring out how to manage it without removing the scss variable I have that controls the height of the hero image and buttons, since the button height is calculated through calc() and I don't think you can do height: calc(#{$heroandbuttonheight} / 3 - 0.9px); any help? here is the pen http://codepen.io/saltedm8/pen/VmBmbz thanks
- 6 replies
- 1.8k views
-
Hello everybody, I am visiting here to see what you guys think of our WebGL website www.flux.ooo We are a start-up drink brand launching in 2017 and we're trying to do something different with our brand, to inspire everybody to fulfil their inner potential. Any critique would be greatly appreciated and feel free to add your pixel too! Kindest Regards, L Smith
-
- 0 replies
- 1.6k views
-
-
Hello I am revamping my portfolio - http://iwillbeawebdeveloper.co.uk, however on Firefox and IE, the menu anchor links go to the wrong position and cut off a good chunk of the h1 tag. It did happen on Chrome too, which is what I work and test on, and I fixed it with the following CSS: .anchor { position: relative; border-top: -20px solid transparent; margin: -30px 0 0; -webkit-background-clip: padding-box; -moz-background-clip: padding; background-clip: padding-box; } .anchor:before { content: ""; position: absolute; top: -110px; left: 0; right: 0; } This doesn't seem to make a difference on Firefox/IE. Does anyo…
-
- 0 replies
- 1.7k views
-
-
EDIT: Sorry, I should have asked how to use vertical-align:top to characters within a list? Maybe a mod can rename this thread to How to apply vertical-align to text in a list? I'm styling these characters ® on a page by using this CSS code: .reg{font-size:12px;vertical-align:top} How do I get vertical-align:top to also work with ® within a list? Thanks for any help..
-
- 1 reply
- 1.1k views
-
-
Hello I am trying to alert an array element on click - the array elements are randomly placed, however it is currently alerting "undefined". I must be close to an answer but it is driving me crazy so I'm asking for a second pair of eyes please. This is the JavaScript: $(document).ready(function() { var star = '<i class="fa fa-star" aria-hidden="true"></i>' // Define star to insert later var starArray = ["Apple", "Pear", "Banana"]; // Define array var section = $('#section-for-stars'); // Get id of section where stars are to be randomly places var width =section.width(); // Get section width var height = section.height(); // Get section height for (var…
-
- 4 replies
- 1.7k views
-
-
Hi, I advised my brother to use a company that I have always built decent bespoke sites in the past. However on this occasion they seem to have done a Wordpress site. In it they built a table that didn't work from the get go, so I replaced it with a plugin that seems quite good. However it does not look so good once viewed in a mobile phone. So I asked them if they could hide this table using the CSS once viewed on a mobile and create a new text box that only shows on a Desktop so I can write it out as a simple list. I would have thought I could hide the table using this and wrapping it in a span: .tabledesktop { display: none; } However they seem …
-
- 3 replies
- 1.1k views
-
-
Using available code, Ive have a sticky menu that sticks to the top of the page when the user scrolls using JQuery. But for the world of me I just cant get it to centre, it stays left. I've tried padding but that messes up the JQuery bit. I just want it centred under my title and to stay centred when scrolled. I've tried text-align:center with margin:0 auto, I've tried creating a new div id with rules margin:auto; text-align:center; and setting the width but it just wont centre. I've got everything the way I want it except this one thing. can anybody help? Heres the code i have JQuery <script> $(function() { // grab the initial top offset of the nav…
- 5 replies
- 2.8k views
-
Hey all! So helping a friend. She is trying to make the menu links look better than the tacky blue hyperlinks. Here's the CSS: ul .secondary_header a:link { color:white; text-decoration: none; } ul .secondary_header a:hover { color:gray; text-decoration: none; } What are we doing wrong? Here's the HTML. <nav class="secondary_header" id="menu"> <ul> <li><a href="#">ABOUT BPU</a></li> <li><a href="#">NEWS</a></li> <li><a href="#">HR</a></li> <li><a href="#">CALENDAR</a></li> <li><a href="#"&…
-
- 2 replies
- 1.2k views
-
-
The main buttons on my main menu (in my sig) are not clickable until the scroll down part has fully opened. How should I remove or speed up this transition, please? I thought I'd need to take something away, but maybe I should be adding something? (I checked out this http://www.w3schools.com/css/css3_transitions.asp.) Here is the CSS I'm using at the moment: Changing the linear numbers didn't seem to make a difference. (Down the line I will probably replace the menu system altogether, but not yet.) buttonname ul a{color:#000;font-size:1.3em;font-weight:lighter; padding:0px 8px 2px 10px;text-decoration:none;border:0px solid;border-radius:4px;border-color:#517…
-
- 1 reply
- 1.2k views
-
-
Hi everyone, As the title suggest my custom 404 page only works when the page has one forward slash, otherwise it still appears but there is no css or images, not sure why or how to fix this? I had a look around and read to make the link to the css absolute, but I still failed to get it working. Any help is appreciated thanks.
- 9 replies
- 1.5k views
-
Why isn't my logo centering in my footer at the bottom of this page? http://www.timothy-clark.com Thanks.
- 10 replies
- 1.9k views
-
Hello, We have a form running which is working well with our clients. It has various drop downs and a captcha script. For just one of the drop downs the boss requires that this must be activated / changed before the form can be submitted. I have looked at various options and tried a number of scripts but none seem to stop the form being submitted. I am happy to share the html code if needed. I would be grateful for some further ideas. Thankyou Regards Neil
-
- 6 replies
- 1.7k views
-
-
I'm trying to see the results of this code in CodePen with Paper.js using the following CDN(https://cdn.jsdelivr.net/paperjs/0.10.2/paper-full.min.js) but I see nothing within CodePen ? var path = new Path(); path.strokeColor = '#567e37'; path.strokeWidth = 5; var firstPoint = new Point(0, 550); path.add(firstPoint); var throughPoint = new Point(75, 400); var toPoint = new Point(100, 250); path.arcTo(throughPoint, toPoint);
-
- 0 replies
- 1.5k views
-
-
Hi all, I have a currency list on a store as follows: <div id="top-left"> <p class="nw-selector-indiv"><span class="USD">USD</span> <span class="GBP">GBP</span> <span class="EUR">EUR</span> <span class="AUD">AUD</span> <span class="CAD">CAD</span> <span class="JPY">JPY</span></p> </div> That is hardcoded in. Here is some jQuery that changes classes when clicked. <script> $('#top-left .nw-selector-indiv span').click(function(){ $('select#currencies option').removeAttr('selected'); $('#top-left .nw-selector-indiv span').removeCla…
-
- 4 replies
- 1.7k views
-