CSS coder? Question! Simple.
- Started
- Last post
- 10 Responses
- 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">
</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">
- benfal990
or is it in the style.css i should add something??
- fourth0
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.
- benfal990
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?
- <that should center the content within your div.Al_dizzle
- doesnt work : http://www.benfal.tv…benfal99
- Salarrue0
add this to the css
.menu-header #menu-top-menu {
margin-left: auto;
margin-right: auto;
width: 300px;
}
- Salarrue0
the ul list is what needs to be center.
- IRNlun60
div#header
width:245pxul#menu-top-menu
padding:0
- benfal990
FUCK! can't make it.
go there: http://www.benfal.tv/helpmypixel…
Login: admin
Pass: qbnCan you look at it.
Hey iam cool iam giving you the temp password, dont fuck it up ;-)
- benfal990
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...
- benfal990
LOL@
/* FIXED BY THE INTERNET GODS */