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.

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
  1. #1
    Junior Member
    Join Date
    Jul 2012
    Posts
    4
    Member #
    32241
    I have a project due. And the last step before any project is to validate the sucka at validator.w3c,org. Sure enough problems (As I am a n00b). I used HTML-Tidy to offer suggestive fixes and sure enough it did, and everything still works right EXCEPT my page is no longer centered to the window. I have no idea how to fix this, as trying a simple <div align="center"> (Which I first had and worked beautifully) now no longer does the tirck, or onlly applies it to certain areas.

    So I need your bigger-brains-than-mine help.

    Here's a link to the site as it is now all HTML-Tidy'ed up:

    www.happyhappyfaces.com/atomic/index.html

    Thanks in advance for suggestions on how to fix this...

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    Code:
    <body>
    <div style="margin:  0px auto;  width:  1024px;">
    ...all your other stuff...
    </div>
    </body>
    How picky is your teacher going to be about code, though? If (s)he sees the ImageReady slices, will that affect your grade?
    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)

  4. #3
    Junior Member
    Join Date
    Jul 2012
    Posts
    4
    Member #
    32241
    Slices, no. Code validation, yes (I think slicing gets a bad rap...). Other parts involved NOT slicing, but I'n hitting the major components in this one. Just don't like my website all nudged into the upper left.

    That said I tried your code and it removed my entire background image and colors...

    **EDIT** I then moved it underneath the background image parts, and it just keeps moving ONLY the background around (Centered), the rest of my site is wedged nicely in the upper left of the window..

  5. #4
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    This is why no one likes slicing. It's not a bad rap, it's bad practice. I can't see your site because of the network I'm on right now, but I'm going to go ahead and take a shot in the dark and say your slices are likely absolutely positioned. They are positioned based on the top left corner of the first relatively positioned parent, in this case the <body> tag. So, they're ignoring what would have otherwise been a perfectly good fix provided by TheGAME.
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."

  6. #5
    Junior Member
    Join Date
    Jul 2012
    Posts
    4
    Member #
    32241
    Quote Originally Posted by Ronald Roe, post: 238891
    This is why no one likes slicing. It's not a bad rap, it's bad practice. I can't see your site because of the network I'm on right now, but I'm going to go ahead and take a shot in the dark and say your slices are likely absolutely positioned. They are positioned based on the top left corner of the first relatively positioned parent, in this case the <body> tag. So, they're ignoring what would have otherwise been a perfectly good fix provided by TheGAME.
    I wouldn't doubt that. But that said, It worked perfectly as far as centering BEFORE HTML-Tidy. So it CAN work. I just have no idea what TIDY did to it to make it NOT WORK... I can post both the before and after code here, but not sure if that's permissible...

  7. #6
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    Quote Originally Posted by Ronald Roe, post: 238891
    This is why no one likes slicing. It's not a bad rap, it's bad practice. I can't see your site because of the network I'm on right now, but I'm going to go ahead and take a shot in the dark and say your slices are likely absolutely positioned. They are positioned based on the top left corner of the first relatively positioned parent, in this case the <body> tag. So, they're ignoring what would have otherwise been a perfectly good fix provided by TheGAME.
    Table-based code, actually.
    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)

  8. #7
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    Quote Originally Posted by Frumpy Jones, post: 238888
    Slices, no. Code validation, yes (I think slicing gets a bad rap...). Other parts involved NOT slicing, but I'n hitting the major components in this one. Just don't like my website all nudged into the upper left.

    That said I tried your code and it removed my entire background image and colors...

    **EDIT** I then moved it underneath the background image parts, and it just keeps moving ONLY the background around (Centered), the rest of my site is wedged nicely in the upper left of the window..
    That code should work. It usually only fails because something else is invalid or causing a problem.

    Save a copy of your index page, then strip it down to almost nothing and see if that works (as in my tag). Then add pieces in until it no longer does, and you'll have your problem. I'd help you find it, but my wife and daughter apparently have a desire to go shopping rather than take naps.
    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 Noteleklabs's Avatar
    Join Date
    Jun 2012
    Location
    NC
    Posts
    217
    Member #
    31890
    Liked
    28 times
    is it the whole page, or just the text? if its the text then do text-align. is there anything in the code that would set it to the left? I can't really tell you the problem unless you show us code.
    Hey you! Go make something!

  10. #9
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    I looked at it a little more closely, and I don't see where you've implemented my suggestion. Put it in, upload it, and let's see it.
    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)

  11. #10
    Junior Member
    Join Date
    Jul 2012
    Posts
    4
    Member #
    32241
    Quote Originally Posted by TheGAME1264, post: 238917
    I looked at it a little more closely, and I don't see where you've implemented my suggestion. Put it in, upload it, and let's see it.
    I figured it out, and your code worked. I took you literally about where to put the code, and it erased the background image, so I placed it right under the background image but it didn't do anything.. After a day away, my fresh set of eyes noticed I put the code you gave me INSIDE a style that closed. I made sure that it was all by itself (And after the Background image properties and it worked like a champ!

    THANK YOU SOO MUCH!:dance::showoff::cloud9::bounce:


Page 1 of 2 1 2 LastLast

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:19 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com