Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 9 of 9
  1. #1
    Senior Member
    Join Date
    Jan 2011
    Posts
    148
    Member #
    26229
    Liked
    1 times
    Hey,

    I have built a site and am ready to upload, the only issue I have is that it doesn't sit centre on the page in ie. It does in Chrome, Safari and Firefox.

    Does anyone know the CSS that would effect amend this?

  2.  

  3. #2
    Senior Member Dorky's Avatar
    Join Date
    Jun 2009
    Location
    Destin Florida
    Posts
    1,430
    Member #
    19103
    Liked
    4 times
    the way you centered it and the doctype. would need to see the code to say for sure.

    while($get_it !== true){ continue; }

  4. #3
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    It also depends on the version of IE in some cases. Usually this works for your parent container:
    Code:
    margin:  (top and bottom margin) auto;
    width:  (clearly defined width)
    text-align:  center
    Then you create a child container if necessary to change your text alignment.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  5. #4
    Senior Member
    Join Date
    Jan 2011
    Posts
    148
    Member #
    26229
    Liked
    1 times
    Hey,

    So this is the code...


    <html>
    <head>
    <meta http-equiv='X-UA-Compatible' content='IE=8' />
    <title>BREAK COMMUNICATIONS</title>
    <meta name="keywords" content="Break, break communications, Break Communications Home Page, Home page, Brands, communication, Public relations, PR, music, consultancy, youth, engagement, outreach, digital, events, partnerships, international, amplification, development, integrated, agency, online, print, press, bespoke, campaigns, strategic, creative, positioning, niche, specialist, marketing, messaging"> </meta>
    <link rel="stylesheet" type="text/css" href="breakstylesheet.css">
    </head>
    <div id="container">
    <div id="wrapper">
    <body>



    Obviously the code continues through the body and the divs are closed.

    Here are the relevant CSS.

    #container {
    width:970px;
    margin:0px auto;
    min-height: 100%;
    position: relative;
    }

    #wrapper {
    position: relative;
    padding-bottom: 100px;

    }

    body {
    height: 100%;
    background-image:url("images/denimbackground.gif"); repeat;
    }

    Like I said, this is all working fine in Firefox, Chrome and Safari, just ie is the problem...

    Any help whatsoever would be greatly appreciated.

  6. #5
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    Your body tag's in the wrong spot. It should be before the divs.
    Code:
    <body>
    <div id="container">
    <div id="wrapper">
    See if that fixes your problem.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  7. #6
    Senior Member
    Join Date
    Jan 2011
    Posts
    148
    Member #
    26229
    Liked
    1 times
    Hey, the problem is still there in internet explorer... is there anything else you can see? I've been through the code time after time and it's highly frustrating!

  8. #7
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    Take out relative positioning unless there's some element that requires absolute positioning later on (which is unlikely).
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  9. #8
    Senior Member
    Join Date
    Jan 2011
    Posts
    148
    Member #
    26229
    Liked
    1 times
    I have that so that the footer doesn't appear over content when the screen is small....

  10. #9
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    I don't understand why it would.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:35 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com