SlideShare a Scribd company logo
inline-block
    @version ve
 WCAN 2010 Spring LT




                       1
@version ve
 -
VERSIONFIVE
 -
 -




              2
3/1   HTML5 + CSS3
          3/15       8



                         3
inline-block?



                4
E{
  display: inline-block ;
}
                       CSS 2.1




      (6, 7), 8   3-         2-

                                  5
WCAN     Web Creators Association Nagoya

                   inline-block    inline-block
        WEB

  WEB


                             (display: inline)
                            (display: block)




                                                  6
WCAN     Web Creators Association Nagoya

                   inline-block     inline-block
        WEB

  WEB


                         (text-align, vertical-align, etc     )
                       (margin, padding, width, height, etc       )




                                                                      7
E{
  display: inline-block;
  /display: inline; /*for IE6-7*/
  /zoom: 1; /*for IE6-7*/
}

                                    8
inline-block




         3     9
1.




     10
1.




HTML

  <h2>
     <img /> <span>2</span>
  </h2>




                              11
1.




HTML

  <h2>
     <img /> <span>2</span>
  </h2>




                              11
1.




CSS

  h2 span {
     display: inline-block;
     /display: inline;
     /zoom: 1;
     padding: xxx;
     height: xxx;
     vertical-align: xxx;
  }




                              12
2.




     13
2.




HTML

  <ul
        ><li><a>1</a></li
        ><li><a>2</a></li
        ><li><a>3</a></li
        ><li><a>4</a></li

  ></ul>




                            14
2.




CSS

  li a {
       display: inline-block;
       /display: inline;
       /zoom: 1;
       margin: 0.3em;
       padding: 0.3em 0.5em;
  }
  ul {text-align: center;}
  li {display: inline;}




                                15
3.




     16
3.




 oat:            oat:
         oat:
left;           left;
        left;
                        HTML

                 oat:     <div>
                left;
                             <div>   1</div>
         oat:    oat:        <div>   2</div>
 oat:
        left;   left;
left;
                          </div>
         oat:    oat:
        left;   left;




                                               17
3.




 oat:            oat:
         oat:
left;           left;
        left;           CSS

                 oat:     div div {
                left;
                              display: inline-block;
         oat:    oat:         /display: inline;
 oat:
        left;   left;         /zoom: 1;
left;
                          }
         oat:    oat:
        left;   left;




                                                       18
3.




inline            inline
         inline            CSS
-block            -block
         -block
                             div div {
inline            inline         display: inline-block;
         inline
-block            -block
         -block                  /display: inline;
                                 /zoom: 1;
inline   inline   inline     }
-block   -block   -block




                                                          19
inline-block




✓

✓ CSS

✓          IE6         →




                           20
?
  Twitter @version ve
Blog http://version ve.jp/




                                 21
display:inline-block           |


  - http://c-brains.jp/blog/wsg/09/09/10-010536.php
                                  display : inline-block
  - http://www.yomotsu.net/works/081016cssnite/
IE 6, IE 7   inline-block     |
  - http://www.yomotsu.net/wp/?p=390
inline-block                                | Takazudo Clipping*
  - http://gyauza.egoism.jp/clip/archives/2008/10/081016-inline-block/

                                                                         22

More Related Content

Viewers also liked

Usability Review of Mashup Tools
Usability Review of Mashup ToolsUsability Review of Mashup Tools
Usability Review of Mashup Tools
Tanya Ahmed
 
Program 2010
Program 2010Program 2010
Program 2010YWCARO
 
Repeat steroids for flm 2 (1)
Repeat steroids for flm 2 (1)Repeat steroids for flm 2 (1)
Repeat steroids for flm 2 (1)Asha Reddy
 
Cloud foundry intro with groovy
Cloud foundry intro with groovyCloud foundry intro with groovy
Cloud foundry intro with groovyGuillaume Laforge
 
22 insights into Design by Tom Peters
22 insights into Design by Tom Peters22 insights into Design by Tom Peters
22 insights into Design by Tom Peters
Say Digital Media
 
Prehled firem a investic v CR - 2010
Prehled firem a investic v CR - 2010Prehled firem a investic v CR - 2010
Prehled firem a investic v CR - 2010Innovation Tank
 
TeenLife Boston: Guide to Community Service 2012
TeenLife Boston: Guide to Community Service 2012TeenLife Boston: Guide to Community Service 2012
TeenLife Boston: Guide to Community Service 2012
TeenLife
 
Better care fund Helen Bevan
Better care fund Helen BevanBetter care fund Helen Bevan
Better care fund Helen Bevan
NHS Improving Quality
 
Global trade in_malagasy_precious_woods
Global trade in_malagasy_precious_woodsGlobal trade in_malagasy_precious_woods
Global trade in_malagasy_precious_woods
Zoely Mamizaka
 
KB Seminars: Growing Your Online Business; 03/12
KB Seminars: Growing Your Online Business; 03/12KB Seminars: Growing Your Online Business; 03/12
KB Seminars: Growing Your Online Business; 03/12MDIF
 
The discovery of the atomic world and the constituents of matter
The discovery of the atomic world and the constituents of matterThe discovery of the atomic world and the constituents of matter
The discovery of the atomic world and the constituents of matter
Rochelle Forrester
 
Zahtz portfolio
Zahtz portfolioZahtz portfolio
Zahtz portfolio
Senserit
 
Astronomers Returns to the Stratosphere
Astronomers Returns to the StratosphereAstronomers Returns to the Stratosphere
Astronomers Returns to the Stratosphere
Sean Casey, USRA
 
Dairy Goats: Sustainable Production
Dairy Goats: Sustainable ProductionDairy Goats: Sustainable Production
Dairy Goats: Sustainable Production
ElisaMendelsohn
 
Gyanm's general awareness magazine may 2014 issue
Gyanm's general awareness magazine may 2014 issueGyanm's general awareness magazine may 2014 issue
Gyanm's general awareness magazine may 2014 issueGrover's Gyanm
 
Aircraft IT MRO eJournal "eSignatures" How I See IT
Aircraft IT MRO eJournal "eSignatures" How I See ITAircraft IT MRO eJournal "eSignatures" How I See IT
Aircraft IT MRO eJournal "eSignatures" How I See IT
Michael Denis
 

Viewers also liked (16)

Usability Review of Mashup Tools
Usability Review of Mashup ToolsUsability Review of Mashup Tools
Usability Review of Mashup Tools
 
Program 2010
Program 2010Program 2010
Program 2010
 
Repeat steroids for flm 2 (1)
Repeat steroids for flm 2 (1)Repeat steroids for flm 2 (1)
Repeat steroids for flm 2 (1)
 
Cloud foundry intro with groovy
Cloud foundry intro with groovyCloud foundry intro with groovy
Cloud foundry intro with groovy
 
22 insights into Design by Tom Peters
22 insights into Design by Tom Peters22 insights into Design by Tom Peters
22 insights into Design by Tom Peters
 
Prehled firem a investic v CR - 2010
Prehled firem a investic v CR - 2010Prehled firem a investic v CR - 2010
Prehled firem a investic v CR - 2010
 
TeenLife Boston: Guide to Community Service 2012
TeenLife Boston: Guide to Community Service 2012TeenLife Boston: Guide to Community Service 2012
TeenLife Boston: Guide to Community Service 2012
 
Better care fund Helen Bevan
Better care fund Helen BevanBetter care fund Helen Bevan
Better care fund Helen Bevan
 
Global trade in_malagasy_precious_woods
Global trade in_malagasy_precious_woodsGlobal trade in_malagasy_precious_woods
Global trade in_malagasy_precious_woods
 
KB Seminars: Growing Your Online Business; 03/12
KB Seminars: Growing Your Online Business; 03/12KB Seminars: Growing Your Online Business; 03/12
KB Seminars: Growing Your Online Business; 03/12
 
The discovery of the atomic world and the constituents of matter
The discovery of the atomic world and the constituents of matterThe discovery of the atomic world and the constituents of matter
The discovery of the atomic world and the constituents of matter
 
Zahtz portfolio
Zahtz portfolioZahtz portfolio
Zahtz portfolio
 
Astronomers Returns to the Stratosphere
Astronomers Returns to the StratosphereAstronomers Returns to the Stratosphere
Astronomers Returns to the Stratosphere
 
Dairy Goats: Sustainable Production
Dairy Goats: Sustainable ProductionDairy Goats: Sustainable Production
Dairy Goats: Sustainable Production
 
Gyanm's general awareness magazine may 2014 issue
Gyanm's general awareness magazine may 2014 issueGyanm's general awareness magazine may 2014 issue
Gyanm's general awareness magazine may 2014 issue
 
Aircraft IT MRO eJournal "eSignatures" How I See IT
Aircraft IT MRO eJournal "eSignatures" How I See ITAircraft IT MRO eJournal "eSignatures" How I See IT
Aircraft IT MRO eJournal "eSignatures" How I See IT
 

