Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Enumerate a div pattern in html page

Enumerate a div pattern in html page

Scheduled Pinned Locked Moved Web Development
htmlcomregex
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • _ Offline
    _ Offline
    _Flaviu
    wrote on last edited by
    #1

    I need to do a small html code that looks like this: Imgupx - Upload and share your images[^] I have tried some code, but it doesn't work:

    ER

    	![](C:\Users\myname\Downloads\cici.png)
    

    341 Ohm

    EN

    	![](C:\Users\myname\Downloads\bibi.png)
    

    356

    J J 2 Replies Last reply
    0
    • _ _Flaviu

      I need to do a small html code that looks like this: Imgupx - Upload and share your images[^] I have tried some code, but it doesn't work:

      ER

      	![](C:\Users\myname\Downloads\cici.png)
      

      341 Ohm

      EN

      	![](C:\Users\myname\Downloads\bibi.png)
      

      356

      J Offline
      J Offline
      jsc42
      wrote on last edited by
      #2

      For a personal web page only accessed from the same PC as the one it is being served from, you will have to use the 'file:' protocol (like http: / https: for remote sites). As you have it, it is looking for the 'C:' protocol - this is not a defined protocol. IIRC, the ':' after the 'C' needs encoding as a | e.g.

      ![](file:C|\Users\myname\Downloads\cici.png)

      For a web page accessed from a different location, you will have to save the images in a special folder (details vary based on the web server software - see your documentation) and the name will be relative to that server's root (and, in that instance, you can skipped putting the protocol component).

      _ 1 Reply Last reply
      0
      • J jsc42

        For a personal web page only accessed from the same PC as the one it is being served from, you will have to use the 'file:' protocol (like http: / https: for remote sites). As you have it, it is looking for the 'C:' protocol - this is not a defined protocol. IIRC, the ':' after the 'C' needs encoding as a | e.g.

        ![](file:C|\Users\myname\Downloads\cici.png)

        For a web page accessed from a different location, you will have to save the images in a special folder (details vary based on the web server software - see your documentation) and the name will be relative to that server's root (and, in that instance, you can skipped putting the protocol component).

        _ Offline
        _ Offline
        _Flaviu
        wrote on last edited by
        #3

        The image is for testing purpose only, the fact is the html page is like in the image: Imgupx - Upload and share your images[^] How can I arrange multiple text and image anxt again like the image reveal ?

        _ 1 Reply Last reply
        0
        • _ _Flaviu

          The image is for testing purpose only, the fact is the html page is like in the image: Imgupx - Upload and share your images[^] How can I arrange multiple text and image anxt again like the image reveal ?

          _ Offline
          _ Offline
          _Flaviu
          wrote on last edited by
          #4

          I have made it:

          ER

          ![](C:\Users\myname\Downloads\cici.png)
          

          341 Ohm

          EN

          ![](C:\Users\myname\Downloads\bibi.png)
          

          356

          1 Reply Last reply
          0
          • _ _Flaviu

            I need to do a small html code that looks like this: Imgupx - Upload and share your images[^] I have tried some code, but it doesn't work:

            ER

            	![](C:\Users\myname\Downloads\cici.png)
            

            341 Ohm

            EN

            	![](C:\Users\myname\Downloads\bibi.png)
            

            356

            J Offline
            J Offline
            Jeremy Falcon
            wrote on last edited by
            #5

            Your life will become much easier if you use a local web server for development. 1. Install [Node.js](https://nodejs.org/en). 2. Install a global npm package like [local-web-server](https://www.npmjs.com/package/local-web-server), npm i -g local-web-server. 3. Go to your HTML files and run the web server in that directory, ws. If you ever do upload your work to a remote server, this will make your life much easier. Not to mention, things like cookies do not work when HTML pages are viewed over the file protocol.

            Jeremy Falcon

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups