Flexible page: ID? or class

Discussion in 'Web Design and Development' started by pelsar, Jan 27, 2009.

  1. pelsar macrumors regular

    Joined:
    Apr 29, 2008
    Location:
    israel
    #1
    two problems on my new site....on this typical page the the bottom footer should show up just under where the text ends...it doesnt it remains at the sameplace on the page.

    http://www.spinnerdesign.co.il/AboutUs2.html
    http://www.spinnerdesign.co.il/AboutUs.html


    problem two:
    this "container" page is the base for 15 additional pages...so the text block must be flexible as each page will have different amounts of text...does that mean it should be an .ID?...or a class

    ___
     
  2. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #2
    Whether to use and id or class is totally the wrong question. CSS can style either equally well. When deciding between the two is for an id, the element should be unique on a page, whereas a class may be used more than once per page.

    As far as problem 1, you're using a lot of absolute positioning and specifying a specific height in pixels. This is the root of your page being inflexible. Don't use absolute unless necessary, and don't declare a height so the content will fill the elements and they'll expand as needed. Looks like it'll take a bit of reworking the CSS to get this done.
     
  3. pelsar thread starter macrumors regular

    Joined:
    Apr 29, 2008
    Location:
    israel
    #3
    a new an improved version....

    http://www.spinnerdesign.co.il/AboutUs.html

    i modified the CSS so that the class no longer has a definitive length...and now it goes pretty far...any ideas what i 'm doing wrong?
     
  4. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #4
    File: inside_pages.css
    Line: 56,
    Code:
    .allPage2 {
    ...
     height: [B]3248px[/B];
    ...
    }
     
  5. pelsar thread starter macrumors regular

    Joined:
    Apr 29, 2008
    Location:
    israel
    #5
    thanks for the input...

    I've decided to recode the site...its a mess (i gave it to some else to do).....who didnt seem to know a "whole lot".....
     

Share This Page