Results 1 to 3 of 3
  1. #1
    stardust Vishnal's Avatar
    Join Date
    May 2013
    Location
    Selphia
    Posts
    197

    Ability to center/right align [div] tags?

    Sort of a question/suggestion, but anyway:

    Is it possible to center or right align [div] tags? I know it's possible with text (including [div] tags that simply contain text), but I wish to center an image with text on it. For example, here is an older signature of mine that uses [center] and [div] tags:


    Here is the raw code for reference:

    [CENTER][div=cursor:move;][div="color: white; background-image:url('http://i42.tinypic.com/21mz0gp.png'); background-repeat:no-repeat; width:400px; height:333px; padding: 0px 0px 0px 0px;background-color: transparent; border:0px; -moz-border-radius-topleft: 15px; -moz-border-radius-topright: 15px; -moz-border-radius-bottomright: 15px; -moz-border-radius-bottomleft: 15px;"][div="position: relative; left:39%; top:22%;"][div=font-size:19px; font-family:Comic Sans MS; color:rgba(218, 2, 0, 0.8);][img]http://i.imgur.com/zTYvz.png[/img][/div][/div][/div][/div][/CENTER]

    Though I have [center] tags wrapped around it, it is not centered. I have tried using align elements within div tags, but they do not work, either.

    iirc it is possible in vB4—I think the HTML for the [div] BBCode had to be adjusted so it could be centered/right aligned? Alternatively, I recall having to create a new alignment BBCode using the following HTML (for the Replacement section): <div align="{option}">{param}</div>

    If it can be fixed, or if someone can tell me how to center/right align [div] tags on here, I would greatly appreciate it.

    Thank you!
    Last edited by Vishnal; 12-28-2015 at 04:57 AM.

    dreamwidth // plurk // tumblr // gallery
    gfx by lucia @ pxr // feat. lily white

  2. #2
    growing strong Pokemon Trainer Sarah's Avatar
    Site Editor

    Senior Administrator

    Join Date
    Feb 2013
    Location
    Route 1
    Posts
    10,711


    Created a new bbcode divalign

    Works like

    [divalign=right]div is aligned to right[/divalign]
    [divalign=center]div is aligned to center[/divalign]

    Hopefully that works for what you need? Let me know, @Serena! :)
    GCEA


  3. This post has been liked by:


  4. #3
    stardust Vishnal's Avatar
    Join Date
    May 2013
    Location
    Selphia
    Posts
    197
    Quote Originally Posted by Pokemon Trainer Sarah View Post


    Created a new bbcode divalign

    Works like

    [divalign=right]div is aligned to right[/divalign]
    [divalign=center]div is aligned to center[/divalign]

    Hopefully that works for what you need? Let me know, @Serena! :)
    It works! Thank you very much~

    dreamwidth // plurk // tumblr // gallery
    gfx by lucia @ pxr // feat. lily white

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
  •