Vertua CSS Problems

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Vertua CSS Problems - Presentation Transcript

    1. The Question “ Trying to move toward absolute positioning versus floats for layout.... I am trying to figure out if [you] have to always use a height on the wrapper div. If I have text columns that have no specific ” height it seems everything breaks at that point. Shane Perran, graphicalwonder.com ethan marcottESXSW2006www.vertua.com
    2. Absolute Positioning It’s all about the x and the y (axes, that is) ❖ Treating parts of your document as distinct ❖ “layers” Use CSS to precisely place them upon a ❖ coordinate grid Cake, yes? Let’s look at an example. ethan marcottESXSW2006www.vertua.com
    3. A new “positioning context” div.photo { <div class=\"photo\"> position: relative; <p>Here’s a caption. Yay.</p> } <img src=\"photo.jpg\" alt=\"\" /> </div> p.caption { position: absolute; bottom: 9px; } ethan marcottESXSW2006www.vertua.com
    4. \"Bottom-blindness\"
    5. position: relative;
    6. position: position: margin-left: [x]; absolute; absolute; margin-right: [y]; width: [x]; width: [y]
    7. Remember <img align=\"left\">? ethan marcottESXSW2006www.vertua.com
    8. The basics img { float: left; } ethan marcottESXSW2006www.vertua.com
    9. The basics img { float: right; } ethan marcottESXSW2006www.vertua.com
    10. Reflow, floats, and you img { float: left; } ethan marcottESXSW2006www.vertua.com
    11. Restoring order to the flow p.clear { clear: left; } ethan marcottESXSW2006www.vertua.com
    12. Okay, great. Kitty pictures. So? Floats can provide us with a more flexible ❖ layout model Clearing allows the components of our ❖ designs to become “context aware” Let’s view a simple example. ❖ ethan marcottESXSW2006www.vertua.com
    13. Marrying floats and positioning ethan marcottESXSW2006www.vertua.com
    14. The marvelous markup <div class=\"person\"> <div class=\"image\"> <img src=\"photo.jpg\" alt=\"\" /> </div> <dl> <dt><a href=\"#\">Durstan who?</a></dt> <dd> <ul>...</ul> </dd> </dl> </div> ethan marcottESXSW2006www.vertua.com
    15. Getting our 2-column structure ethan marcottESXSW2006www.vertua.com
    16. Getting our 2-column structure .person { clear: left; } .person .image { float: left; } ethan marcottESXSW2006www.vertua.com
    17. One minor addition <div class=\"person\"> <div class=\"image\"> <img src=\"photo.jpg\" alt=\"\" /> </div> <dl> <dt><a href=\"#\">Durstan who?</a></dt> <dd> <ul>...</ul> </dd> </dl> </div> ethan marcottESXSW2006www.vertua.com
    18. One minor addition <div class=\"person\"> <div class=\"image\"> <img src=\"photo.jpg\" alt=\"\" /> </div> <dl> <dt><a href=\"#\"><i></i>Durstan who?</a></dt> <dd> <ul>...</ul> </dd> </dl> </div> ethan marcottESXSW2006www.vertua.com
    19. Layering the link .person { position: relative; } position: relative; ethan marcottESXSW2006www.vertua.com
    20. Layering the link .person { position: relative; } .person dt i { <i></i> display: block; height: 160px; width: 160px; position: absolute; left: 0; top: 0; } ethan marcottESXSW2006www.vertua.com
    21. Ethan Marcotte vertua.com

    + guest3c5779guest3c5779, 3 years ago

    custom

    562 views, 0 favs, 0 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 562
      • 562 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 12
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories

    Tags