• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
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
v3.5.2 Latest
Buy Hosting

Any way to center the url embedded image ?

Scheduled Pinned Locked Moved General Discussion
4 Posts 3 Posters 1.6k Views
    • 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.
  • meetdilipM Offline
    meetdilipM Offline
    meetdilip GNU/Linux
    wrote on last edited by
    #1

    Now that we can embed image by url (thanks for that plugin) is it possible to center it as well somehow ?

    A 1 Reply Last reply
    0
  • A Offline
    A Offline
    a_5mith
    replied to meetdilip on last edited by
    #2

    @meetdilip said:

    Now that we can embed image by url (thanks for that plugin) is it possible to center it as well somehow ?

    You can use css to center images using margin-left:auto; and margin-right:auto;

    1 Reply Last reply
    1
  • meetdilipM Offline
    meetdilipM Offline
    meetdilip GNU/Linux
    wrote on last edited by
    #3

    Thanks @a_5mith . But will it affect text as well ? I mean if I need put a list

    1. ltem 1

    2. Item 2

    3. Item 3

    Won' t that too get centered ?

    1 Reply Last reply
    0
  • frissdiegurkeF Offline
    frissdiegurkeF Offline
    frissdiegurke Plugin & Theme Dev
    wrote on last edited by
    #4

    you need to bind it to the images like by tag-name:

    img {
      margin-left: auto;
      margin-right: auto;
    }
    
    1 Reply Last reply
    1

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development