IE not getting my css right.

It seems IE is not reading the (margin:0 auto) in my css file.

by using the following lines, my site is well centered in firefox and safari, but not in internet explorer.

#page {
width:1000px;
margin: 0 auto;
}

i've been trying to sort this problem with no success. i'm using zen as my base theme.
any help on solving this problem?
regards,

What would be the proper $content['comments'] if statement and subcomment classes

I'm trying to print a simple t('Comments') before the comments section on blog pages. So far I have:

<?php if ($content['comments']): ?>
<h2><?php print t('Comments'); ?></h2>
<?php print render($content['comments']); ?>
</div>
<?php endif; ?>

However, I've quickly noticed that this if statement is always satisfied. I suppose it's because the "Add a comment" link satisfies the if. I was originally thinking this if snippet would only return true if actual comments existed instead of just links for creating comments. It was also showing the h2 on teasers which obviously satisfied it but I solved that by adding an extra if before and after <?php if ($page != 0); ?> so that fixed that problem, but now it adds the h2 "Comments" regardless if there are any comments.

I need this because on blog posts it goes directly from the entry to the first comment and looks like there should be some kind of break and to let users know these are comments and possibly not other, related blog posts or something. I know they'll catch on quick but I'd still like to print the Comments before if they exist.

So if you know what the proper way of writing this if statement to mean if there are actual comments.

how to add css classes to main menu (not the individual items within)

I have been able to find quite a few examples of adding css classes to the list items (

  • ) within a menu but, I need to add a couple of css classes to the actual menu. The examples I have seen that deal with the list items override the theme_menu_item_link function. But there doesn't seem to be a similar function for the menu itself (something like theme_main_menu). At least, I haven't been able to find mention of one.

    Should I attempt to put some code in menu.inc, or in theme.inc?

  • Drupal v5 to v7

    I would like to upgrade from v5.2 to v7 latest.
    Can I go directly to v7.x? or,do I have to do a step upgrade?

    Multi-Site setup with one servind as subdomain.

    Okay, I am over my head on developing a new website. I currently have two sub-directories with my Drupal sites in them. One is a main site and one as a subdomain careers site. The current site is a flash site at the root level of my hosting.

    Sudden and unwanted Body: textarea character limit = database corruption?

    new Drupal 7 install
    I've been successfully adding "basic page" content when suddenly today I'm presented with "Body: the text may not be longer than 375 characters."

    I have previously added content well beyond 375 characters with no problems

    - I have refreshed cache, uninstalled maxcharacter and assorted recent modules to no avail.

    Apparently my server company had some kind of failure over the weekend, might this be some kind of database error/corruption?
    I have little experience with MYSQL and would appreciate any advice

    Pages

    Subscribe with RSS Subscribe to RSS - Drupal 7.x