GithubHelp home page GithubHelp logo

inline-block ? about html5please HOT 14 CLOSED

h5bp avatar h5bp commented on July 19, 2024
inline-block ?

from html5please.

Comments (14)

paulirish avatar paulirish commented on July 19, 2024

sounds awesome to me. do you want to take a stab at the content?

from html5please.

thedamon avatar thedamon commented on July 19, 2024

Sure! I should have some time tonight or tomorrow to do it, if I can't squeak it in before then

from html5please.

nimbupani avatar nimbupani commented on July 19, 2024

Not quite targetting IE6 and 7 so I am okay not having it. inline-block is also pretty old-school >_> But it is a good thing to mention in html5boilerplate documentation.

from html5please.

thedamon avatar thedamon commented on July 19, 2024

seemed worth mentioning for consistency if there is an entry for min/max height/width. Didn't realize it was old-school

from html5please.

justmarkup avatar justmarkup commented on July 19, 2024

If inline-block is worth a mention, then we end up mentioning all the new display properties like inline-table, table-header ...

On the one hand we may can summarize them all in a way but on the other hand this can end up easily in long descriptions as there is inconsistent browser support and there are accessibility problems when using display: table for example.

from html5please.

necolas avatar necolas commented on July 19, 2024

There is an existing hack for inline-block-like on block-level-by-default elements in IE6/7 - *display:inline; *zoom:1.

from html5please.

jonathantneal avatar jonathantneal commented on July 19, 2024

+1 to necolas, that hack works great in all production work I've ever done. I've wondered though if we reset the display back to inline-block in IE6/7 if the hack still works (so then currentStyle would report more accurately).

from html5please.

Francisc avatar Francisc commented on July 19, 2024
selector
{
    display:-moz-inline-stack;/* FF2 does not support inline-block, use proprietary XUL element. */
    display:inline-block;
    *zoom:1;/* Trigger hasLayout in IE7 and lower. */
    *display:inline;/* IE7 and lower do not support inline-block. Star hack to target IE7 and lower. */
}

from html5please.

jonathantneal avatar jonathantneal commented on July 19, 2024

I don't have write access to this repo. Who is gonna add in the hack (as mentioned by @necolas )?

from html5please.

nimbupani avatar nimbupani commented on July 19, 2024

@jonathantneal could always do a pull request :) Do we need inline-block documentation?

from html5please.

paulirish avatar paulirish commented on July 19, 2024

we do!

from html5please.

nimbupani avatar nimbupani commented on July 19, 2024

Happy to have a PR from anyone on this (though I do think it is unnecessary).

from html5please.

giuseppeg avatar giuseppeg commented on July 19, 2024

What about a tiny note and an external link?
Usually on #css@Freenode we point users to this article: “inline-block” and you

from html5please.

robwierzbowski avatar robwierzbowski commented on July 19, 2024

IE6 and 7 are widely unsupported at this point. Since HTML5 Please is more about polyfilling modern HTML5 features than fixing xHTML features into older browsers, I'm closing. There are other good resources for legacy browser CSS hacks.

from html5please.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.