Results 1 to 5 of 5

Thread: How to do modern CSS layout?

  1. #1
    Join Date
    Jan 2006
    Posts
    126
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How to do modern CSS layout?

    I see that basic concept of layout is:
    top
    middle
    footer

    How to make CSS layout like google to have top part as 100% width with padding but middle part resize with sceen resolution.
    Is this pure CSS skills or I have to use Javascript code to defined sceen resolution?

    If you use 15'4 laptop is middle part different from 17'' as it seems it is moving larger and not fixed width.

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    Which google page are you referring to Gmail, maps, searchs, docs, sites, videos, other? Post a link to the google page if it takes some interaction to get there.

    I think your taking about margin auto for part and width 100% for another part but maybe not.

  3. #3
    Join Date
    Jan 2006
    Posts
    126
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question

    When you are logged in you into google account you see many Report types. This list of reports resize with resolution but top part is all the time the same almost 100% width.

  4. #4
    Join Date
    Feb 2009
    Posts
    156
    Thanks
    0
    Thanked 4 Times in 3 Posts

    Default

    actually what u wana do? clear it 1st

    do u wana make ur page larger with resolution or wana do it fix..?


    its all done in CSS only
    there are 3 type of layouts in CSS
    1. Fixed
    2. Liquid
    3. Elastic


    in FIxed the width will be fixed no matter what the size of resolution is....
    .div1
    {
    width:200px;
    }
    ----------------------------
    in Liquid the size is always effected with the size of the resolution ( as 14" monitor show small DIVs and 15" monitor show bigger..)
    .div1
    {
    width:50%;
    }
    -------------------------
    elastic sizes increses when we increse the size of the ont and page view...
    .div1
    {
    width:50em;
    }



    now u choose what kind of layout u wana make... n u can also mix it with each other

  5. #5
    Join Date
    Nov 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You can try finding inspiration in a CSS Gallery, actually the most important galleries are: CSS Mania and CSS Vault, but a lot more exist, you find a great list at meecss.com

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •