Categories
Development

Upload file to HTML input type=’file’ that does not belong to a form

I am attempting to upload a file via curl that basically should imitate how a user would upload a file to https://lutzroeder.github.io/netron/ I can see there is a: <input type=”file” id=”open-file-dialog” style=”display:none” multiple=”false” accept=”.onnx, .pb, .meta, .tflite, .lite, .tfl, .bin, .keras, .h5, .hd5, .hdf5, .json, .model, .mar, .params, .param, .armnn, .mnn, .ncnn, .dnn, .cmf, .mlmodel, […]

Categories
Development

create numbered, ordered list of section header elements from html using xPath

I want to parse some HTML to create a nested navigation (ordered list for a table of contents) based on the section headings elements (H1,H2,H3,H4,H5,H6) using XPath. For exampe, if I have a structure like this: <h2>Header 1.</h2> <h2>Header 2.</h2> <h3>SubHeader 2.1</h3> <h4>SubHeader 2.1.1</h4> <h2>Header 3.</h2> <h3>SubHeader 3.1</h3> <h3>SubHeader 3.2</h3> I would like xPath to […]

Categories
Development

Body styling stops at one screen for no apparent reason

The styling I have on the body element stops exactly where my computer “first screen” stops. There doesn’t seem to be a code related reason for it: // Styled JSX react.js library: body { font-size: calc(14px + (26 – 14) * ((100vw – 300px) / (1600 – 300))); background-color: wheat; border: 2px dashed green; } […]

Categories
CSS Development PHP Ruby

What is wrong with my group3 in my css code? [duplicate]

This question already has an answer here: What is a clearfix? 10 answers What methods of ‘clearfix’ can I use? 29 answers This question was previously marked as duplicate and closed without a proper answer. I tried clearing the float as suggested but everything appeared in one vertical line and not side by side. And […]

Categories
Development PHP Wordpress

Issue working with particles.js in WordPress theme

I’m trying to incorporate particles.js into a locally hosted WordPress child theme (Illdy is the parent) and have been successful in getting particles to appear, but I am having issues with their placement. See image: Particles Below Header I have a feeling this is a CSS/HTML problem, but I have been unable to figure it […]

Categories
Development

I’m in the process of cleaning up a website’s code. One of the things I am doing is running each page’s code through the W3C Markup Validation Service: https://validator.w3.org/ For the page I’m currently working on, the validator gave me a lot of errors. I have already fixed nearly all of them but there is […]

Categories
Development

I’m in the process of cleaning up a website’s code. One of the things I am doing is running each page’s code through the W3C Markup Validation Service: https://validator.w3.org/ For the page I’m currently working on, the validator gave me a lot of errors. I have already fixed nearly all of them but there is […]

Categories
Development jQuery

How do I fix a menu from disappearing when I toggle it?

It used to work and now I have no idea what I did wrong. When I toggle the mobile menu, the navigation items don’t show up but when I inspect it the browser shows they’re there but aren’t visible. Can someone help me figure out this menu problem? This has stumped me I tried making […]

Categories
Development

Remove unnessesary margin in mobile view

I’m working on my website navigation on mobile view, a pure css hamburger menu, my problem is there is a gap between the header(which includes the logo and hamburger menu) and the dropped down list of my navigation. /* html5doctor.com Reset Stylesheet v1.6.1 Last Updated: 2010-09-17 Author: Richard Clark – http://richclarkdesign.com Twitter: @rich_clark */ html, […]

Categories
Development

How to align text with image content in HTML email Newsletter?

So, I’ve produced kind of a hackjob email newsletter that we’re developing using Mailchimp. The issue I’m having is that I can’t figure out what is controlling the styles on one of my text blocks at the top of the email’s body. Ideally, I’d like to have the text stay within the margins which the […]