Welcome to TalkGraphics.com
Results 1 to 10 of 28

Thread: HTML, CSS, JS

Hybrid View

  1. #1
    Join Date
    Dec 2018
    Location
    Australia
    Posts
    1,776

    Default HTML, CSS, JS

    This is one of those things that won't stay in it's allocated memory slot. This time I'm going to write it and then forget where I wrote it instead.

    Using a placeholder to create a comparison slider, but the same applies to most of these things. Where does the following go? Page, Website, Placeholder, Body, Head???

    HTML?
    CSS?
    JS?

    The example I'm working on >>> Before After Image Slider (Vanilla) (codepen.io) <<<

  2. #2
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,842

    Default Re: HTML, CSS, JS

    Placeholder Body
    Head
    Last

    Mostly.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  3. #3
    Join Date
    Dec 2018
    Location
    Australia
    Posts
    1,776

    Default Re: HTML, CSS, JS

    So...
    HTML - Placeholder Body
    CSS - Head (Placeholder, Page or Website?)
    Last - Don't understand this bit at all. Not unusual though.

  4. #4
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,842

    Default Re: HTML, CSS, JS

    Quote Originally Posted by Chris M View Post
    So...
    HTML - Placeholder Body
    CSS - Head (Placeholder, Page or Website?)
    Last - Don't understand this bit at all. Not unusual though.
    Yes
    Any of them
    JS acts on DOM elements, they have to exist first.

    I detailed all this once before. Still looking.

    I thought I would try terse for a change.
    It's just lazy as is not capitalising, failing to use punctuation, sentences and paragraphs.

    The worst failing is assuming someone is inside your head.
    A statement that can be taken in several ways.

    I am still looking...

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  5. #5
    Join Date
    Dec 2018
    Location
    Australia
    Posts
    1,776

    Default Re: HTML, CSS, JS

    Got it. The penny dropped.

    Yes, I'm sure this has been explained before more than once. It's one of those things that just doesn't stick. Probably because I don't understand how it actually works. I also don't use coding often enough, or diversely enough, to be anywhere near to fluent.

  6. #6
    Join Date
    Dec 2018
    Location
    Australia
    Posts
    1,776

    Default Re: HTML, CSS, JS

    And the penny dropped right off the edge and into oblivion.
    Egg made one that works well, but doesn't have a 'click and drag' feature. I tried to work out what bit goes where and ended up drinking heavily and sobbing quietly.

    Egg's version >>> before-after.xar <<<

    The one I'm trying (and failing) to make work is from Code Pen, linked in post #1. I've tried numerous combinations of Page Head/Body, Placeholder Head/Body and even staring really hard at Acorn's steps didn't give me a result.

    I've pasted the code as it appears on Code Pen, although I realise it can be trimmed. I've also started afresh and haven't placed the code anywhere except where you see it. If anyone can have a look and start the answer with "It's easy, what's wrong with you." I'd be a grateful little member.

    >>> Comparison Slider.xar <<<

 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •