Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorbillgates
    • CommentTimeFeb 14th 2008
     permalink
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
    <HTML>
    <!-- div centering with clipping //-->
    <!-- works in IE and FF //-->
    <!-- by TFI 14 Feb 2008//-->
    <HEAD>
    <STYLE type="text/css">
    span {display:table-cell; display:inline-block; overflow:hidden; position:static;}
    DIV#wrapper {width:300px;height:80px;overflow:hidden;clip:rect(0px,300px,80px,0pt);}
    </STYLE>
    </HEAD>
    <BODY>
    <TABLE cellpadding=0 cellspacing=0 border=0 height=100% align=center bgcolor=lightgreen>
    <TR>
    <TD valign=middle>
    <TABLE cellpadding=0 cellspacing=0 border=1 align=center height=80>
    <TR>
    <TD width=300 align=center>
    <SPAN>
    <DIV id="wrapper">
    <DIV id="layer1" style="position: relative">
    line 1<BR>
    line 2<BR>
    line 3<BR>
    line 4<BR>
    line 5<BR>
    line 6<BR>
    line 7<BR>
    line 8<BR>
    line 9<BR>
    </DIV>
    </DIV>
    </SPAN></TD>
    </TR>
    </TABLE></TD>
    </TR>
    </TABLE>
    </HTML>
  1.  permalink
    No school like the old school. Awesomely bad.
    • CommentAuthorgogogob
    • CommentTimeFeb 14th 2008
     permalink
    Blimey... fossilised dinosaur poo!
  2.  permalink
    well , :)

    nowdays , everybody should use a valid doctype on the first place ...

    then , clipping might hide content .

    The table itself will center anything (horizontal/vertical) no matter the content nor the doctype used .

    Nice useless fake trick , i wish that you have learnt from it :)

    GC
    • CommentAuthoraalaap
    • CommentTimeMar 2nd 2009
     permalink
    I'm sorry.. did I miss something here? A table-based layout in a CSS forum?
  3.  permalink
    not really , .... looks like BillGates strikes again !

    CSS is not stand-alone , it needs to style somethings , even tables thu ! be kind :)
    •  
      CommentAuthoraleare
    • CommentTimeMar 21st 2009
     permalink
    Come on, guys... it's not a shame to use Tables sometimes, specially when you have sites that need to "look the same" in ALL browsers, including IE7 and down (yes, tragic but true, there're people that still uses IE 5.5...).
    And what about email marketing pieces? because that most of webmail based accounts don't allow CSS techniques, they are based on tables & image slices, and basic HTML tags, like the old days.

    ,-·*’°§ aleare §°’*·-,
Add your comments
    Username Password
  • Format comments as (Help)