Can Anyone Tell Me Why My Site is Doing This?

7 replies
  • WEB DESIGN
  • |
I bought a landing page design from someone and i have it uploaded here:

Get Free Stuff - Gift Cards, Movie Tickets, and more!

Does anyone know why the site is scewed to the left, and if so, can you tell me how to get it in the center of the page?

Im using css and html.

Thanks for your help in advance.

Robert
#site
  • Profile picture of the author nelsencaleb
    Banned
    You have to align everything to the center. w3schools.com is a great place to learn html and css. <align=center>,<center>, I haven't done html/css in a few months, I don't really remember, but one of those should do it..
    {{ DiscussionBoard.errors[2664429].message }}
  • Profile picture of the author rvrabel2002
    Yeah i have no idea where the code would go though. I tried emailing the person who created the page, but no response yet.

    Any other takers?

    Thanks for your help.
    Signature

    {{ DiscussionBoard.errors[2664476].message }}
  • Profile picture of the author mywebwork
    You could center it a few ways:

    1 - The correct way is to change your DIV tag as follows:

    Code:
    <div align="center">
    2 - A better way woukd be to define the "wrapper" in your style sheet to have a center alignment.

    3 - The "cheap and dirty" way is to wrap the whole thing with CENTER tags. Place a <center> tag after the opening body tag and a </center> tag before the closing body tag.

    Bill
    {{ DiscussionBoard.errors[2664764].message }}
  • Profile picture of the author mavericace
    Originally Posted by rvrabel2002 View Post

    I bought a landing page design from someone and i have it uploaded here:

    Get Free Stuff - Gift Cards, Movie Tickets, and more!

    Does anyone know why the site is scewed to the left, and if so, can you tell me how to get it in the center of the page?

    Im using css and html.

    Thanks for your help in advance.

    Robert
    put some main_wrapper to your css after the body tag.

    and that main_wrapper code on your css should be like this

    #main_wrapper{
    width:exact-size of your body content area in PX;
    height:auto;
    margin:auto;
    }
    {{ DiscussionBoard.errors[2665632].message }}
    • Profile picture of the author kar123
      Banned
      [DELETED]
      {{ DiscussionBoard.errors[2665913].message }}
      • Profile picture of the author ram07
        Hi,

        this is the source code of that page...

        <div id="wrapper">
        <div id="header">
        your content here
        </div>
        </div>

        Add a div at first and make align="center" then put your code within that...
        Try this,

        <div align="center">

        <div id="wrapper">
        <div id="header">
        your content here
        </div>
        </div>

        </div>

        Insert the div marked bold

        Thanks....
        {{ DiscussionBoard.errors[2666046].message }}
  • Profile picture of the author rvrabel2002
    I got it guys!

    He had the code in the wrong place, switched it around and it works. Thanks again fro your help!

    Robert
    Signature

    {{ DiscussionBoard.errors[2666236].message }}
    • Profile picture of the author SmartWeb
      Originally Posted by rvrabel2002 View Post

      I got it guys!

      He had the code in the wrong place, switched it around and it works. Thanks again fro your help!

      Robert
      great to hear that.
      anyway in future, use <div align="center"> </div>.
      it would solve all center align issues.
      {{ DiscussionBoard.errors[2667461].message }}

Trending Topics