User Tag List

Results 1 to 10 of 10

Thread: [float] and [drop] tags

  1. #1
    Wizrobe fatcatfan's Avatar
    Join Date
    Jan 2001
    Location
    Tir-na Nog'th
    Age
    46
    Posts
    4,361
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    5,881
    Level
    23
    vBActivity - Bars
    Lv. Percent
    76.65%

    [float] and [drop] tags

    To serve my own nefarious purposes, I have added the custom vB code tag "float". It permits you to... well... float a section of text to the left or right of it's container, with the HTML < span style="float: {option}" >{param}< /span > Companion to the "float" tag is the "drop" flag. This drops the text which follows it to the space immediately below any floating elements, by inserting the HTML code < br clear="{param}" >. Param can be one of "left", "right", or "all" and will drop you below any floating elements on the indicated side(s). An example follows:


    2
    [ float=right ]this is some text
    floating on the right
    side of the page[ /float ][ float=left ]this
    text
    is
    on
    the
    left
    side
    of
    the
    page[ /float ][ center ]this is in the center[ /center ][ drop ]right[ /drop ]and this falls just below the floating text on the right[ float=right ]also on the right[ /float ][ drop ]all[ /drop ][ center ]and this falls below all the rest[ /center ][ /code ]


    2
    [float=right]this is some text
    floating on the right
    side of the page[/float][float=left]this
    text
    is
    on
    the
    left
    side
    of
    the
    page[/float]
    this is in the center
    [drop]right[/drop]and this falls just below the floating text on the right[float=right]also on the right[/float][drop]all[/drop]
    and this falls below all the rest

    "If I find in myself a desire which no experience in this world can satisfy, the most probable explanation is that I was made for another world." - C.S. Lewis

    "Hypocrisy is wrong, but a society which decides to live up to its standards by not having any is worse." - George Neumayr

  2. #2
    Wizrobe carrot red's Avatar
    Join Date
    Dec 2002
    Posts
    2,818
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    13,022
    Level
    33
    vBActivity - Bars
    Lv. Percent
    32.93%
    Nifty.:)
    I was wondering how you managed to do that in your sig.

  3. #3
    Administrator Breaker's Avatar
    Join Date
    Feb 2001
    Location
    Unknown
    Posts
    6,647
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,917
    Level
    27
    vBActivity - Bars
    Lv. Percent
    0.57%
    Shadowblazer would have made better.

  4. #4
    Octorok
    Join Date
    Jan 2002
    Location
    K-Town
    Age
    38
    Posts
    232
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,192
    Level
    11
    vBActivity - Bars
    Lv. Percent
    82.77%
    I'll definately say that is a neat feature to say the least...
    You cant hate the guy who pulls the switch, its just his job - Samson007

    My Website: http://earth.prohosting.com/dsilver/

  5. #5
    Wizrobe fatcatfan's Avatar
    Join Date
    Jan 2001
    Location
    Tir-na Nog'th
    Age
    46
    Posts
    4,361
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    5,881
    Level
    23
    vBActivity - Bars
    Lv. Percent
    76.65%
    Originally posted by Breaker
    Shadowblazer would have made better.
    Of course he would... especially considering he can actually *code* some stuff rather than use the admin CP... but he's not here so you have to be content with my poor substitute...

    "If I find in myself a desire which no experience in this world can satisfy, the most probable explanation is that I was made for another world." - C.S. Lewis

    "Hypocrisy is wrong, but a society which decides to live up to its standards by not having any is worse." - George Neumayr

  6. #6
    Wizrobe Ganonator's Avatar
    Join Date
    Jan 2002
    Location
    Seattle
    Age
    39
    Posts
    4,084
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,109
    Level
    25
    vBActivity - Bars
    Lv. Percent
    78.58%
    EDIT: should I be allowed to float stuff into my siggy? V
    [float=left]I'm just going
    to screw around
    with this to
    see if it is
    possible to get
    columns right.[/float][float=center]Its actually a
    very good idea.
    I could put
    screenshots in the
    middle, also tooltips.[/float][float=right]Now if only one
    of our great
    admins would put
    in a flash movie
    player. [/float]

  7. #7
    Wizrobe Raichu86's Avatar
    Join Date
    Aug 2001
    Location
    Texas
    Age
    37
    Posts
    2,643
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    3,507
    Level
    18
    vBActivity - Bars
    Lv. Percent
    99.78%
    Nifty. Thanks fatcatfan.

    [float=right]Watch all the
    IE users complain
    about how it
    screws up for them! :p[/float]

  8. #8
    Wizrobe fatcatfan's Avatar
    Join Date
    Jan 2001
    Location
    Tir-na Nog'th
    Age
    46
    Posts
    4,361
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    5,881
    Level
    23
    vBActivity - Bars
    Lv. Percent
    76.65%
    Hrm... I hadn't considered that it might drop into your sig... that isn't nice. You should just be sure to add a [ drop ]all[ /drop ] at the end of your post.

    "If I find in myself a desire which no experience in this world can satisfy, the most probable explanation is that I was made for another world." - C.S. Lewis

    "Hypocrisy is wrong, but a society which decides to live up to its standards by not having any is worse." - George Neumayr

  9. #9
    Wizrobe Ganonator's Avatar
    Join Date
    Jan 2002
    Location
    Seattle
    Age
    39
    Posts
    4,084
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,109
    Level
    25
    vBActivity - Bars
    Lv. Percent
    78.58%
    interesting...

    the other behavior includes droping out of quote boxes. Although it would take a great deal of work from the PHP side, [drop]all[/drop] should be added to the end of quote boxes as well as posts. I still love the affect.

  10. #10
    Wizrobe fatcatfan's Avatar
    Join Date
    Jan 2001
    Location
    Tir-na Nog'th
    Age
    46
    Posts
    4,361
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    5,881
    Level
    23
    vBActivity - Bars
    Lv. Percent
    76.65%
    Yeah, unfortunately I can't do any PHP coding. I don't have ftp access to the site, and I don't want it either. Maybe once Shadowblazer gets back from his honeymoon you can sweet talk him into doing something.

    "If I find in myself a desire which no experience in this world can satisfy, the most probable explanation is that I was made for another world." - C.S. Lewis

    "Hypocrisy is wrong, but a society which decides to live up to its standards by not having any is worse." - George Neumayr

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social