• Resolved nicshonfeld

    (@nicshonfeld)


    Hi, I am having trouble with creating some space between my header image and the blog posts and sidebar. I am using the minimalist theme.
    here is my site…
    http://littlestgroup.co.uk/littlestwordpress/

    as you can see, i have managed to insert some text below my header, but this text is sitting directly on top of where the posts and sidebar begin. I am presuming that inserting a few line-breaks after the text below my header image?

    here is my header.php code…

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;

    <html xmlns=”http://www.w3.org/1999/xhtml&#8221; <?php language_attributes(); ?>>

    <head profile=”http://gmpg.org/xfn/11″&gt;

    <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />

    <title><?php bloginfo(‘name’);

    if ( is_single() ) {

    _e(‘» Blog Archive’, ‘minimalism’);

    }

    wp_title(); ?></title>

    <link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen” />

    <link rel=”alternate” type=”application/rss+xml” title=”<?php printf(__(‘%s RSS Feed’, ‘minimalism’), get_bloginfo(‘name’)); ?>” href=”<?php bloginfo(‘rss2_url’); ?>” />

    <link rel=”alternate” type=”application/atom+xml” title=”<?php printf(__(‘%s Atom Feed’, ‘minimalism’), get_bloginfo(‘name’)); ?>” href=”<?php bloginfo(‘atom_url’); ?>” />

    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />

    <?php wp_head(); ?>

    </head>

    <body>

    <div id=”page”>

    <div id=”header” onclick=”location.href=’http://littlestgroup.co.uk/littlestwordpress//&#8217;;” style=”cursor: pointer;”>

    <div id=”headerimg”>

    <h1>/”><?php bloginfo(‘name’); ?></h1>

    <div class=”description”><?php bloginfo(‘description’); ?></div>

    </div>

    <div id=”headerText”><center><B>MANAGEMENT / PRESS / TOURING</B>

    Littlest Group is an artist management, press and tour management company etc etc etc…</center>

    </div>

    </div>

    <hr />

    many thanks in advance

    nic.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Putting width: 100%; float: left; height: 50px; on div#headerText straightens out the overlap, if I understand you right. You can do this whole thing in CSS and lose the <b> tag and the <center> tag, by the way.

    You’ve also got a few errors to clean up.

    Thread Starter nicshonfeld

    (@nicshonfeld)

    Hi there, many thanks for all this. Im sure you’ve worked out im a complete novice! I really appreciate you help.

    Nic.

    Thread Starter nicshonfeld

    (@nicshonfeld)

    Hi there,

    Im trying to create a space between my header and where the blog posts and sidebar start. As you can see, the text “test text, why is it here?!??!!?!” is interupting the space I want to keep free. I would like to put some text in below the company logo and by doing this i presume the rest of the contents of the blog will ‘move down’ accordingly.
    http://littlestgroup.co.uk/littlestwordpress/

    If this makes any better sense then before (i hope so, im tearing my hair out here!) and what you suggested still applies, do you mean paste
    :

    width: 100%; float: left; height: 50px;

    like as i have added below? sorry, i am complete novice and its probably something really silly ive done wrong!

    <body>

    <div id=”page”>

    <div id=”header” onclick=”location.href=’http://littlestgroup.co.uk/littlestwordpress//&#8217;;” style=”cursor: pointer;”>

    <div id=”headerimg”>

    <h1>/”><?php bloginfo(‘name’); ?></h1>

    <div class=”description”><?php bloginfo(‘description’); ?></div>

    </div>

    <div id=”headerText” width: 100%; float: left; height: 50px;><center><b>Littlest Group prides itself in developing artists from a grass roots level across management, press & live touring.</>

    test text, why is it here?!??!!?! </center>
    </div>

    </div>

    If you do it inline you’d need to do it like this:

    <div id="headerText" style="width: 100%; float: left; height: 50px;" >

    But you could add it to your theme’s style.php by adding this:

    div#headerText {
    width: 100%;
    float: left;
    height: 50px;
    }

    The height value I guessed at. You can adjust it if you want. You should be able to do the whole thing with CSS by adding this to your stylesheet:

    div#headerText {
    width: 100%;
    float: left;
    height: 50px;
    text-align:center;
    font-weight:bold
    }

    And then delete the <b> and the <center> opening and closing tags. Once you eliminate those tags you might not even need all of the CSS. The float or the height might become unnecessary.

    Thread Starter nicshonfeld

    (@nicshonfeld)

    thank you so very much! you have solved my problem : )

    Hello all,
    I’m founder of http://yoannromano.com and I have the same troube

    Nevertheless the nicshonfeld’ solution didn’t work.
    Here is my header.php :

    <?php $arjunaOptions = arjuna_get_options(); ?>
    <!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>
    <link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" />
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>"  />
    <title><?php
    if (is_home ()) { bloginfo('name'); echo " - "; bloginfo('description'); }
    elseif (is_category() || is_tag()) {single_cat_title(); arjuna_get_appendToPageTitle(); }
    elseif (is_single() || is_page()) {single_post_title(); arjuna_get_appendToPageTitle(); }
    elseif (is_search()) {_e('Search Results:', 'Arjuna'); echo " ".wp_specialchars($s); arjuna_get_appendToPageTitle(); }
    else { echo trim(wp_title(' ',false)); arjuna_get_appendToPageTitle(); }
    ?></title>
    <?php if(is_home()): ?><link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" /><?php endif; ?>
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php
    if (!$arjunaOptions['enableIE6optimization'] || !arjuna_isIE6()) { ?>
    	<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    	<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' );?>
    	<?php wp_head(); ?>
    	<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/default.js"></script>
    	<!--[if lte IE 7]><link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/ie7.css" type="text/css" media="screen" /><![endif]-->
    	<!--[if lte IE 6]>
    	<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/ie6.css" type="text/css" media="screen" />
    	<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/ie6.js"></script>
    	<![endif]-->
    	<?php print arjuna_get_custom_CSS(); ?>
    <?php } elseif(arjuna_isIE6()) { ?>
    	<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/ie6_full.css" type="text/css" media="screen" />
    	<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' );?>
    	<?php wp_head(); ?>
    	<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/default.js"></script>
    	<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/ie6.js"></script>
    	<?php print arjuna_get_custom_CSS(); ?>
    <?php } ?>
    </head>
    
    <body<?php if(!$arjunaOptions['headerMenu1_show']): ?> class="hideHeaderMenu1"<?php endif; ?>><a name="top"></a><a id="skipToPosts" href="#content"><?php _e('Skip to posts', 'Arjuna'); ?></a>
    <div class="pageContainer">
    	<div class="headerBG"></div>
    	<div class="header">
    		<?php if($arjunaOptions['headerMenu1_show']): ?>
    		<div class="headerMenu1<?php if($arjunaOptions['headerMenu1_alignment']=='left'): ?> headerMenu1L<?php endif; ?>">
    			<ul id="headerMenu1"><?php
    				if ($arjunaOptions['headerMenu1_display']=='pages') {
    					wp_list_pages('sort_column='.$arjunaOptions['headerMenu1_sortBy'].'&sort_order='.$arjunaOptions['headerMenu1_sortOrder'].'&title_li=&depth='.$arjunaOptions['headerMenu1_dropdown']);
    				} elseif ($arjunaOptions['headerMenu1_display']=='categories') {
    					wp_list_categories('orderby='.$arjunaOptions['headerMenu1_sortBy'].'&order='.$arjunaOptions['headerMenu1_sortOrder'].'&title_li=&depth='.$arjunaOptions['headerMenu1_dropdown']);
    				}
    			?></ul>
    			<span class="clear"></span>
    		</div>
    		<?php endif; ?>
    		<?php
    		if ($arjunaOptions['headerImage'])
    			$tmp = ' header_'.$arjunaOptions['headerImage'];
    		else $tmp = ' header_lightBlue';
    		?>
    		<div class="headerMain<?php print $tmp; ?>">
    			<h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
    			<span><?php bloginfo('description'); ?></span>
    			<div class="headerSearch">
    				<form method="get" action="<?php bloginfo('url'); ?>/">
    					<input type="text" class="searchQuery searchQueryIA" id="searchQuery" value="<?php _e('Search here...', 'Arjuna'); ?>" name="s" />
    					<input type="submit" class="searchButton" value="<?php _e('Find', 'Arjuna'); ?>" />
    				</form>
    			</div>
    		</div>
    		<div class="headerMenu2<?php if($arjunaOptions['headerMenu2_displaySeparators']): ?> headerMenu2DS<?php endif; ?>"><span class="helper"></span>
    			<ul id="headerMenu2">
    				<?php if($arjunaOptions['headerMenu2_displayHomeButton']): ?><li><a href="<?php (function_exists('icl_get_home_url'))?(print icl_get_home_url()):(bloginfo('url')) ?>" class="homeIcon"><?php _e('Home','Arjuna'); ?></a></li><?php endif; ?><?php
    					if ($arjunaOptions['headerMenu2_display']=='pages') {
    						wp_list_pages('sort_column='.$arjunaOptions['headerMenu2_sortBy'].'&sort_order='.$arjunaOptions['headerMenu2_sortOrder'].'&title_li=&depth='.$arjunaOptions['headerMenu2_dropdown']);
    					} elseif ($arjunaOptions['headerMenu2_display']=='categories') {
    						wp_list_categories('orderby='.$arjunaOptions['headerMenu2_sortBy'].'&order='.$arjunaOptions['headerMenu2_sortOrder'].'&title_li=&depth='.$arjunaOptions['headerMenu2_dropdown']);
    					}
    				?>
    			</ul>
    			<span class="clear"></span>
    		</div>
    	</div>
    
    	<div class="contentWrapper<?php
    		//Sidebar
    		if ($arjunaOptions['sidebarDisplay']=='none') {
    			print ' NS';
    		} elseif ($arjunaOptions['sidebarDisplay']=='right') {
    			if ($arjunaOptions['sidebarWidth']=='small') print ' RSSW';
    			elseif ($arjunaOptions['sidebarWidth']=='large') print ' RSLW';
    		} elseif ($arjunaOptions['sidebarDisplay']=='left') {
    			if ($arjunaOptions['sidebarWidth']=='small') print ' LSSW';
    			elseif ($arjunaOptions['sidebarWidth']=='large') print ' LSLW';
    			else print ' LSNW';
    		}
    	?>">
    		<a name="content"></a>

    And the website is http://yoannromano.com.
    I have already checked a lot of website in order the solve it but they didn’t work :/

    Thanks in advance !

    No one can help me ?
    I can’t find any solution to fix this trouble.

    UP ?

    Sorry I have a similar problem but the q desire is to create more space between the header and content because I see it very pasted all if could help me

    I leave the code in my css if you could help me

    Tags: 2 columns, 3 columns, white, widgets, fixed width, wooden mannequin, solbergs, blue, gravatars, business, 1st position in search engines, fixed width, two columns, three columns, clean, lorem ipsum, search engine optimized,
    */

    .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    }

    .alignleft {
    float: left;
    }

    .alignright {
    float: right;
    }

    /* Body */
    * {margin:0; padding:0;}
    body {background:#f4f4f4 url(img/bg.gif) top center repeat-y; color:#303030; font:76% Book Antiqua,Arial,Verdana,Tahoma,sans-serif;}
    #wrap {background-color:#fff; color:#333; margin:0 auto; width:760px;}

    /* Links */
    a {background-color:inherit; color:#286ea0; font-weight:bold; text-decoration:none;}
    a:hover {background-color:inherit; color:#286ea0; font-weight:bold; text-decoration:underline;}
    a img {border:0;}

    /* Header */
    #header {position: absolute; margin:0 0 0 40px; width:350px; left: 50%; text-align: right;}
    #header h1 {background-color:inherit; color:#555; font-size:2em; letter-spacing:-7px; margin:30px 30px 0 0;}
    #header h1 a {background-color:inherit; color:#555; text-decoration:none;}
    #header p {background-color:inherit; color:#777; font-size:1.1em; font-weight:bold; line-height:1.3em; margin:10px 30px 0 0;}
    #frontphoto {margin:0 0 10px;}

    /* Sidebars */
    #leftside {clear:left; float:left; line-height:1.5em; margin:0 0 5px; padding:0; width:140px;}
    #extras {float:right; line-height:1.4em; margin:0 0 5px; padding:0; width:140px;}
    #leftside p, #leftside ul, #leftside div.textwidget, #extras p, #extras ul, #extras div.textwidget {font-size:0.9em; margin:0 0 18px;}
    #leftside li, #extras li {line-height:1.2em; list-style:none; margin:0 0 6px;}
    #leftside ul ul, #extras ul ul {margin:6px 0 0 10px;}
    #leftside ul ul li, #extras ul ul li {margin:0 0 4px;}
    #leftside ul ul li a, #extras ul ul li a {font-weight:normal;}
    #leftside ul.linklist, #extras ul.linklist {font-size:1em;}
    #leftside ul.linklist ul, #extras ul.linklist ul {margin:0 0 20px;}
    #leftside ul.linklist ul li a, #extras ul.linklist ul li a {font-weight:bold;}
    #leftside h2, #leftside ul.linklist li h2, #leftside h3, #extras h2, #extras ul.linklist li h2, #extras h3, table#wp-calendar caption {background-color:inherit; color:#505050; font-size:1.3em; font-weight:normal; text-align:left; margin:0 0 6px;}
    #leftside label, #extras label {display:none;}

    /* Main menu */
    ul.page {list-style:none; margin:0 0 20px; width:140px;}
    ul.page li {display:inline; line-height:1.4em; width:140px;}
    ul.page li a {background-color:#f4f4f4; border-left:0px solid #cccccc; color:#505050; float:left; font-weight:bold; margin-bottom:5px; padding:5px 1px 5px 5px; text-decoration:none; width:130px;}
    ul.page li a:hover, ul.page li.current_page_item a {background-color:#eaeaea; border-left:0px solid #286ea0; color:#505050;}
    ul.page ul {font-size:0.9em; margin:0 0 0 15px; padding:0 0 5px; width:125px;}
    ul.page ul a {padding:3px 1px 3px 5px; width:115px;}
    ul.page ul ul {width:113px;}
    ul.page ul ul a {width:100px;}

    /* Content */
    #content {line-height:1.6em; margin:0 155px 5px; padding:0;}
    #contentwide {line-height:1.6em; margin:0 0 5px 150px; padding:0;}
    #content h2,#contentwide h2 {font-size:1.6em; margin:0 0 10px;}
    #content h3,#contentwide h3 {font-size:1.4em; margin:0 0 8px;}
    #content img,#contentwide img {border:1px solid #d0d0d0; float:left; margin:3px 10px 3px 0;}
    #content ul,#contentwide ul,#content ol,#contentwide ol {margin:0 0 16px 20px;}
    #content li,#contentwide li {padding:0 0 0 5px;}
    #content ul ul,#contentwide ul ul,#content ol ol,#contentwide ol ol {margin:0 0 0 16px;}

    /* Footer */
    #footer {border-top:2px solid #e0e0e0; font-size:0.9em; clear:both; color:#777; font-weight:normal; line-height:1.7em; margin:0 auto; padding:10px 0; text-align:center; width:760px;}
    #footer p {margin:0; padding:0;}
    #footer a {color:#777; font-weight:normal; text-decoration:none;}
    #footer a:hover {color:#555; text-decoration:underline;}
    #footer strong a {font-weight:bold;}
    #footer span.credits {font-size:1.1em;}

    /* Subpage menu */
    #subpages {border-bottom:1px solid #e0e0e0; border-left:1px solid #e0e0e0; float:right; font-weight:bold; line-height:1.3em; margin:-5px 0 8px 15px; padding:0 0 10px 10px; width:190px;}
    #subpages h2 {font-size:1.2em; font-weight:bold; letter-spacing:-1px; line-height:1.3em; margin:0 0 12px;}
    #subpages ul.submenu {line-height:1.4em; list-style:none; margin:0;}
    #subpages ul.submenu li {display:inline; line-height:1.4em; width:180px; padding:0;}
    #subpages ul.submenu li a {background-color:#f4f4f4; border-left:0px solid #cccccc; color:#505050; float:left; font-weight:bold; margin-bottom:5px; padding:3px 1px 3px 5px; text-decoration:none; width:180px;}
    #subpages ul.submenu li ul {margin:0 0 5px 10px; width:170px;}
    #subpages ul.submenu li ul li a {width:170px;}
    #subpages ul.submenu li ul ul {margin:0 0 5px 10px; width:160px;}
    #subpages ul.submenu li ul ul li a {width:160px;}
    #subpages ul.submenu li ul ul ul {margin:0 0 5px 10px; width:150px;}
    #subpages ul.submenu li ul ul ul li a {width:150px;}
    #subpages ul.submenu li a:hover,#subpages ul.submenu li.current_page_item a {background-color:#eaeaea; border-left:0px solid #286ea0; color:#555;}
    #subpages ul.submenu li.current_page_item ul li a {background-color:#f4f4f4; border-left:0px solid #cccccc; color:#555;}

    /* Tags */
    p,ul,ol {margin:0 0 18px;}
    blockquote {border-left:0px solid #e0e0e0; margin:20px; padding:8px 8px 8px 15px;}
    blockquote p {background-color:inherit; color:#505050; font-size:0.9em; line-height:1.3em;}
    label {background-color:inherit; color:#606060; font-size:0.9em; font-weight:bold;}
    table#wp-calendar {margin:0 0 20px; width:140px;}
    code {font-size:1.2em; display:block; padding:5px 5px 5px 8px; background-color:#f4f4f4; margin:5px 0 15px 0;border-left:0px solid #cccccc;}

    /* Forms */
    #s,#submit {background-color:#ffffff; border:1px solid #cccccc; color:#505050; font-size:0.9em; margin:0 0 16px; padding:4px; width:130px;}
    #author,#email,#url,#comment {border:1px solid #cccccc; font-family:Book Antiqua,Verdana,Tahoma,Arial,Sans-Serif; font-size:1em; margin:0; padding:4px;}
    #commentsection {margin:25px 0 0;}
    #commentsection p {margin:0 0 6px;}

    /* Float fix */
    .contenttext {overflow:hidden;}
    * html .contenttext {height:1px; overflow:visible;}
    * html .contenttext p {overflow:hidden; width:99%;}

    /* WP image align classes */
    img.centered {display:block; margin-left:auto; margin-right:auto;}
    img.alignright {padding:4px; margin:0 0 2px 7px; display:inline;}
    img.alignleft {padding:4px; margin:0 7px 2px 0; display:inline;}
    .alignright {float:right;}
    .alignleft {float:left;}

    /* Various classes */
    .left {border:1px solid #cccccc; float:left; margin:10px 15px 10px 0;}
    .right {border:1px solid #cccccc; float:right; margin:10px 0 5px 10px;}
    .center {border:1px solid #aaaaaa; margin:5px auto 12px; text-align:center;}
    .textright {text-align:right;}
    .small {font-size:0.8em;}
    .bold {font-weight:bold;}
    .hide {display:none;}
    .post {margin:0 0 25px;}
    .postinfo {background-color:#f4f4f4; border-left:0px solid #cccccc; color:#606060; font-size:0.9em; font-weight:bold; line-height:1.5em; margin:1px 0 30px; padding:8px 5px 8px 8px;}
    .comment {background-color:#f4f4f4; border-left:0px solid #cccccc; color:#606060; margin:0 0 10px; padding:8px 5px 0 8px;}
    .comment p {font-size:0.9em; line-height:1.3em; margin:0 0 6px; padding-bottom:5px;}
    .gravatarside {float:right; width:48px; height:48px; margin:0 5px 5px 5px;}
    .navigation {display:block; margin:10px 0 20px 0; padding:0; text-align:center;}
    .navigation p {margin:0; padding:0;}
    .prevlink {margin-right:20px;}
    .nextlink {margin-left:20px;}

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘how to create line breaks under header?’ is closed to new replies.