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
-
I want to design a background with a very high (steep) edge to the right (see image). Moreover, I have only managed to create a stright line slope so far. https://i.imgur.com/ghRW2k4.png
- 5 replies
- 1.4k views
-
Hello, I added the following code to my CSS: ."name of element" { grid-template-columns: repeat (3,1fr); } and i get the error "Expected RBRACE at line ..., col 39". However the code seems to be working. Can I ignore this error message if the code works?
-
- 2 replies
- 2.8k views
-
-
I am trying to create a carousel that shows two slides at a time and advances one slide per click. I found an example of what I am looking for on the following link https://www.bootply.com/G33EYIj4eF# Using the code on the link and bootstrap 4's css and js links I found the code isn't functioning correctly and I can't work out why. I have attached copies of my code plus an image of how it is performing. Any help would be appreciated. index_dev.html main3.css slide.js
-
- 0 replies
- 1.3k views
- 1 follower
-
-
I'm a front end design with a few basic coding skills but i have no idea of js so this simple accordian is stumping me. i don't want the weight of jquery and found this js online https://codepen.io/dp/pen/qvwKJK?editors=1100 what i want it do is have the hidden parts hidden when page loads and then each one open when clicked on and closed when clicked on again. this looked great https://css-tricks.com/quick-reminder-that-details-summary-is-the-easiest-way-ever-to-make-an-accordion/ but no edge (can live with already-open-only if it was only IE) this is what i have https://codepen.io/dp/pen/qvwKJK?editors=1100 this is what i#m aiming for but only got …
-
- 2 replies
- 1.5k views
-
-
Hi all, I'm attempting to create something for my work to help support young people and adults with communication needs. Part of the website aims to include an area where when you type the name of an image (or something related) that image would appear above it. For example, if you typed 'chocolate' into the text bar, it would link back to an image of chocolate and that would display above automatically. Is this possible or am I reaching to far? If possible what type of coding would it require Thanks in advance! Jon
-
- 1 reply
- 1.4k views
-
-
I am using a domain checker, which when it says "this domainname is available", shows a button that says "Claim this domainname" Now this button, cause of settings in the backend links to a page that I do not need it to link to. Because all I want for the button, on click, to do is to paste the text data in the domain name checker, to a form box on the left side of the page. So what javascript or jquery code do I need to use to make this happen? It all needs to happen on the same page. 1. When domainname is available, button shows up saying "claim my domainname" 2. On click, it should "copy/paste?" or at least just put the current data from the domai…
-
- 2 replies
- 1.4k views
- 1 follower
-
-
Hello. Its been a few months since i started learning html and css. Im now able to design some decent looking websites using flexbox and css grid. However i was wondering if there is any need to make some portfolio websites using just float layout in 2019, since its outdated now. Or is it something company's still look for in a front end designer/developer? Thanks 😅
- 4 replies
- 2k views
- 1 follower
-
Hey strange one, my form ( My Contact Form ) works fine in chrome but not in safari. The codepen I made prior to adding it to the site worked in both My codepen pre-made script . Near the bottom of this script (above lazyload) is the copy of this jquery that runs on my site Script for the site... can anyone work out why this is happening? I have been looking with no joy. thanks
- 4 replies
- 1.5k views
-
when i click to paypal radio button on desktop ,you will see a paypal button appear and in android mobile it doesnt work. Dont what exactly the problem is ? Also i am not seeing any error through chrome's console.
-
- 2 replies
- 1.4k views
-
-
Hi there, I am new to wordpress and just working on a website (Webshop with WooCommerce). I removed certain elements of my theme + WooCommerce by using the "Simple Custom CSS" plugin. However, now I read some (rather old) articles that I should create a child theme when making custom changes of the appearance because otherwise my changes will be lost after updates (to keep everything updated is crucial for me). Contrary to this, I came across recent articles which say that I dont need a child theme if I use a custom css plugin (e.g. Simple Custom CSS) for making those changes. Im a little confused now. Could someone confirm which of the 2 stories is correct…
- 5 replies
- 1.7k views
-
Hi all I'm having huge problems with my mobile website menu - the menu will not work on scroll. Please be aware for some reason it works on Google chrome when in mobile view on a desktop but it doesnt work on all mobile devices. Firstly, I have JS that enable a sticky header and a top-nav var header = document.getElementById("myHeader"); var sticky = header.offsetTop; function myFunction() { if (window.pageYOffset > sticky) { header.classList.add("sticky"); } else { header.classList.remove("sticky"); } } The CSS for the menu in mobile view: .sticky { position: fixed; top: 0; left: 0; width: 100%; background: #f8b836; z-index: 999; height: 90px;…
-
- 5 replies
- 1.8k views
-
-
I have a Google Chart on my site and would like to change its style a little bit. Please note that I am pretty much a noob at coding this. I would like to change the colour of the text of the Mac models at the left of the chart. I searched some tutorials online and always kept finding the same solution, which didn't quite work out in my case, because it also changed the size of the chart added additional vertical bars (for whatever reason). This was the code: hAxis: { textStyle: { color: 'red' }, titleTextStyle: { color: 'red' } }, vAxis: { textStyle: { color: 'red' …
-
- 0 replies
- 1.8k views
- 1 follower
-
-
I have an effect I am creating, it's like a text reveal... only its really a fake text reveal. To explain, I created this hover effect out with an svg I created, the image it goes over has to be inline and therefore the z-index order is this (top to bottom) image > svg > text since I could figure out no other way of getting this exact effect, although I know there are far better alternatives like clipping, I could no work out how to do it with inline images... Anyway, to get to the point, the text has to sit above everything else in order not to be hidden when I want to see it, I am using a jquery mouseover to reveal it at the right time, the problem is wi…
- 18 replies
- 2.3k views
-
Hi guys I was wondering what method people used when ordering their links to external stylesheets and JS scripts. I'm playing around with a few options, which change the css on my site when I change the order. I believe this is due to the last sheet taking priority and specificity? I was wondering want the best practice people had when it came to ordering your sheets, in both <head> and <footer>. Furthermore, is it bad practice to have JS links in your <head>? Thanks
- 3 replies
- 1.7k views
-
Hi everyone, I hope I've posted this in the correct area. I do a little freelance dev work when I'm not marketing, and I came across an article about AI development for businesses. I found it interesting and it lead me to read up more on AI development. It's something that does look rather interesting on the surface and I am considering doing some courses on it so I can offer it to clients. However, I've never had any leads come to me and mention AI, so is it a future thing that is worth learning now so I'm prepared, or is there just little work out there for AI dev? If you have any experience with this, please let m…
-
- 4 replies
- 2.1k views
-
-
Hi everyone. I'm relating to the schema.org documentation. For our main website index page - in our code we should probably use itemscope itemtype="http://schema.org/WebSite" 1. What should we be using for other main category list pages like - list of news article links, list of app page links, etc.? 2. And then for each specific article page, should we be using itemscope itemtype="http://schema.org/Article"? Thanks for your advice/opinions.
- 4 replies
- 2k views
-
I am setting up a new on-demand services business in London and need to get a website built. However with so many on-demand websites emerging, i wonder if it needs to be made from scratch or if i could buy one ready made, or at least the template for one which i could tweak. Ive seen a couple of websites seemingly offering this service but its hard to get clear quotes from them. I imagine a fully functional on-demand website will be expensive (onboarding, profiles, link to gmaps, notifications, payment and booking system etc) Thanks
-
- 0 replies
- 1.6k views
-
-
Hi All, I've been asked to do some work on a pretty archaic legacy website, that is a mash up of lots of different languages, coding styles and hacks put in by different people over the years. http://spldev.sanpancholife.com The website was made (badly) responsive and some parts aren't working well, especially the sub menus in the drop down menus. I am trying to fix this without doing a total CSS overhaul. So far I've managed to achieve a lot of success with getting it to display ok on mobile sized screens. BUT I have two problems. One when you click on Vacation Rentals, the quick search box (and the pop up date picker within it) display ba…
- 8 replies
- 2.2k views
- 1 follower
-
I'm not all that great with Javascript and I might just be having a dense but I can't work out how to run an object method from a jQuery event handler. var myObject = Object.create(Parser); myObject.init(); myObject.registerEvents(); $("#button").click( myObject.registerEvents ); What the function does is copy the html in a textarea into an iFrame. Alternatively finding a way to update the rendering in the iFrame of the changed textarea's HTML.
-
- 3 replies
- 2.5k views
- 2 followers
-
-
I have finally got around to learning javascript properly, after all these years of simply using ready-made scripts and having to make do when I had coding issues I could not solve... Anyway, I am trying to get a javascript list that I have created to replace and not append? Currently, every time I use my dropdown the list adds more to the list already there, I need it to swap but can't work it out.. anyone know how to do this? Thanks https://codepen.io/saltedm8/pen/bxEZBG?editors=1010
- 4 replies
- 2k views
-
Hi all! I have been able to create the hover effect in which the price-card scales up a little along the Y axis. But I could not bring up the text against the orange background shown on the card in the middle. Surely this is also a hover effect as the two other cards don't have it. How to code this up? Both HTML and CSS-wise? Even, if necessary, JavaScript-wise? Thanks in advance.
-
- 1 reply
- 1.8k views
-
-
Is it possible to come up with a list of areas of HTML, CSS and JS you should know to be able to call yourself a good front end developer? Maybe you know of a list that would answer this quickly? EG HTML: -Proper structure -Use of !DOCTYPE -Knowledge of all tags and uses (because it's easy) CSS: -Applying style to text -CSS Grids for layout - To be updated... but you get the idea
- 1 reply
- 1.7k views
-
I need something for my business and was wondering if I could buy a premade code for this or how long would it take to create something like this from scratch? I am a designer making digital portraits for people. Now I would like to give them an option to choose which background they would like to have after I did the portrait. Currently I just send them to google photos link with hundreds of images of the same portrait but with different background I was looking for something like that online, but couldn't find anything. It should work on web browser and mobile. Maybe it could be just a plugin for wordpress? Or just a page from scratch? Any help here is apprec…
-
- 1 reply
- 1.8k views
-
-
I have a segment of code... function mapPaired(noElements) { var colours; alert("start"); colours = ["lightCoral", "lightGreen", "lightBlue", "yellow", "mistyRose", "orange", "lightPink", "cyan"]; alert("in"); for (i = 0; i < 16; i = i + noElements) { for (j = i; j < i + (noElements + 1); j++) {document.getElementById("val" + j).style.backgroundColor = colours[0];} colours.shift(); alert("here" + i); } alert("out"); } When I run this with mapPaired(2); it displays the "start", followed by the "in" then counts through as I expect, showing the relevant "here". Colour shifting and allocation works, yet it never displays "out",…
- 4 replies
- 1.8k views
- 1 follower
-
Hello. I've been asked to build a website for a local languages school. They've got about 6 tutors and they do 1-2-1 classes. They want to be able to teach online via live video which will be for individuals not groups. I've looked at their competitors and its pretty common. They also want the students to pay in advance and then have a live video online lesson. Can anyone recommend the best video streaming software for this purpose please?
-
- 0 replies
- 1.8k views
- 1 follower
-
-
Hi, I'm looking to create a website that can show a preview of a personalised book. On this site a user should be able to enter their name and choose a character with different hair colours, skin colours and then hit 'preview'. This opens up a flipbook with just these variables replaced. Please see a great example here: Click HERE for website with customization page I know that templates exist for things like flipbooks (personally i use Wordpress as a novice, so a wordpress plugin would be useful), but how would this customized feature be created? For example, would i use a PDF, convert to a flipbook, and then layer (css?) the name, character on top with HTML5 c…
-
- 5 replies
- 2k views
- 1 follower
-
-
I'm just curious if you personally use a name or a number for HTML entities. (W3Schools) Eg. For an ampersand (&) do you usually use & or & ?
- 7 replies
- 2k views
-
@Seth and I are working on a website that uses Envira-gallery and are unable to use CSS code to move the image caption (which is currently located in a white font in the top left) of the front-page gallery images to below the bottom border of the image (in order too see the caption you have to first click on the image). We are looking for a way to center the caption below the image in the same spot regardless of what the viewport size is. Here is a link to the page: https://webdesignstaging.site/firstfloorflow/ Any help would be wonderful, thanks so much!
-
- 1 reply
- 1.7k views
-
-
Hi, Lets say I set out two divs next to one another at 50% on a laptop they sit next to one another. But when it is viewed on a mobile the divs don't shrink to fit the screensize, it places the two divs on top of each other as if they were set as 60% each width. Any suggestions please?
-
- 18 replies
- 2.3k views
- 1 follower
-
-
Hi, I have different links but they are behaving differently. The top set work fine but the second set default to mouseover black instead of white. I can't understand why the top link works fine but the second shows as white but defaults to black. <a class="bluelink" href="/industry/training.php">drone pilot training guide</a> a.bluelink { text-decoration: none; color: #1E90FF; } a.bluelink:hover { color: #1E90FF; text-decoration: underline; } a.bluelink:visited { color: #1E90FF; } <a class="footerlink" href="/sitemap.php">Sitemap</a> a.footerlink { text-decoration: none; color: #ffffff; } a.footerlink:hover {…
-
- 0 replies
- 1.6k views
- 1 follower
-
-
Okay, so I am familiar with the use of settimeout and setinterval but they seem so 'clunky' I want to delay text for a short while, then display and move to the next command. Ultimately I'd like to have options where the timer varies depending upon an outcome. Basically, are these the only two time-related commands available to me?
-
- 0 replies
- 1.7k views
-
-
So, I've got some spare time on my hands over the next few months and I would really like to spend it working with a front-end framework. I've spent the last 3 - 4 months getting more comfortable with Node, and want to expand this by building on my front-end skillset. I used to be pretty big on AngularJS, but I've moved away from that recently and would like to focus on something a bit more up-to-date. I am torn between spending some time getting to grips with Vue or opting instead for React. I appreciate that React has more employment potential, but this is really just for my own benefit. What I am struggling with, is trying to find a balanced opinion on what the p…
-
- 4 replies
- 2k views
-
-
This is my first post. I apologise if the question is very basic. I can't seem to find a resolution to this problem. I am trying to center a Vimeo video IFrame perfectly within a simple black border. The video fits the border height wise but there are white spaces to both the left and the right within the border. I have attached an image. The video is behaving as it should in responsive terms. I am using Bootstrap and my code is as follows: HTML <div class="vimvid"> <div class="container"> <iframe src="https://player.vimeo.com/video/289437293?portrait=0" frameborder="0" webkitallowfullscreen mozallowfullscr…
-
- 0 replies
- 2.7k views
- 1 follower
-
-
Hi I was wondering if anyone had a better solution to this, it seems excessive to me for what it is, it literally just changes the options within form fields to be displayed or hidden depending on services they choose.. thanks function Improvelist(){ //Selectboxes var inputImprove = document.getElementById('input-improve'); var inputTool = document.getElementById('input-tool'); //lists var improveWebsiteList = document.getElementById('improveWebsiteList'); var createWebsiteList = document.getElementById('createWebsiteList'); var improveSeoList = document.getElementById('improveSeoList'); var createSeoList = document.getElementById('createSeoList'); …
-
- 0 replies
- 1.7k views
-
-
Hello everyone, I am currently developing a forum and we decided to use a html editor to post threads at first. We have changed our minds and decided that we only want to allow BB code. So we have bb codes for like bold, italic, new line. horizontal line etc. So we want to add something above the text area. Like a button with a B I or underscored U on the top of this html editor. And when the user clicks on the B for example, it should add to the textarea. I think this could be done with javascript? My textarea on the edit thread page: <a href="#"">Bold </a> // So when the user clicks this, it should add [b][/b] t…
- 6 replies
- 2k views
-
I think I might have done a bit of CGI a few decades ago, but have not done anything in recent years, so please excuse my ignorance. I'm trying to create a web page, which has a form on it to work out the uncertainty (often incorrectly called accuracy) or some measurement results from an electronic instrument called an Agilent 4285A precision LCR meter. My webpage is here. https://www.kirkbymicrowave.co.uk/LCR-meter-uncertainty-calculalator/4285A/ If you look at the source, you will see a form that starts <form action="Uncertainty" method="GET" name="/BethH/4285A-uncertainty-calculator.cgi"> The program "4285A-uncertainty-calculator" does not…
-
- 2 replies
- 1.8k views
- 1 follower
-
-
Hi, I have created a floating button that scrolls down to the #welcome section of my homepage when clicked. How can I make the scroll smooth rather than just appearing at that section? I have tried the following property: scroll-behaviour: smooth; Thanks in advance :-)
- 4 replies
- 2k views
- 1 follower
-
Morning all. I was hoping for a bit of help. So I added the following to the Additional CSS field, in my wordpress theme. .site-header { position: fixed; top: 0; width: 100%; z-index: 2000; } .container { padding-top: 120px; } And it worked, the header is now finally fixed. But the problem I have now is that even though it's fixed on every page, it overlaps everything at the top of each page. Is there a way for it to not do that, or will I like have to make sure there is enough clear space on each page I add?
- 4 replies
- 2k views
- 1 follower
-
Hello, I'm having a bit of a problem figuring out how to use Magenta Admin Panel. See attached image: How can I change the wording 'Please select a colour, then a size'? How can I number the colour option so it looks like the size option? Thanks Paul
-
- 1 reply
- 1.6k views
- 1 follower
-
-
Hello there, sorry if this posted in the wrong place (did a search and a lot of Magenta enquiries were just put in here). I recently started to edit a friend's website using the Magenta Admin Panel. One of the changes he requires is adding colour options for a garment that currently only has sizes. I have figured out how to create a simple product (because I understand I have to create a simple product for every variation - t shirt xxl blue, t shirt xl blue, t shirt l blue, etc) and how to assign attributes to a set that that product uses. I've created one product and then tested this product on the website to see if it shows both the size and colour but it doesn't a…
-
- 0 replies
- 1.7k views
- 1 follower
-
-
Hi all, I am getting annoying horizontal scroll on a Woocommerce page when I view portait (landscape orientation is fine) and wanted to know if anyone can help me. It seems to be as a result of the form Woocommerce has included as when I add display: none; to the .form class it fixes it (though I'd rather the info within the form stayed...). form { margin: 50px auto; position: relative; top: -51px; } Here's a page where the problem is happening I can't figure this out and could really use your help!
- 3 replies
- 2.4k views
-
Hello I was wondering if people put phone numbers on websites and if it generates a lot of spam. Looking on the internet there seem to be some people saying it creates lots of spam and others saying it doesn't. Also what is the best way to display it using JavaScript to hide it from bots or using an image? Thanks in advance for any thoughts on this Vicky
-
- 4 replies
- 2.1k views
-
-
Hello all I have created a gulpfile which I want to watch for any changes to PHP and SCSS files. When I run the gulp command in the terminal, Browser-sync starts up and the page is displayed fine. It also says it is watching files. If I try to edit a PHP or SCSS file in the terminal it says [Browsersync] Reloading Browsers..., but nothing happens. I want the SCSS to compile directly into the theme folder I have created and overwrite the style.css. I also want any changes I make to a PHP file to reload the broswer. My gulpfile is as follows: // Include gulp const gulp = require('gulp'); // Include plugins const concat = require('gulp-concat'), au…
-
- 1 reply
- 1.7k views
- 1 follower
-
-
I have been trying to find code examples for menus in WordPress, I have not been very successful so far. Do most people use a Plugin for a responsive menu, or create a menu using code?
- 26 replies
- 2.6k views
- 1 follower
-
I have a function that uses getElementById and it has been working great. Now I have a page where I call it more than once on the page. The first one works but the rest don't. What do I need to do to make multiples work on one page?
- 11 replies
- 2.2k views
-
Hi All, I am working on HTML5 and webAPI. I am trying to download a recording in a subfolder within my project directory. By default the download saves it to downloads folder. if I add path it adds it with an _. Is it possible at all to download my audio file to a specific folder. Please someone reply. Thanks, Sri
-
- 0 replies
- 1.8k views
-
-
Hello, I'm building a landing page using CSS Grid and I would like the smaller boxes on the right hand side to be shallower and sit inline with the Regal box. How could I achieve this?
- 6 replies
- 1.8k views
- 1 follower
-
I have a boarder around an image, but when a caption is added underneath the image, I am after the boarder to encapsulate the caption. .php <div id="attachment_55" style="width: 810px" class="wp-caption aligncenter"><img class="wp-image-55 size-full" src="http://ithorizon.online/wp-content/uploads/britain-at-war.jpg" alt="britain at war" width="800" height="600" srcset="http://ithorizon.online/wp-content/uploads/britain-at-war.jpg 800w, http://ithorizon.online/wp-content/uploads/britain-at-war-300x225.jpg 300w, http://ithorizon.online/wp-content/uploads/britain-at-war-768x576.jpg 768w" sizes="(max-width: 800px) 100vw, 800px"><p class="wp-caption…
- 10 replies
- 2.3k views
- 1 follower
-
My website https://www.kirkbymicrowave.co.uk/ should have a menu at the top of each page. It is included by a bit of php like this, which includes menu.php. <?php include ("../../menu.php"); ?> The deeper the page is below the root, the further up the directory structure menu.php is, so in principle a page might have <?php include ("../../../../../../../../menu.php"); ?> although I don't have any pages that deep! If I move a page up or down a directory level, I need to remember to change the path to menu.php (for some annoying reason /menu.php does not work). The problem is, sometimes I forget to update the reference …
- 9 replies
- 2.1k views
- 1 follower
-
Hi guys & gals, I have a WordPress site that has been live for over a year, there are 2 versions of it (2 different languages) but on the main site (English version) there is an error in the HTML. Looking in the header.php file I don't any issue. Attached is a screenshot of where it says the error is compared to the actual code in the .php file. The other language version of the site is fine (it's a duplicate)... *The 'og' in the <html> tag is from an SEO plugin, I have disabled this to see if it fixed the problem but it hasn't. Thanks for the replies!
-
- 0 replies
- 1.7k views
- 1 follower
-