明日から使える inline-block

  • 1. inline-block @version ve WCAN 2010 Spring LT 1
  • 3. 3/1 HTML5 + CSS3 3/15 8 3
  • 5. E{ display: inline-block ; } CSS 2.1 (6, 7), 8 3- 2- 5
  • 6. WCAN Web Creators Association Nagoya inline-block inline-block WEB WEB (display: inline) (display: block) 6
  • 7. WCAN Web Creators Association Nagoya inline-block inline-block WEB WEB (text-align, vertical-align, etc ) (margin, padding, width, height, etc ) 7
  • 8. E{ display: inline-block; /display: inline; /*for IE6-7*/ /zoom: 1; /*for IE6-7*/ } 8
  • 10. 1. 10
  • 11. 1. HTML <h2> <img /> <span>2</span> </h2> 11
  • 12. 1. HTML <h2> <img /> <span>2</span> </h2> 11
  • 13. 1. CSS h2 span { display: inline-block; /display: inline; /zoom: 1; padding: xxx; height: xxx; vertical-align: xxx; } 12
  • 14. 2. 13
  • 15. 2. HTML <ul ><li><a>1</a></li ><li><a>2</a></li ><li><a>3</a></li ><li><a>4</a></li ></ul> 14
  • 16. 2. CSS li a { display: inline-block; /display: inline; /zoom: 1; margin: 0.3em; padding: 0.3em 0.5em; } ul {text-align: center;} li {display: inline;} 15
  • 17. 3. 16
  • 18. 3. oat: oat: oat: left; left; left; HTML oat: <div> left; <div> 1</div> oat: oat: <div> 2</div> oat: left; left; left; </div> oat: oat: left; left; 17
  • 19. 3. oat: oat: oat: left; left; left; CSS oat: div div { left; display: inline-block; oat: oat: /display: inline; oat: left; left; /zoom: 1; left; } oat: oat: left; left; 18
  • 20. 3. inline inline inline CSS -block -block -block div div { inline inline display: inline-block; inline -block -block -block /display: inline; /zoom: 1; inline inline inline } -block -block -block 19
  • 22. ? Twitter @version ve Blog http://version ve.jp/ 21
  • 23. display:inline-block | - http://c-brains.jp/blog/wsg/09/09/10-010536.php display : inline-block - http://www.yomotsu.net/works/081016cssnite/ IE 6, IE 7 inline-block | - http://www.yomotsu.net/wp/?p=390 inline-block | Takazudo Clipping* - http://gyauza.egoism.jp/clip/archives/2008/10/081016-inline-block/ 22

Editor's Notes

  1. CSS2.1&amp;#x3067;&amp;#x5B9A;&amp;#x7FA9;&amp;#x3055;&amp;#x308C;&amp;#x3066;&amp;#x3044;&amp;#x308B;&amp;#x3001;display&amp;#x30D7;&amp;#x30ED;&amp;#x30D1;&amp;#x30C6;&amp;#x30A3;&amp;#x306E;&amp;#x5024;&amp;#x306E;1&amp;#x3064;&amp;#x3067;&amp;#x3059;&amp;#x3002; &amp;#x305D;&amp;#x306E;&amp;#x540D;&amp;#x306E;&amp;#x901A;&amp;#x308A;&amp;#x3001;&amp;#x30A4;&amp;#x30F3;&amp;#x30E9;&amp;#x30A4;&amp;#x30F3;&amp;#x306A;&amp;#x30D6;&amp;#x30ED;&amp;#x30C3;&amp;#x30AF;&amp;#x8981;&amp;#x7D20;&amp;#x306B;&amp;#x3057;&amp;#x3066;&amp;#x3057;&amp;#x307E;&amp;#x3046;&amp;#x9762;&amp;#x767D;&amp;#x3044;&amp;#x5024;&amp;#x3067;&amp;#x3059;&amp;#x3002;
  2. &amp;#x30A4;&amp;#x30F3;&amp;#x30E9;&amp;#x30A4;&amp;#x30F3;&amp;#x8981;&amp;#x7D20;&amp;#x306B;&amp;#x306F;&amp;#x672C;&amp;#x6765;&amp;#x52B9;&amp;#x304B;&amp;#x306A;&amp;#x3044;&amp;#x301C;&amp;#x301C;
  3. &amp;#x30D5;&amp;#x30ED;&amp;#x30FC;&amp;#x30C8;&amp;#x3067;&amp;#x3084;&amp;#x308D;&amp;#x3046;&amp;#x3068;&amp;#x3059;&amp;#x308B;&amp;#x3068;&amp;#x3001;&amp;#x4E2D;&amp;#x592E;&amp;#x5BC4;&amp;#x305B;&amp;#x3059;&amp;#x308B;&amp;#x306E;&amp;#x304C;&amp;#x5927;&amp;#x5909;&amp;#x3060;&amp;#x3063;&amp;#x305F;&amp;#x308A;&amp;#x3059;&amp;#x308B;&amp;#x3093;&amp;#x3067;&amp;#x3059;&amp;#x304C;&amp;#x3001;&amp;#x3053;&amp;#x308C;&amp;#x3060;&amp;#x3051;&amp;#x306E;&amp;#x30B3;&amp;#x30FC;&amp;#x30C9;&amp;#x3067;&amp;#x7C21;&amp;#x5358;&amp;#x306B;&amp;#x5B9F;&amp;#x73FE;&amp;#x3067;&amp;#x304D;&amp;#x3066;&amp;#x3057;&amp;#x307E;&amp;#x3044;&amp;#x307E;&amp;#x3059;&amp;#x3002;
  4. &amp;#x660E;&amp;#x65E5;&amp;#x304B;&amp;#x3089;&amp;#x696D;&amp;#x52D9;&amp;#x3067;&amp;#x4F7F;&amp;#x3048;&amp;#x308B;&amp;#x4FBF;&amp;#x5229;&amp;#x306A;&amp;#x30D7;&amp;#x30ED;&amp;#x30D1;&amp;#x30C6;&amp;#x30A3;&amp;#x3060;&amp;#x3068;&amp;#x601D;&amp;#x3044;&amp;#x307E;&amp;#x3059;