• 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 3rd party tool/editor to generate code to center images/videos

Scheduled Pinned Locked Moved General Discussion
12 Posts 6 Posters 4.4k 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

    Ok. I got everything set and need to take the forum rolling. But I am still at bay as most of my uses include posting images and videos which need to be center aligned. Can I use some other tools which like Libre Office or some HTML editor and find any ways to center my image/ video. My whole setting up server, installing NodeBB, learning and setting up the forum will be wasted if I cannot find a solution :sad:

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

    For images you could create your own convention:
    For examle you could center all images with alt-tag beginning with _ by adding the following to custom css:

    .img-responsive[alt^="_"] {
      margin: auto;
    }
    

    Now evey image included like ![_Mine](http://i.imgur.com/z9DWzht.gif) should be centered.

    EDIT: For videos you may choose to center all of them, just add margin: auto; into the code I gave you here ๐Ÿ˜‰

    1 Reply Last reply
    5
  • psychobunnyP Offline
    psychobunnyP Offline
    psychobunny
    wrote on last edited by
    #3

    That's a very cool tip @frissdiegurke, I never thought of that before.. genius

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

    @frissdiegurke said:

    ![_Mine]

    Working Great. Thanks a lot. :grateful:

    1 Reply Last reply
    0
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    wrote on last edited by
    #5

    @frissdiegurke That's a pretty neat hack! Awesome ๐Ÿ™‚

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

    To be honest. I am really impressed with the help I get from community. Without you guys, I would not have been able to use such a good script. Just want to say Thanks all.

    frissdiegurkeF 1 Reply Last reply
    0
  • frissdiegurkeF Offline
    frissdiegurkeF Offline
    frissdiegurke Plugin & Theme Dev
    replied to meetdilip on last edited by
    #7

    @meetdilip said:

    To be honest. I am really impressed with the help I get from community. Without you guys, I would not have been able to use such a good script. Just want to say Thanks all.

    I think I can say you're welcome from all of us ๐Ÿ™‚

    @psychobunny @meetdilip @julian I appreciate your kind words ๐Ÿ’“

    1 Reply Last reply
    3
  • CygnusC Offline
    CygnusC Offline
    Cygnus Gamers
    wrote on last edited by Cygnus
    #8

    ๐Ÿ˜ž only works on the preview

    PitaJP 1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    replied to Cygnus on last edited by
    #9

    @Cygnus what about it doesn't work?

    CygnusC 1 Reply Last reply
    0
  • CygnusC Offline
    CygnusC Offline
    Cygnus Gamers
    replied to PitaJ on last edited by
    #10

    @PitaJ

    alt text

    Preview fine, but it does not work when publishing

    PitaJP 1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    replied to Cygnus on last edited by
    #11

    @Cygnus I've fixed it. Here's the updated CSS:

    .img-responsive[alt^="_"], .topic .posts .content .img-responsive[alt^="_"] {
      margin: auto;
      display: block;
    }
    
    CygnusC 1 Reply Last reply
    3
  • CygnusC Offline
    CygnusC Offline
    Cygnus Gamers
    replied to PitaJ on last edited by
    #12

    @PitaJ thats what im talking about, Iยดll buy you a beer ๐Ÿ˜‰

    Solved!

    1 Reply Last reply
    0

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