• My sidebar seems to be messed up, but I cannot find out why. So do you know what is messed up with my CSS? Specially with the margin?

    #content {
    float: left;
    margin: -284px 0 0 233px;
    padding: 0 20px 0 38px;
    width: 620px;
    voice-family: “\”}\””;
    voice-family: inherit;
    width: 577px;
    }

    #sidebar {
    float: left;
    margin: -284px 0 0 -866px;
    padding: 4px 16px 10px 0;
    width: 257px;
    background: url(images/sidebar.jpg) no-repeat 0 100%;
    font-size: 0.9em;
    voice-family: “\”}\””;
    voice-family: inherit;
    width: 239px;

Viewing 15 replies - 1 through 15 (of 33 total)
  • Wow- that could be any style sheet.
    Can you give us a link to the actual problem?
    I don’t think I’ve ever used - for margin padding.
    What does `margin: -284px 0 0 -866px; actually do or is supposed to do?

    Thread Starter john24

    (@john24)

    Hi samboll,

    the site is www. modeblog .nl and the site looks good in IE6, but in Opera 9 and IE7 it looks messed up.

    I don’t think it’s so much your stylesheet as some of these errors that will bonk IE:
    https://validator.w3.org/check?uri=http%3A%2F%2Fwww.modeblog.nl%2F

    Thread Starter john24

    (@john24)

    So what is it that I can do about it?

    Thread Starter john24

    (@john24)

    I tried correcting them as best as I could. Reducing 35 errors to 26. More than 20 of the left errors are because of wordpress itself.

    I think the problem I have is not validation related, but has more to do with my style sheet.

    1. None of the errors are “because of wordpress itself” It is always the user/blogger.
    1a. Check the Show source box and click revalidate: every error line # will become a link taking you to the location of the error.

    2. Nobody is going to take a look at your code/stylesheet until you have errors.

    Thread Starter john24

    (@john24)

    @moshu,

    I thank you for your time.

    The errors that the validator gives are part of the posts itself. For example error 2 till 7 are part of the embedded code that youtube provides. error 8 till 34 are part of the code that wordpress created after creating a blog entery and part of the recent comments plugin.

    The blog with the classic and default theme, still give the same errors.

    Youtube code is not WP code and is NOT created by WP.
    Plugins and their code are NOT created by WP.

    If you think it is worth arguing about the nothing… instead of working on your errors, I am out of here. Good luck!

    Thread Starter john24

    (@john24)

    Moshu, I am not arguing. The youtube code and plugins have nothing to do with the style question this topic started with.

    Does anyone know what the problems are with the style sheets and how this can be fixed?

    The youtube code and plugins have nothing to do with the style question this topic started with.

    Actually, that is where you are wrong. The reason for validating your code is so that browser won’t display your site in Quirks mode. If your site doesn’t validate for *any* reason, the browser will take your code into Quirks mode. Which means that they styles will be messed up, because the browser will implement “what I *think* you’re trying to do” rather than reading what you actually *want* it to do.

    So yes, the validation of your code has *a lot* to do with what’s happening with your styles.

    Thread Starter john24

    (@john24)

    @doodlebee
    Thank you for clearing that up. I was not aware of the relationshop. I am goin to make sure the site is validated first.

    Thread Starter john24

    (@john24)

    From 35 errors, I am down to 2 errors, that I don’t understand how to fix

    https://validator.w3.org/check?uri=http%3A%2F%2Fwww.modeblog.nl

    1. In XHTML every image code must have an “alt” for non-visual browsers that will read that text, e.g:
    <img src="/folder/mypic.jpg" alt="mypic" />

    2. That’s the one that might solve your problems ??
    Seemingly a closing </div> tag is missing from your footer.php file.

    Thread Starter john24

    (@john24)

    Thank you moshu

    “This Page Is Valid XHTML 1.0 Transitional!” ??

    The website is now validated. Yet I still have the style sheet problem ??

Viewing 15 replies - 1 through 15 (of 33 total)
  • The topic ‘What is wrong with these margins?’ is closed to new replies.