<<  >> (p.3)
    Author Topic: [LEARN] BBCode Lessons & Tutorials [+tutorial videos!]  (Read 42940 times)
    roslinpl (OP)
    Legendary
    *
    Offline Offline

    Activity: 2212
    Merit: 1199


    View Profile WWW
    February 16, 2017, 08:58:59 PM
    Last edit: February 16, 2017, 09:24:02 PM by roslinpl
    Merited by philipma1957 (3), 1miau (2), LoyceV (1), Steamtyme (1)
     #41


    Lesson 9: "Inside of tables": Image size

    This is a quick lesson or perhaps just a quick tip.
    Lesson 9 is not related with signatures but it's related with BBCode and it's good to know about it when you think about thread design improvements etc.

    If you want to create a table and put some images inside of table rows your image will be visually resized (to smaller).
    Adding width attribute to our image will not solve the problem.

    Example:
    Quote

    150px x 150px Bitcoin logo
    But it's not 150x150...

    Quote

    150px x 150px Bitcoin logo
    Width=150 added. Still it's not 150x150..

    Example code:
    Code:
    [quote][table]
    [tr]
    [td]
    [img]https://i.imgur.com/OaJobp5.png[/img]
    [/td]
    [td]
    150px x 150px Bitcoin logo
    But it's not 150x150...
    [/td]
    [/tr]
    [/table][/quote]

    [quote][table]
    [tr]
    [td]
    [img width=150]https://i.imgur.com/OaJobp5.png[/img]
    [/td]
    [td]
    150px x 150px Bitcoin logo
    Width=150 added. Still it's not 150x150..
    [/td]
    [/tr]
    [/table][/quote]


    How to solve the problem?
    In a same row where the image is we need to type a random line of text which will be longer than image width.
    And make it transparent. ( color=transparent ).

    Quote

    fffffffffffffffffffffffffffffff
    150px x 150px Bitcoin logo
    Now without any width attribute it's displayed as 150px x 150px

    Code:
    Code:
    [quote][table]
    [tr]
    [td]
    [img]https://i.imgur.com/OaJobp5.png[/img]
    [color=transparent]fffffffffffffffffffffffffffffff[/color]
    [/td]
    [td]
    150px x 150px Bitcoin logo
    Now without any width attribute it's displayed as 150px x 150px
    [/td]
    [/tr]
    [/table][/quote]





    Thank you very much man, this was a great tutorial, I am new here but from the begining I was interested about how to create bbcode signature. Don't forget that there are some people, which will like your work.
    thank you for this awesome work Wink

    Hello,

    You're welcome Smiley

    Best wishes.
Page 2
Viewing Page: 3