Can I get some CSS Positioning help for Firefox

Discussion in 'CSS' started by hmilesjr, Sep 17, 2006.

  1. #1
    hmilesjr, Sep 17, 2006 IP
  2. hmilesjr

    hmilesjr Active Member

    Messages:
    747
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    58
    #2
    If anyone is having trouble looking at the CSS file, let me know and I can PM it to you.
     
    hmilesjr, Sep 18, 2006 IP
  3. Troozer

    Troozer Peon

    Messages:
    46
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Just to let you know you have the problem in Safari too.
     
    Troozer, Sep 18, 2006 IP
  4. Bombaywala

    Bombaywala Peon

    Messages:
    1,249
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Here is your culprit:

    #navigation{
    height:2.2em;
    .
    .
    .
    padding-left: 10px;
    }
     
    Bombaywala, Sep 18, 2006 IP
  5. hmilesjr

    hmilesjr Active Member

    Messages:
    747
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    58
    #5
    I will try that.

    Here are some other issues:

    1) Footer Bar: The bar is showing at the top and links at the bottom.
    2) In the center of the page, the left and right columns are overlapping the yellow box. The div id for the yellowish box is "insider"
    3) Page is centered in IE but not in Firefox
     
    hmilesjr, Sep 18, 2006 IP
  6. Bombaywala

    Bombaywala Peon

    Messages:
    1,249
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Forget my previous catch. Navigation actually belongs to the bar and not the leftnav menu.

    Question - why do you have tables?

    CSS layers are like boxes. Imagine yourself having boxes inside boxes.

    Create an outer box (like a table) - this should be your container

    Create boxes for your header part (rows and columns)
    Create a box for your header bar
    Create a large box for (Leftnav, content, rightnav)
    Create a box for your footer bar

    Encapsulate above 4 in the outer box.

    IE is bit lenient when it comes to displaying HTML / CSS.

    You might have to do lot of playing - I will look at it later this evening to fix your code.
     
    Bombaywala, Sep 18, 2006 IP
  7. hmilesjr

    hmilesjr Active Member

    Messages:
    747
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    58
    #7
    I had a non table version and a table version. The table version was the only one I could get to not overlap. I will reload the non table version for you to view.

    I have the following:

    #container (my outer box)

    Then all of these are in the container

    #header (my Logo and date code)

    #navigation (my top navigation bar)

    #content (the main content of the page) Within the #content I have #left and #right (floats for the two columns), #insider (yellow box), #titlebar (the dark blue bar, #titlebar2 (text under blue bar), etc. - See below note

    #sidenav (Left navigation bar)

    #foot-navigation (Footer bar)

    #foot-text (text under footer)

    For some reason in the content tags I have the 2 floating boxes #left and #right but they are overlapping the #insider box.
    Also the #foot-navigation is overlapping at the top as well but the text is at the bottom of the page. I also want #container to center in the page. It does so in IE but not in Firefox
     
    hmilesjr, Sep 18, 2006 IP
  8. hmilesjr

    hmilesjr Active Member

    Messages:
    747
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    58
    #8
    Also just to let you know, the page template is setup like so:

    <?php include('inc/header.homepage.php'); ?> (#header info)
    <?php include('inc/top.nav.bar.php'); ?> (#navigation - Top navigation bar)
    <?php include('inc/home-page.php'); ?> (#content info)
    <?php include('inc/left.nav.bar.php'); ?> (#sidenav - Left navigation bar)
    <?php include('inc/footer.bar.php'); ?> (#foot-navigation and #foot-text info)

    I did it this way so I could move the text up higher in the code
     
    hmilesjr, Sep 18, 2006 IP
  9. maney

    maney Active Member

    Messages:
    1,130
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    90
    #9
    I'd be tempted to make a new div in the css and call it content or something. Give it the attribute align=center then put it after the <body> tag and before the </body> tag, that will put all of the stuff in your website and align everything to the centre by default. You can then adjust the alignments if the individual things.
     
    maney, Sep 19, 2006 IP