• I’m using Word Press 2.1.2. I probably need to try upgrading, but before I do, I thought I’d swing by the forums.

    The main body of my site has moved from being centered under the head to being left-aligned. I played around with some of the elements I’d added (e-mail plug-in, flickr, etc), as well as dabbling in style.css, but I can’t get it to move back. The creator of the theme suggested changing my screen res to 1024, but then everything looks crappy (it’s currently at 1280 by 800).

    Isn’t there something in style.css I can adjust? If not, I’ll try downloading the latest WordPress.

    Thanks for any help.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Did you copy and paste into your posting? I had that troubles before and taking it into notepad first eliminated that problem.
    Good Luck
    Kath

    Thread Starter idothings

    (@idothings)

    Hmm, that’s interesting. When you say “copy and paste,” do you mean from a word processing program? I have done that, but the formatting was all screwed up, so I copied it into Notepad and pasted it from there. I also do a lot of writing in WordPress. I’ll play around with re-pasting everything from Notepad. Thanks for the response!

    Thread Starter idothings

    (@idothings)

    Grrr. This didn’t work. I’m scared to upgrade WP. The long list of directions looks intimidating? Any other suggestions out there?

    Has maybe something to do with margins. For example… if a wrapper has "margin: auto", it will be centered in your browser window; if it has "margin: 0", it will most likely be left-aligned.

    Maybe you changed something similar for your body-div?

    https://validator.w3.org/check?uri=https://idothings.info/

    141 errors. A good deal of those are minor but the structural ones arent helping.

    you also have some CSS errors..

    https://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&uri=http%3A%2F%2Fidothings.info%2F

    Thread Starter idothings

    (@idothings)

    Oh, wow, thanks whooami. I’ll check into all of those.

    Thread Starter idothings

    (@idothings)

    Sivar: thanks for the suggestion. I tried changing every conceivable margin setting from 0 to auto with no luck. Thanks anyway.

    Thread Starter idothings

    (@idothings)

    whooami: thanks again for the validation test results. I looked them over–it seems like a lot of them say, eg, that a “<br>” isn’t closed up but it is. Also, a lot of the problems are with code that I pasted from amazon or feedblitz–granted, that doesn’t mean they’re right, but I wouldn’t really want to mess around with them. Regardless, I couldn’t find anything that would change the appearance of the main body of my site, so I’ll keep trying. Thanks again (I’m glad to know about those validators!)

    Often those codes that other sites give you don’t validate because of = and & signs.
    Don’t fret about those, fix up all the div, br, p problems and hopefully it will be all better.

    Thread Starter idothings

    (@idothings)

    Thanks, kristarella, will do.

    iDoThings,

    I pointed out that several of your validation issues are structural. Need some examples:

    the last error is a great one. Did you look that far down the page? ??

    There’s a closing div for a div thats not open.

    take a look at error 55, another div related issue.

    thats just the 2 I decided to mention, there may be more.

    additionally, while you might not think that the <li> issues that are present arent the culprit — you cannot know until you have fixed them.

    My point is, that until you have taken care of those structural errors, theres very little else I’m willing to suggest.

    laslty,

    this:

    end tag for "br" omitted, but OMITTAG NO was specified.

    that is cauasd by you NOT using valid XHTML. <br> is deprecated and has been replaced by — the self-closed equivalent.

    Thread Starter idothings

    (@idothings)

    Hi, whooami,

    Thanks for the extra clarification. I didn’t mean to sound dismissive–I guess I was a bit overwhelmed and couldn’t immediately see what the problems were. I know I went in and added some “<br>” and “<p>” to add space; obviously those are things you shouldn’t do if you want your code to pass muster. I am going to change everything over the weekend and see what happens. Even if it doesn’t fix the alignment, I want my page to be “right.” Thanks again.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Body has shifted to left’ is closed to new replies.