Skip to main content

CSS coder? Question! Simple. 1010 Responses

Last post: 1 year, 2 months ago | Thread started: Mar 6, 12, 5:40 p.m.

RespondNew TopicDisable Images

  • benfal99

    I have a simple question for someone who knows CSS.

    What should I add to make the header centered???

    the website is over there: http://www.benfal.tv/helpmypixel…

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    <head profile="http://gmpg.org/xfn/11">
    <title><?php if ( is_single() ) { single_post_title(); } elseif ( is_home() || is_front_page() ) { bloginfo('name'); print ' | '; bloginfo('description'); get_page_number(); } elseif ( is_page() ) { single_post_title(''); } elseif ( is_search() ) { bloginfo('name'); print ' | Search results for ' . wp_specialchars($s); get_page_number(); } elseif ( is_404() ) { bloginfo('name'); print ' | Not Found'; } else { bloginfo('name'); wp_title('|'); get_page_number(); } ?></title>

    <meta http-equiv="content-type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

    <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" />

    <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>

    <?php wp_head(); ?>

    <link rel="alternate" type="application/rss+xml" href="<?php bloginfo('rss2_url'); ?>" title="<?php printf( __( '%s latest posts', 'hbd-theme' ), wp_specialchars( get_bloginfo('name'), 1 ) ); ?>" />
    <link rel="alternate" type="application/rss+xml" href="<?php bloginfo('comments_rss2_url') ?>" title="<?php printf( __( '%s latest comments', 'hbd-theme' ), wp_specialchars( get_bloginfo('name'), 1 ) ); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    </head>
    <body>
    <div id="wrapper" class="hfeed">
    <div id="header">

    <p class="alignCenter"><a href="index.html">

    mu6
    </a>
    <div id="masthead">

    <div id="access">
    <!--<div class="skip-link"><a href="#content" title="<?php _e( 'Skip to content', 'hbd-theme' ) ?>"><?php _e( 'Skip to content', 'hbd-theme' ) ?></a></div>-->
    <?php #wp_page_menu( 'sort_column=menu_order' ); ?>
    <?php wp_nav_menu( array( 'sort_column' => 'menu_order', 'container_class' => 'menu-header' ) ); ?>
    </div><!-- #access -->

    </div><!-- #masthead -->
    </div><!-- #header -->

    <div id="main">

    Mar 6, 12, 5:40 p.m. – Permalink
  • benfal99

    or is it in the style.css i should add something??

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 6, 12, 5:40 p.m. – Permalink
  • fourth

    In style.css you'd add something like:

    #header {
    margin: "X" auto;
    }

    X is the margin for the top and bottom of the header, and auto is what centers it.

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 6, 12, 5:49 p.m. – Permalink
  • benfal99

    i added this to the style.css

    div#header
    {
    width: 750px ;
    margin-left: auto ;
    margin-right: auto ;
    }

    and it is centered, but how do i center the content?

    next note >+ add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 6, 12, 5:52 p.m. – Permalink
  • Salarrue

    add this to the css

    .menu-header #menu-top-menu {
    margin-left: auto;
    margin-right: auto;
    width: 300px;
    }

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 6, 12, 5:58 p.m. – Permalink
  • Salarrue

    the ul list is what needs to be center.

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 6, 12, 5:59 p.m. – Permalink
  • IRNlun6

    div#header
    width:245px

    ul#menu-top-menu
    padding:0

    • div#header
      margin:0 auto
      width:245px
      IRNlun6
    + add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 6, 12, 6 p.m. – Permalink
  • benfal99

    FUCK! can't make it.

    go there: http://www.benfal.tv/helpmypixel…

    Login: admin
    Pass: qbn

    Can you look at it.

    Hey iam cool iam giving you the temp password, dont fuck it up ;-)

    • and dont work on it 3 at a time.. :Pbenfal99
    + add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 6, 12, 6:04 p.m. – Permalink
  • benfal99

    while you are at it, can you remove the little bullet in front of widgets?? Look at the search widget at the bottom. Those bullets are everywhere I put a widget...

    • lol... this just turned into the 'do my work for me' threadAl_dizzle1/2
      Iam not a coder. Iam looking on the web abd all but I hit the wall... can manage to correct those 2 things...benfal992/2
    next note >+ add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 6, 12, 6:08 p.m. – Permalink
  • underlow

    K. Done.

    • A HUGE THANKS to you good sir!
      Really, thanks a lot. I will analyse what you've done to learn something!
      benfal991/2
      learn itbenfal992/2
    next note >+ add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 6, 12, 6:17 p.m. – Permalink
  • benfal99

    LOL@

    /* FIXED BY THE INTERNET GODS */

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 6, 12, 6:20 p.m. – Permalink

Login or Register to respond to this

Skip to main content